<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2025-05-01</periodOfReport>

    <issuer>
        <issuerCik>0001274494</issuerCik>
        <issuerName>FIRST SOLAR, INC.</issuerName>
        <issuerTradingSymbol>FSLR</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001344138</rptOwnerCik>
            <rptOwnerName>Stockdale Caroline</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O FIRST SOLAR, INC.</rptOwnerStreet1>
            <rptOwnerStreet2>350 WEST WASHINGTON ST., SUITE 600</rptOwnerStreet2>
            <rptOwnerCity>TEMPE</rptOwnerCity>
            <rptOwnerState>AZ</rptOwnerState>
            <rptOwnerZipCode>85288</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isOfficer>1</isOfficer>
            <officerTitle>Chief People and Comm. Officer</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <derivativeTable>
        <derivativeTransaction>
            <securityTitle>
                <value>Restricted Stock Units</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <footnoteId id="F1"/>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2025-05-01</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness></transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>2489</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <footnoteId id="F2"/>
            </exerciseDate>
            <expirationDate>
                <footnoteId id="F2"/>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>2489</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>2489</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">Each restricted stock unit represents the right to receive, upon vesting, one share of the Issuer's common stock in accordance with the Issuer's 2020 Omnibus Incentive Compensation Plan.</footnote>
        <footnote id="F2">The restricted stock units were granted on May 1, 2025 as part of the Issuer's annual equity grant to executive officers. The restricted stock units granted on May 1, 2025 vest annually at a rate of 25% on each anniversary of the grant date, commencing on the first anniversary of the grant date.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Jason E. Dymbort, attorney-in-fact</signatureName>
        <signatureDate>2025-05-02</signatureDate>
    </ownerSignature>
</ownershipDocument>
