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

    <schemaVersion>X0202</schemaVersion>

    <documentType>4/A</documentType>

    <periodOfReport>2005-06-07</periodOfReport>

    <dateOfOriginalSubmission>2005-06-08</dateOfOriginalSubmission>

    <notSubjectToSection16>1</notSubjectToSection16>

    <issuer>
        <issuerCik>0001116449</issuerCik>
        <issuerName>XENOGEN CORP</issuerName>
        <issuerTradingSymbol>XGEN</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001292049</rptOwnerCik>
            <rptOwnerName>MDS Pharma Services (US) Inc.</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>621 ROSE STREET</rptOwnerStreet1>
            <rptOwnerStreet2>P.O. BOX 80837</rptOwnerStreet2>
            <rptOwnerCity>LINCOLN</rptOwnerCity>
            <rptOwnerState>NE</rptOwnerState>
            <rptOwnerZipCode>68501</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>1</isOther>
            <otherText>less than 10% owner</otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2005-06-07</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F1"/>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>10000</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0.001</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>1117323</value>
                    <footnoteId id="F2"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">Xenogen issued these shares to the Reporting Person pursuant to Xenogen's 2004 Director Stock Plan.  The shares are subject to automatic forfeiture and return to the plan upon the occurrence of certain events.</footnote>
        <footnote id="F2">correction to balance reported on filing made June 8, 2005</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>Peter E. Brent, Assistant Secretary and Director</signatureName>
        <signatureDate>2005-06-13</signatureDate>
    </ownerSignature>
</ownershipDocument>
