2.2.0.7 true Earnings (Loss) Per Common Share (Details) (USD $) 0609 - Disclosure - Earnings (Loss) Per Common Share (Details) true false In Millions, except Per Share data false false 1 USD false false USDEPS Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 $ false 2 USD false false USDEPS Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 $ false 3 USD false false USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 USDEPS Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 Pure Standard http://www.xbrl.org/2003/instance pure xbrli 0 $ false 4 USD false false USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 USDEPS Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 $ 2 2 vlo_EarningsLossPerCommonShareFromContinuingOperationsAbstract vlo false na duration Earnings (loss) per common share from continuing operations. false false false false false true false false false false false verboselabel false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false xbrli:stringItemType string Earnings (loss) per common share from continuing operations. false 3 2 us-gaap_IncomeLossFromContinuingOperations us-gaap true credit duration No definition available. false false false false false false false false false false false verboselabel false 1 true true false false 292000000 292 false false false 2 true true false false -343000000 -343 false false false 3 true true false false 721000000 721 false false false 4 true true false false -170000000 -170 false false false xbrli:monetaryItemType monetary This element represents the income or loss from continuing operations attributable to the reporting entity which may also be defined as revenue less expenses and taxes from ongoing operations before extraordinary items and cumulative effects of changes in accounting principles, but after deduction of those portions of income or loss from continuing operations that are allocable to noncontrolling interests, if any. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 29 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 28 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 38 -Subparagraph b(1) false 7 2 us-gaap_WeightedAverageNumberOfSharesOutstandingBasic us-gaap true na duration No definition available. false false false false false false false false false false false terselabel false 1 false true false false 564000000 564 false false false 2 false true false false 561000000 561 false false false 3 false true false false 563000000 563 false false false 4 false true false false 534000000 534 false false false xbrli:sharesItemType shares Number of [basic] shares, after adjustment for contingently issuable shares and other shares not deemed outstanding, determined by relating the portion of time within a reporting period that common shares have been outstanding to the total time in that period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 171 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 40 -Subparagraph a Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 8 false 8 2 us-gaap_EarningsPerShareBasicAbstract us-gaap true na duration No definition available. false false false false false true false false false false false terselabel false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false xbrli:stringItemType string No definition available. false 9 2 us-gaap_CommonStockDividendsPerShareCashPaid us-gaap true na duration No definition available. false false false false false false false false false false false terselabel true 1 true true false false 0.05 0.05 false false false 2 true true false false 0.15 0.15 false false false 3 true true false false 0.15 0.15 false false false 4 true true false false 0.45 0.45 false false false us-types:perShareItemType decimal Aggregate dividends paid during the period for each share of common stock outstanding. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Article 3 false 11 2 us-gaap_IncomeLossFromContinuingOperationsPerBasicShare us-gaap true na duration No definition available. false false false false false false false false false false false terselabel true 1 true true false false 0.52 0.52 false false false 2 true true false false -0.61 -0.61 false false false 3 true true false false 1.27 1.27 false false false 4 true true false false -0.32 -0.32 false false false us-types:perShareItemType decimal The amount of income (loss) from continuing operations per each share of common stock outstanding during the reporting period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 21 -Article 9 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 36, 37, 38 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 03 -Paragraph 20 -Article 5 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 18 -Article 7 false 12 2 us-gaap_IncomeLossFromContinuingOperations us-gaap true credit duration No definition available. false false false false false false false false false false false verboselabel false 1 false true false false 292000000 292 false false false 2 false true false false -343000000 -343 false false false 3 false true false false 721000000 721 false false false 4 false true false false -170000000 -170 false false false xbrli:monetaryItemType monetary This element represents the income or loss from continuing operations attributable to the reporting entity which may also be defined as revenue less expenses and taxes from ongoing operations before extraordinary items and cumulative effects of changes in accounting principles, but after deduction of those portions of income or loss from continuing operations that are allocable to noncontrolling interests, if any. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 29 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 28 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 38 -Subparagraph b(1) false 13 2 us-gaap_WeightedAverageNumberOfSharesOutstandingBasic us-gaap true na duration No definition available. false false false false false false false false false false false terselabel false 1 false true false false 564000000 564 false false false 2 false true false false 561000000 561 false false false 3 false true false false 563000000 563 false false false 4 false true false false 534000000 534 false false false xbrli:sharesItemType shares Number of [basic] shares, after adjustment for contingently issuable shares and other shares not deemed outstanding, determined by relating the portion of time within a reporting period that common shares have been outstanding to the total time in that period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 171 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 40 -Subparagraph a Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 8 false 14 2 us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustmentAbstract us-gaap true na duration No definition available. false false false false false true false false false false false verboselabel false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false xbrli:stringItemType string No definition available. false 17 2 us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding us-gaap true na duration No definition available. false false false false false false false false false false false terselabel false 1 false true false false 568000000 568 false false false 2 false true false false 561000000 561 false false false 3 false true false false 567000000 567 false false false 4 false true false false 534000000 534 false false false xbrli:sharesItemType shares The average number of shares issued and outstanding that are used in calculating diluted EPS, determined based on the timing of issuance of shares in the period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 40 -Subparagraph a Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 8 false 18 2 us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare us-gaap true na duration No definition available. false false false false false false false false false false false terselabel true 1 true true false false 0.51 0.51 false false false 2 true true false false -0.61 -0.61 false false false 3 true true false false 1.27 1.27 false false false 4 true true false false -0.32 -0.32 false false false us-types:perShareItemType decimal The amount of income (loss) from continuing operations available to each share of common stock outstanding during the reporting period and each share that would have been outstanding assuming the issuance of common shares for all dilutive potential common shares outstanding during the reporting period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 21 -Article 9 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 11, 12, 36, 37, 38 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 40 -Subparagraph a Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 03 -Paragraph 20 -Article 5 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 18 -Article 7 false 21 0 na true na na No definition available. false true false false false false false false false false false http://valero.com/role/earningslosspercommonsharedetails false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false false 5 true false false false Common Stock [Member] us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_CommonStockMember us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis explicitMember Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 false 6 true false false false Common Stock [Member] us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_CommonStockMember us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis explicitMember Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 na No definition available. No authoritative reference available. false 39 2 us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAbstract us-gaap true na duration No definition available. false false false false false true false false false false false verboselabel false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false xbrli:stringItemType string No definition available. false 40 2 us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount us-gaap true na duration No definition available. false false false false false false false false false false false verboselabel false 1 false false false false 0 0 false false false 2 false true false false 4000000 4 false false false 3 false false false false 0 0 false false false 4 false true false false 4000000 4 false false false xbrli:sharesItemType shares Securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 13, 14 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 171 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 40 -Subparagraph c false 41 0 na true na na No definition available. false true false false false false false false false false false http://valero.com/role/earningslosspercommonsharedetails false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false false 7 true false false false Stock Options [Member] us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_StockOptionsMember us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis explicitMember Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 false 8 true false false false Stock Options [Member] us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_StockOptionsMember us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis explicitMember Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 false 9 true false false false Stock Options [Member] us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_StockOptionsMember us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis explicitMember Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 false 10 true false false false Stock Options [Member] us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_StockOptionsMember us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis explicitMember Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 na No definition available. No authoritative reference available. false 59 2 us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAbstract us-gaap true na duration No definition available. false false false false false true false false false false false verboselabel false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false xbrli:stringItemType string No definition available. false 60 2 us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount us-gaap true na duration No definition available. false false false false false false false false false false false verboselabel false 1 false true false false 17000000 17 false false false 2 false true false false 10000000 10 false false false 3 false true false false 14000000 14 false false false 4 false true false false 10000000 10 false false false xbrli:sharesItemType shares Securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 13, 14 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 171 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 40 -Subparagraph c false 61 0 na true na na No definition available. false true false false false false false false false false false http://valero.com/role/earningslosspercommonsharedetails false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false false 11 USD true false false false Restricted Stock [Member] us-gaap_StatementClassOfStockAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_RestrictedStockMember us-gaap_StatementClassOfStockAxis explicitMember USDEPS Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 $ false 12 USD true false false false Restricted Stock [Member] us-gaap_StatementClassOfStockAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_RestrictedStockMember us-gaap_StatementClassOfStockAxis explicitMember USDEPS Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 $ false 13 USD true false false false Restricted Stock [Member] us-gaap_StatementClassOfStockAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_RestrictedStockMember us-gaap_StatementClassOfStockAxis explicitMember USDEPS Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 $ false 14 USD true false false false Restricted Stock [Member] us-gaap_StatementClassOfStockAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_RestrictedStockMember us-gaap_StatementClassOfStockAxis explicitMember USDEPS Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 $ na No definition available. No authoritative reference available. false 62 2 vlo_EarningsLossPerCommonShareFromContinuingOperationsAbstract vlo false na duration Earnings (loss) per common share from continuing operations. false false false false false true false false false false false verboselabel false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false xbrli:stringItemType string Earnings (loss) per common share from continuing operations. false 67 2 us-gaap_WeightedAverageNumberOfSharesOutstandingBasic us-gaap true na duration No definition available. false false false false false false false false false false false terselabel false 1 false true false false 3000000 3 false false false 2 false true false false 2000000 2 false false false 3 false true false false 3000000 3 false false false 4 false true false false 2000000 2 false false false xbrli:sharesItemType shares Number of [basic] shares, after adjustment for contingently issuable shares and other shares not deemed outstanding, determined by relating the portion of time within a reporting period that common shares have been outstanding to the total time in that period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 171 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 40 -Subparagraph a Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 8 false 68 2 us-gaap_EarningsPerShareBasicAbstract us-gaap true na duration No definition available. false false false false false true false false false false false terselabel false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false xbrli:stringItemType string No definition available. false 69 2 us-gaap_CommonStockDividendsPerShareCashPaid us-gaap true na duration No definition available. false false false false false false false false false false false terselabel true 1 true true false false 0.05 0.05 false false false 2 true true false false 0.15 0.15 false false false 3 true true false false 0.15 0.15 false false false 4 true true false false 0.44 0.44 false false false us-types:perShareItemType decimal Aggregate dividends paid during the period for each share of common stock outstanding. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Article 3 false 70 2 vlo_UndistributedEarningsLossPerCommonShare vlo false na duration Undistributed earnings (loss) per common share. false false false false false false false false false false false totallabel true 1 true true false false 0.47 0.47 false false false 2 false false false false 0 0 false false false 3 true true false false 1.12 1.12 false false false 4 false false false false 0 0   false false false us-types:perShareItemType decimal Undistributed earnings (loss) per common share. No authoritative reference available. true 71 2 us-gaap_IncomeLossFromContinuingOperationsPerBasicShare us-gaap true na duration No definition available. false false false false false false false false false false false terselabel true 1 true true false false 0.52 0.52 false false false 2 true true false false 0.15 0.15 false false false 3 true true false false 1.27 1.27 false false false 4 true true false false 0.44 0.44 false false false us-types:perShareItemType decimal The amount of income (loss) from continuing operations per each share of common stock outstanding during the reporting period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 21 -Article 9 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 36, 37, 38 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 03 -Paragraph 20 -Article 5 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 18 -Article 7 false 73 2 us-gaap_WeightedAverageNumberOfSharesOutstandingBasic us-gaap true na duration No definition available. false false false false false false false false false false false terselabel false 1 false true false false 3000000 3 false false false 2 false true false false 2000000 2 false false false 3 false true false false 3000000 3 false false false 4 false true false false 2000000 2 false false false xbrli:sharesItemType shares Number of [basic] shares, after adjustment for contingently issuable shares and other shares not deemed outstanding, determined by relating the portion of time within a reporting period that common shares have been outstanding to the total time in that period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 171 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 40 -Subparagraph a Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 8 false 81 0 na true na na No definition available. false true false false false false false false false false false http://valero.com/role/earningslosspercommonsharedetails false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false false 15 USD true false false false Common Stock [Member] us-gaap_StatementClassOfStockAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_CommonStockMember us-gaap_StatementClassOfStockAxis explicitMember USDEPS Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 $ false 16 USD true false false false Common Stock [Member] us-gaap_StatementClassOfStockAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_CommonStockMember us-gaap_StatementClassOfStockAxis explicitMember USDEPS Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 $ false 17 USD true false false false Common Stock [Member] us-gaap_StatementClassOfStockAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_CommonStockMember us-gaap_StatementClassOfStockAxis explicitMember USDEPS Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 $ false 18 USD true false false false Common Stock [Member] us-gaap_StatementClassOfStockAxis xbrldi http://xbrl.org/2006/xbrldi us-gaap_CommonStockMember us-gaap_StatementClassOfStockAxis explicitMember USDEPS Divide http://www.xbrl.org/2003/iso4217 USD iso4217 http://www.xbrl.org/2003/instance shares xbrli 0 USD Standard http://www.xbrl.org/2003/iso4217 USD iso4217 0 Shares Standard http://www.xbrl.org/2003/instance shares xbrli 0 $ na No definition available. No authoritative reference available. false 82 2 vlo_EarningsLossPerCommonShareFromContinuingOperationsAbstract vlo false na duration Earnings (loss) per common share from continuing operations. false false false false false true false false false false false verboselabel false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false xbrli:stringItemType string Earnings (loss) per common share from continuing operations. false 83 2 us-gaap_IncomeLossFromContinuingOperations us-gaap true credit duration No definition available. false false false false false false false false false false false verboselabel false 1 false true false false 292000000 292 false false false 2 false true false false -343000000 -343 false false false 3 false true false false 721000000 721 false false false 4 false true false false -170000000 -170 false false false xbrli:monetaryItemType monetary This element represents the income or loss from continuing operations attributable to the reporting entity which may also be defined as revenue less expenses and taxes from ongoing operations before extraordinary items and cumulative effects of changes in accounting principles, but after deduction of those portions of income or loss from continuing operations that are allocable to noncontrolling interests, if any. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 29 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 28 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 38 -Subparagraph b(1) false 84 2 us-gaap_DividendsCommonStockCash us-gaap true debit duration No definition available. false false false false false false false false false false false verboselabel false 1 false true false false 28000000 28 false false false 2 false true false false 84000000 84 false false false 3 false true false false 85000000 85 false false false 4 false true false false 238000000 238 false false false xbrli:monetaryItemType monetary Common stock cash dividend declared by an entity during the period. This element includes paid and unpaid dividends declared during the period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Article 3 false 85 2 vlo_DividendNonvestedRestrictedStock vlo false debit duration Common stock cash dividend declared by an entity during the period related to nonvested restricted stock. false false false false false false false false false false false totallabel false 1 false false false false 0 0   false false false 2 false false false false 0 0   false false false 3 false false false false 0 0 false false false 4 false true false false 1000000 1 false false false xbrli:monetaryItemType monetary Common stock cash dividend declared by an entity during the period related to nonvested restricted stock. No authoritative reference available. true 86 2 vlo_UndistributedEarningsLoss vlo false debit duration The remaining earnings allocable to common stock and participating securities to the extent each security may share in... false false false false false false false false false false false totallabel false 1 false true false false 264000000 264 false false false 2 false true false false -427000000 -427 false false false 3 false true false false 636000000 636 false false false 4 false true false false -409000000 -409 false false false xbrli:monetaryItemType monetary The remaining earnings allocable to common stock and participating securities to the extent each security may share in earnings as if all of the earnings for the perod had been distributed (260-10-45-60B). No authoritative reference available. true 87 2 us-gaap_WeightedAverageNumberOfSharesOutstandingBasic us-gaap true na duration No definition available. false false false false false false false false false false false terselabel false 1 false true false false 564000000 564 false false false 2 false true false false 561000000 561 false false false 3 false true false false 563000000 563 false false false 4 false true false false 534000000 534 false false false xbrli:sharesItemType shares Number of [basic] shares, after adjustment for contingently issuable shares and other shares not deemed outstanding, determined by relating the portion of time within a reporting period that common shares have been outstanding to the total time in that period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 171 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 40 -Subparagraph a Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 8 false 88 2 us-gaap_EarningsPerShareBasicAbstract us-gaap true na duration No definition available. false false false false false true false false false false false terselabel false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false xbrli:stringItemType string No definition available. false 89 2 us-gaap_CommonStockDividendsPerShareCashPaid us-gaap true na duration No definition available. false false false false false false false false false false false terselabel true 1 true true false false 0.05 0.05 false false false 2 true true false false 0.15 0.15 false false false 3 true true false false 0.15 0.15 false false false 4 true true false false 0.45 0.45 false false false us-types:perShareItemType decimal Aggregate dividends paid during the period for each share of common stock outstanding. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Article 3 false 90 2 vlo_UndistributedEarningsLossPerCommonShare vlo false na duration Undistributed earnings (loss) per common share. false false false false false false false false false false false totallabel true 1 true true false false 0.47 0.47 false false false 2 true true false false -0.76 -0.76 false false false 3 true true false false 1.12 1.12 false false false 4 true true false false -0.77 -0.77 false false false us-types:perShareItemType decimal Undistributed earnings (loss) per common share. No authoritative reference available. true 91 2 us-gaap_IncomeLossFromContinuingOperationsPerBasicShare us-gaap true na duration No definition available. false false false false false false false false false false false terselabel true 1 true true false false 0.52 0.52 false false false 2 true true false false -0.61 -0.61 false false false 3 true true false false 1.27 1.27 false false false 4 true true false false -0.32 -0.32 false false false us-types:perShareItemType decimal The amount of income (loss) from continuing operations per each share of common stock outstanding during the reporting period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 21 -Article 9 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 36, 37, 38 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 03 -Paragraph 20 -Article 5 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 18 -Article 7 false 92 2 us-gaap_IncomeLossFromContinuingOperations us-gaap true credit duration No definition available. false false false false false false false false false false false verboselabel false 1 true true false false 292000000 292 false false false 2 true true false false -343000000 -343 false false false 3 true true false false 721000000 721 false false false 4 true true false false -170000000 -170 false false false xbrli:monetaryItemType monetary This element represents the income or loss from continuing operations attributable to the reporting entity which may also be defined as revenue less expenses and taxes from ongoing operations before extraordinary items and cumulative effects of changes in accounting principles, but after deduction of those portions of income or loss from continuing operations that are allocable to noncontrolling interests, if any. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 29 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 28 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher AICPA -Name Accounting Research Bulletin (ARB) -Number 51 -Paragraph 38 -Subparagraph b(1) false 93 2 us-gaap_WeightedAverageNumberOfSharesOutstandingBasic us-gaap true na duration No definition available. false false false false false false false false false false false terselabel false 1 false true false false 564000000 564 false false false 2 false true false false 561000000 561 false false false 3 false true false false 563000000 563 false false false 4 false true false false 534000000 534 false false false xbrli:sharesItemType shares Number of [basic] shares, after adjustment for contingently issuable shares and other shares not deemed outstanding, determined by relating the portion of time within a reporting period that common shares have been outstanding to the total time in that period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 171 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 40 -Subparagraph a Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 8 false 94 2 us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustmentAbstract us-gaap true na duration No definition available. false false false false false true false false false false false verboselabel false 1 false false false false 0 0 false false false 2 false false false false 0 0 false false false 3 false false false false 0 0 false false false 4 false false false false 0 0 false false false xbrli:stringItemType string No definition available. false 95 2 us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements us-gaap true na duration No definition available. false false false false false false false false false false false verboselabel false 1 false true false false 3000000 3 false false false 2 false false false false 0 0 false false false 3 false true false false 3000000 3 false false false 4 false false false false 0 0   false false false xbrli:sharesItemType shares Aggregate awards of share options and nonvested shares to be issued to an employee under a share-based compensation arrangement are considered options for purposes of computing diluted earnings per share. Such share-based awards shall be considered to be outstanding as of the grant date for purposes of computing diluted earnings per share even though their exercise may be contingent upon vesting. Those share-based awards are included in the diluted Earnings Per Share (EPS) computation even if the employee may not receive (or be able to sell) the stock until some future date. Accordingly, all shares to be issued shall be included in computing diluted EPS if the effect is dilutive. The dilutive effect of share-based compensation arrangements shall be computed using the treasury stock method. If the equity share options or other equity instruments are outstanding for only part of a period, the shares issuable shall be weighted to reflect the portion of the period during which the equity instruments were outstanding. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 20 false 96 2 vlo_IncrementalCommonSharesAttributableToPerformanceAwardsAndUnvestedRestrictedStock vlo false na duration Incremental Common Shares Attributable To Performance Awards And Unvested Restricted Stock. false false false false false false false false false false false totallabel false 1 false true false false 1000000 1 false false false 2 false false false false 0 0 false false false 3 false true false false 1000000 1 false false false 4 false false false false 0 0   false false false xbrli:sharesItemType shares Incremental Common Shares Attributable To Performance Awards And Unvested Restricted Stock. No authoritative reference available. true 97 2 us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding us-gaap true na duration No definition available. false false false false false false false false false false false terselabel false 1 false true false false 568000000 568 false false false 2 false true false false 561000000 561 false false false 3 false true false false 567000000 567 false false false 4 false true false false 534000000 534 false false false xbrli:sharesItemType shares The average number of shares issued and outstanding that are used in calculating diluted EPS, determined based on the timing of issuance of shares in the period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 40 -Subparagraph a Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 8 false 98 2 us-gaap_IncomeLossFromContinuingOperationsPerDilutedShare us-gaap true na duration No definition available. false false false false false false false false false false false terselabel true 1 true true false false 0.51 0.51 false false false 2 true true false false -0.61 -0.61 false false false 3 true true false false 1.27 1.27 false false false 4 true true false false -0.32 -0.32 false false false us-types:perShareItemType decimal The amount of income (loss) from continuing operations available to each share of common stock outstanding during the reporting period and each share that would have been outstanding assuming the issuance of common shares for all dilutive potential common shares outstanding during the reporting period. Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 21 -Article 9 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 11, 12, 36, 37, 38 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Statement of Financial Accounting Standard (FAS) -Number 128 -Paragraph 40 -Subparagraph a Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 03 -Paragraph 20 -Article 5 Reference 5: http://www.xbrl.org/2003/role/presentationRef -Publisher SEC -Name Regulation S-X (SX) -Number 210 -Section 04 -Paragraph 18 -Article 7 false 4 43 false Millions Millions NoRounding false true