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

    <schemaVersion>X0202</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2005-06-10</periodOfReport>

    <issuer>
        <issuerCik>0000095304</issuerCik>
        <issuerName>SUNOCO INC</issuerName>
        <issuerTradingSymbol>SUN</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001178441</rptOwnerCik>
            <rptOwnerName>PEW ROBERT ANDERSON</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>1801 MARKET STREET</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>PHILADELPHIA</rptOwnerCity>
            <rptOwnerState>PA</rptOwnerState>
            <rptOwnerZipCode>19103-1699</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>0</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle></officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable></nonDerivativeTable>

    <derivativeTable>
        <derivativeTransaction>
            <securityTitle>
                <value>Deferred Share Units</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <footnoteId id="F1"/>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2005-06-10</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F2"/>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>20.127</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>104.96</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <value>1988-08-08</value>
            </exerciseDate>
            <expirationDate>
                <value>1988-08-08</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>20.127</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>295.543</value>
                    <footnoteId id="F3"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F3">Total of 5,301.442 restricted share units beneficially owned following reported transaction.</footnote>
        <footnote id="F2">Dividend equivalents credited as restricted share units acquired pursuant to the Sunoco, Inc. Directors' Deferred Compensation Plan, in transaction exempt under Rule 16b-3(d).</footnote>
        <footnote id="F1">The conversion rate is 1 for 1.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>John J. DiRocco, Jr., Attorney-in-fact for Robert A. Pew</signatureName>
        <signatureDate>2005-06-13</signatureDate>
    </ownerSignature>
</ownershipDocument>
[{"type": "4", "sequence": "1", "filename": "doc.xml", "description": "PRIMARY DOCUMENT", "secsgml_size_bytes": 4272}]
X0202
4
2005-06-10
0000095304
SUNOCO INC
SUN
0001178441
PEW ROBERT ANDERSON
1801 MARKET STREET
PHILADELPHIA
PA
19103-1699
1
0
0
0
Deferred Share Units
2005-06-10
4
A
0
20.127
104.96
A
1988-08-08
1988-08-08
Common Stock
20.127
295.543
D
Total of 5,301.442 restricted share units beneficially owned following reported transaction.
Dividend equivalents credited as restricted share units acquired pursuant to the Sunoco, Inc. Directors' Deferred Compensation Plan, in transaction exempt under Rule 16b-3(d).
The conversion rate is 1 for 1.
John J. DiRocco, Jr., Attorney-in-fact for Robert A. Pew
2005-06-13