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

    <schemaVersion>X0202</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2004-12-13</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

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

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001174597</rptOwnerCik>
            <rptOwnerName>HOFMANN THOMAS W</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>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>Sr. V.P. &amp; Chief Fin. Officer</officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2004-12-13</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>M</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F1"/>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>40000</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>30.15</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>68641</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2004-12-13</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>32000</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>80.8689</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>36641</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2004-12-13</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>I</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F2"/>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>4467.061</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>81.29</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>6930.939</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>ESOP Trust</value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2004-12-13</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>J</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F3"/>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>164.887</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                    <footnoteId id="F4"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>7095.826</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>ESOP Trust</value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2004-12-13</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>I</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F5"/>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>7095.826</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>81.29</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>0</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>ESOP Trust</value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable>
        <derivativeTransaction>
            <securityTitle>
                <value>Stock Options (Right to buy)</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <value>30.15</value>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2004-12-13</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>M</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
                <footnoteId id="F1"/>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>40000</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <value>2004-12-04</value>
            </exerciseDate>
            <expirationDate>
                <value>2012-12-04</value>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>40000</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>0</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">Cash exercise of 40,000 stock options granted in 2002 at an option price of $30.15 in compliance with Rule 16(b)3 under the Sunoco, Inc. Long Term Performance Enhancement Plan II (&quot;LTPEP II&quot;) for net of 40,000 shares of Sunoco, Inc. common stock issued to reporting person.</footnote>
        <footnote id="F2">Disposition of 4,467.061 share equivalents from the Sunoco, Inc. Common Stock Fund in the Sunoco, Inc. Capital Accumulation Plan (&quot;SunCAP&quot;), pursuant to discretionary transaction exempt under Rule 16b-3(f).</footnote>
        <footnote id="F3">Routine, periodic acquisition of share equivalents pursuant to the Sunoco, Inc. Capital Accumulation Plan in transaction exempt under Rule 16(b).  This information is supplied by the Plan Administrator.</footnote>
        <footnote id="F4">Price ranged from $55.45 to $82.56 during 2004 year-to-date.  This information is supplied by the Plan Administrator for the Sunoco, Inc. Capital Accumulation Plan (&quot;SunCAP&quot;).</footnote>
        <footnote id="F5">Disposition of 7,095.826 share equivalents from the Sunoco, Inc. ESOP Fund in the Sunoco, Inc. Capital Accumulation Plan, pursuant to discretionary transaction exempt under Rule 16b-3(f).</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>/s/ Louisa K. Cresson, Attorney-in-fact for</signatureName>
        <signatureDate>2004-12-14</signatureDate>
    </ownerSignature>
</ownershipDocument>
[{"type": "4", "sequence": "1", "filename": "c0001174597d20041214f4f.xml", "description": "PRIMARY DOCUMENT", "secsgml_size_bytes": 13230}]
X0202
4
2004-12-13
0
0000095304
SUNOCO INC
SUN
0001174597
HOFMANN THOMAS W
1801 MARKET STREET
PHILADELPHIA
PA
19103-1699
0
1
0
0
Sr. V.P. & Chief Fin. Officer
Common Stock
2004-12-13
4
M
0
40000
30.15
A
68641
D
Common Stock
2004-12-13
4
S
0
32000
80.8689
D
36641
D
Common Stock
2004-12-13
4
I
0
4467.061
81.29
D
6930.939
I
ESOP Trust
Common Stock
2004-12-13
4
J
0
164.887
0
A
7095.826
I
ESOP Trust
Common Stock
2004-12-13
4
I
0
7095.826
81.29
D
0
I
ESOP Trust
Stock Options (Right to buy)
30.15
2004-12-13
4
M
0
40000
0
D
2004-12-04
2012-12-04
Common Stock
40000
0
D
Cash exercise of 40,000 stock options granted in 2002 at an option price of $30.15 in compliance with Rule 16(b)3 under the Sunoco, Inc. Long Term Performance Enhancement Plan II ("LTPEP II") for net of 40,000 shares of Sunoco, Inc. common stock issued to reporting person.
Disposition of 4,467.061 share equivalents from the Sunoco, Inc. Common Stock Fund in the Sunoco, Inc. Capital Accumulation Plan ("SunCAP"), pursuant to discretionary transaction exempt under Rule 16b-3(f).
Routine, periodic acquisition of share equivalents pursuant to the Sunoco, Inc. Capital Accumulation Plan in transaction exempt under Rule 16(b).  This information is supplied by the Plan Administrator.
Price ranged from $55.45 to $82.56 during 2004 year-to-date.  This information is supplied by the Plan Administrator for the Sunoco, Inc. Capital Accumulation Plan ("SunCAP").
Disposition of 7,095.826 share equivalents from the Sunoco, Inc. ESOP Fund in the Sunoco, Inc. Capital Accumulation Plan, pursuant to discretionary transaction exempt under Rule 16b-3(f).
/s/ Louisa K. Cresson, Attorney-in-fact for
2004-12-14