v3.20.2

Derivative Financial Instruments (Tables) | 6 Months Ended
--- | ---
Jun. 30, 2020
Derivative Instruments and Hedging Activities Disclosure [Abstract] |
Schedule Of NYMEX Contracts And Butane Price Swap Purchase Agreements | Our open futures contracts at June 30, 2020 were as follows:
Type of Contract/Accounting Methodology |  | Product Represented by the Contract and Associated Barrels |  | Maturity Dates
Futures - Economic Hedges |  | 2.3 million barrels of refined products and crude oil |  | Between July 2020 and November 2022
Futures - Economic Hedges |  | 0.2 million barrels of gas liquids |  | Between July and December 2020
Derivatives and Offset Amounts | A schedule of the derivative amounts we have offset and the deposit amounts we could offset under a master netting arrangement are provided below as of December 31, 2019 and June 30, 2020 (in thousands):
Description |  | Gross Amounts of Recognized Liabilities |  | Gross Amounts of Assets Offset in the Consolidated Balance Sheets |  | Net Amounts of Liabilities Presented in the Consolidated Balance Sheets |  | Margin Deposit Amounts Not Offset in the Consolidated Balance Sheets |  | Net Asset Amount(1)
As of 12/31/2019 |  | $ | (11,033 | ) |  | $ | 811 |  |  | $ | (10,222 | ) |  | $ | 27,415 |  |  | $ | 17,193 |
As of 6/30/2020 |  | $ | (14,570 | ) |  | $ | 3,218 |  |  | $ | (11,352 | ) |  | $ | 25,456 |  |  | $ | 14,104 |
(1) Amount represents the maximum loss we would incur if all of our counterparties failed to perform on their derivative contracts.
Derivative Gains Included in Accumulated Other Comprehensive Loss (AOCL) | The changes in derivative activity included in AOCL for the three and six months ended June 30, 2019 and 2020 were as follows (in thousands):
| Three Months Ended |  | Six Months Ended
| June 30, |  | June 30,
Derivative Losses Included in AOCL | 2019 |  | 2020 |  | 2019 |  | 2020
Beginning balance | $ | (30,229 | ) |  | $ | (60,065 | ) |  | $ | (26,480 | ) |  | $ | (48,960 | )
Net gain (loss) on cash flow hedges | (6,659 | ) |  | 1,470 |  |  | (11,035 | ) |  | (10,444 | )
Reclassification of net loss on cash flow hedges to income | 601 |  |  | 847 |  |  | 1,228 |  |  | 1,656 |
Ending balance | $ | (36,287 | ) |  | $ | (57,748 | ) |  | $ | (36,287 | ) |  | $ | (57,748 | )
Derivatives and Hedging-Cash Flow Hedges | The following is a summary of the effect on our consolidated statements of income for the three and six months ended June 30, 2019 and 2020 of derivatives that were designated as cash flow hedges (in thousands):
|  | Interest Rate Contracts
|  | Amount of Gain (Loss) Recognized in AOCL on Derivatives |  | Location of Loss Reclassified from AOCL into Income |  | Amount of Loss Reclassified from AOCL into Income
Three Months Ended June 30, 2019 |  | $ | (6,659 | ) |  | Interest expense |  | $ | (601 | )
Three Months Ended June 30, 2020 |  | $ | 1,470 |  |  | Interest expense |  | $ | (847 | )
Six Months Ended June 30, 2019 |  | $ | (11,035 | ) |  | Interest expense |  | $ | (1,228 | )
Six Months Ended June 30, 2020 |  | $ | (10,444 | ) |  | Interest expense |  | $ | (1,656 | )
Derivatives and Hedging-Overall-Subsequent Measurement | The following table provides a summary of the effect on our consolidated statements of income for the three and six months ended June 30, 2019 and 2020 of derivatives that were not designated as hedging instruments (in thousands):
|  |  |  | Amount of Gain (Loss) Recognized on Derivatives
|  |  |  | Three Months Ended |  | Six Months Ended
|  | Location of Gain (Loss) Recognized on Derivatives |  | June 30, |  | June 30,
Derivative Instrument |  |  | 2019 |  | 2020 |  | 2019 |  | 2020
Futures contracts |  | Product sales revenue |  | $ | (4,619 | ) |  | $ | (26,755 | ) |  | $ | (59,130 | ) |  | $ | 97,014 |
Futures contracts |  | Cost of product sales |  | (6,148 | ) |  | (417 | ) |  | (3,875 | ) |  | (4,344 | )
Basis derivative agreement |  | Other operating income (expense) |  | (6,487 | ) |  | 3,400 |  |  | (4,959 | ) |  | 501 |
|  | Total |  | $ | (17,254 | ) |  | $ | (23,772 | ) |  | $ | (67,964 | ) |  | $ | 93,171 |
Derivatives and Hedging-Designated |
Balance Sheets The following tables provide a summary of the fair value of derivatives, which are presented on a net basis in our consolidated balance sheets, that were not designated as hedging instruments as of December 31, 2019 and June 30, 2020 (in thousands):
|  | December 31, 2019
|  | Asset Derivatives |  | Liability Derivatives
Derivative Instrument |  | Balance Sheet Location |  | Fair Value |  | Balance Sheet Location |  | Fair Value
Futures contracts |  | Commodity derivatives contracts, net |  | $ | 811 |  |  | Commodity derivatives contracts, net |  | $ | 11,033 |
Basis derivative agreement |  | Other current assets |  | — |  |  | Other current liabilities |  | 8,457 |
Basis derivative agreement |  | Other noncurrent assets |  | — |  |  | Other noncurrent liabilities |  | 8,847 |
|  | Total |  | $ | 811 |  |  | Total |  | $ | 28,337 |
|  | June 30, 2020
|  | Asset Derivatives |  | Liability Derivatives
Derivative Instrument |  | Balance Sheet Location |  | Fair Value |  | Balance Sheet Location |  | Fair Value
Futures contracts |  | Commodity derivatives contracts, net |  | $ | 1,024 |  |  | Commodity derivatives contracts, net |  | $ | 14,555 |
Futures contracts |  | Other noncurrent assets |  | 2,194 |  |  | Other noncurrent liabilities |  | 15 |
Basis derivative agreement |  | Other current assets |  | — |  |  | Other current liabilities |  | 8,839 |
Basis derivative agreement |  | Other noncurrent assets |  | — |  |  | Other noncurrent liabilities |  | 3,910 |
|  | Total |  | $ | 3,218 |  |  | Total |  | $ | 27,319 |

