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

    <schemaVersion>X0202</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2007-06-08</periodOfReport>

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

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001178442</rptOwnerCik>
            <rptOwnerName>RATCLIFFE GEORGE J</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>2007-06-08</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>36.932</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>79.966</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>36.932</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>10776.085</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>2007-06-08</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness>
                <value></value>
            </transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>62.644</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>79.966</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>62.644</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>18278.434</value>
                    <footnoteId id="F4"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F2">Not Applicable</footnote>
        <footnote id="F1">Conversion rate is 1 for 1.</footnote>
        <footnote id="F3">Total of 10,776.085 Restricted Share Units beneficially owned following reported transaction.  (28.915 Restricted Share Units under Sunoco, Inc.'s Directors' Deferred Compensation Plan I and 8.017 Restricted Share Units under Sunoco, Inc.'s Directors' Deferred Compensation Plan II.)</footnote>
        <footnote id="F4">Total of 18,278.434 Phantom Stock Units beneficially owned following reported transaction.  (49.827 Phantom Stock Units under Sunoco, Inc.'s Directors' Deferred Compensation Plan I and 12.817 Phantom Stock Units under Sunoco, Inc.'s Directors' Deferred Compensation Plan II.)</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>John J. DiRocco, J., Attorney-in-fact for George J. Ratcliffe</signatureName>
        <signatureDate>2007-06-12</signatureDate>
    </ownerSignature>
</ownershipDocument>
[{"type": "4", "sequence": "1", "filename": "doc.xml", "description": "PRIMARY DOCUMENT", "secsgml_size_bytes": 6783}]
X0202
4
2007-06-08
0000095304
SUNOCO INC
SUN
0001178442
RATCLIFFE GEORGE J
1735 MARKET STREET
PHILADELPHIA
PA
19103-7583
1
0
0
0
Deferred Share Units
2007-06-08
4
A
0
36.932
79.966
A
Common Stock
36.932
10776.085
D
Phantom Stock Units
2007-06-08
4
A
0
62.644
79.966
A
Common Stock
62.644
18278.434
D
Not Applicable
Conversion rate is 1 for 1.
Total of 10,776.085 Restricted Share Units beneficially owned following reported transaction.  (28.915 Restricted Share Units under Sunoco, Inc.'s Directors' Deferred Compensation Plan I and 8.017 Restricted Share Units under Sunoco, Inc.'s Directors' Deferred Compensation Plan II.)
Total of 18,278.434 Phantom Stock Units beneficially owned following reported transaction.  (49.827 Phantom Stock Units under Sunoco, Inc.'s Directors' Deferred Compensation Plan I and 12.817 Phantom Stock Units under Sunoco, Inc.'s Directors' Deferred Compensation Plan II.)
John J. DiRocco, J., Attorney-in-fact for George J. Ratcliffe
2007-06-12