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

    <schemaVersion>X0202</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2005-12-19</periodOfReport>

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

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001178439</rptOwnerCik>
            <rptOwnerName>GRECO ROSEMARIE B</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>1735 MARKET STREET</rptOwnerStreet1>
            <rptOwnerStreet2></rptOwnerStreet2>
            <rptOwnerCity>PHILADELPHIA</rptOwnerCity>
            <rptOwnerState>PA</rptOwnerState>
            <rptOwnerZipCode>19103-7583</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-12-19</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>229.249</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>82.696</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>229.249</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>859.537</value>
                    <footnoteId id="F3"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeTransaction>
        <derivativeTransaction>
            <securityTitle>
                <value>Phantom Stock Units</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <footnoteId id="F1"/>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2005-12-19</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F4"/>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>328.057</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>82.696</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>328.057</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>1898.95</value>
                    <footnoteId id="F5"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">The conversion rate is 1 for 1.</footnote>
        <footnote id="F4">Crediting of share units representing voluntary deferred compensation pursuant to the Sunoco, Inc. Directors Deferred Compensation Plan II, in transactions exempt under Rule 16b-3(d).</footnote>
        <footnote id="F3">Total of 9,048.881 restricted share units beneficially owned following reported transaction.</footnote>
        <footnote id="F5">Total of 19,238.978 phantom stock units beneficially owned following reported transaction.</footnote>
        <footnote id="F2">Yearly election credit increase credited as restricted share units acquired pursuant to the Sunoco, Inc. Directors' Deferred Compensation Plan II in transaction exempt under Rule 16b-3(d).</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>Louisa K. Cresson, Attorney-in-fact for Rosemarie B. Greco</signatureName>
        <signatureDate>2005-12-21</signatureDate>
    </ownerSignature>
</ownershipDocument>
[{"type": "4", "sequence": "1", "filename": "doc.xml", "description": "PRIMARY DOCUMENT", "secsgml_size_bytes": 6894}]
X0202
4
2005-12-19
0000095304
SUNOCO INC
SUN
0001178439
GRECO ROSEMARIE B
1735 MARKET STREET
PHILADELPHIA
PA
19103-7583
1
0
0
0
Deferred Share Units
2005-12-19
4
A
0
229.249
82.696
A
1988-08-08
1988-08-08
Common Stock
229.249
859.537
D
Phantom Stock Units
2005-12-19
4
A
0
328.057
82.696
A
1988-08-08
1988-08-08
Common Stock
328.057
1898.95
D
The conversion rate is 1 for 1.
Crediting of share units representing voluntary deferred compensation pursuant to the Sunoco, Inc. Directors Deferred Compensation Plan II, in transactions exempt under Rule 16b-3(d).
Total of 9,048.881 restricted share units beneficially owned following reported transaction.
Total of 19,238.978 phantom stock units beneficially owned following reported transaction.
Yearly election credit increase credited as restricted share units acquired pursuant to the Sunoco, Inc. Directors' Deferred Compensation Plan II in transaction exempt under Rule 16b-3(d).
Louisa K. Cresson, Attorney-in-fact for Rosemarie B. Greco
2005-12-21