X
- Definition Derivatives and Offset Amounts [Table Text Block] + References No definition available. + Details
Name: | mmp_DerivativesAndOffsetAmountsTableTextBlock
Namespace Prefix: | mmp_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure for other derivative instruments not designated as hedging instruments of the location and amount of gains and losses reported in the statement of financial performance. + References No definition available. + Details
Name: | mmp_ScheduleOfDerivativesAndHedgingOverallSubsequentMeasurementTableTextBlock
Namespace Prefix: | mmp_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Schedule Of NYMEX Contracts And Butane Price Swap Purchase Agreements [Table Text Block] + References No definition available. + Details
Name: | mmp_ScheduleOfNymexContractsAndButanePriceSwapPurchaseAgreementsTableTextBlock
Namespace Prefix: | mmp_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of gain (loss) on derivative and nonderivative instruments designated and qualifying as cash flow hedge recorded in accumulated other comprehensive income (AOCI) and reclassified into earnings. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4C -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=109980867&loc=SL5624171-113959 + Details
Name: | us-gaap_ScheduleOfCashFlowHedgesIncludedInAccumulatedOtherComprehensiveIncomeLossTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4B -URI http://asc.fasb.org/extlink&oid=109980867&loc=SL5624163-113959 + Details
Name: | us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of pertinent information about a derivative or group of derivatives on a disaggregated basis, such as for individual instruments, or small groups of similar instruments. May include a combination of the type of instrument, risks being hedged, notional amount, hedge designation, related hedged item, inception date, maturity date, or other relevant item. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4B -URI http://asc.fasb.org/extlink&oid=109980867&loc=SL5624163-113959 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 1B -URI http://asc.fasb.org/extlink&oid=109980867&loc=SL5580258-113959 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=109980867&loc=d3e41620-113959 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 1A -URI http://asc.fasb.org/extlink&oid=109980867&loc=SL5579245-113959 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=109980867&loc=d3e41638-113959 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=109980867&loc=d3e41678-113959 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=109980867&loc=d3e41641-113959 Reference 8: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4C -URI http://asc.fasb.org/extlink&oid=109980867&loc=SL5624171-113959 Reference 9: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08.(n)(2)) -URI http://asc.fasb.org/extlink&oid=26873400&loc=d3e23780-122690 Reference 10: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=109980867&loc=SL5579240-113959 + Details
Name: | us-gaap_ScheduleOfDerivativeInstrumentsTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration