v3.20.1

Derivative Financial Instruments (Tables) | 3 Months Ended
--- | ---
Mar. 31, 2020
Derivative Instruments and Hedging Activities Disclosure [Abstract] |
Schedule Of NYMEX Contracts And Butane Price Swap Purchase Agreements | Our open futures contracts at March 31, 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 April 2020 and November 2022
Futures - Economic Hedges |  | 0.1 million barrels of gas liquids |  | April 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 March 31, 2020 (in thousands):
Description |  | Gross Amounts of Recognized Assets (Liabilities) |  | Gross Amounts of Assets (Liabilities) Offset in the Consolidated Balance Sheets |  | Net Amounts of Assets (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 3/31/2020 |  | $ | 66,007 |  |  | $ | (1,054 | ) |  | $ | 64,953 |  |  | $ | (50,345 | ) |  | $ | 14,608 |
(1) | Amount represents the maximum loss we would incur if all of our counterparties failed to perform on their derivative contracts.
Basis Derivative Agreement During 2019, we entered into a basis derivative agreement with a joint venture co-owner’s affiliate, and, contemporaneously, that affiliate entered into an intrastate transportation services agreement with the joint venture. Settlements under the basis derivative agreement are determined based on the basis differential of crude oil prices at different market locations and a notional volume of 30,000 barrels per day. As a result, we account for this agreement as a derivative. The agreement will expire in early 2022. We recognize the changes in fair value of this agreement based on forward price curves for crude oil in West Texas and the Houston Gulf Coast in other operating income (expense) in our consolidated statements of income. The liability for this agreement at December 31, 2019 and March 31, 2020 was $17.3 million and $18.5 million, respectively.
Derivative Gains Included in Accumulated Other Comprehensive Loss (AOCL) | The changes in derivative activity included in AOCL for the three months ended March 31, 2019 and 2020 were as follows (in thousands):
| Three Months Ended
| March 31,
Derivative Losses Included in AOCL | 2019 |  | 2020
Beginning balance | $ | (26,480 | ) |  | $ | (48,960 | )
Net loss on cash flow hedges | (4,376 | ) |  | (11,914 | )
Reclassification of net loss on cash flow hedges to income | 627 |  |  | 809 |
Ending balance | $ | (30,229 | ) |  | $ | (60,065 | )
Derivatives and Hedging-Cash Flow Hedges | The following is a summary of the effect on our consolidated statements of income for the three months ended March 31, 2019 and 2020 of derivatives that were designated as cash flow hedges (in thousands):
|  | Interest Rate Contracts
|  | Amount of 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 March 31, 2019 |  | $ | (4,376 | ) |  | Interest expense |  | $ | (627 | )
Three Months Ended March 31, 2020 |  | $ | (11,914 | ) |  | Interest expense |  | $ | (809 | )
Derivatives and Hedging-Overall-Subsequent Measurement | The following table provides a summary of the effect on our consolidated statements of income for the three months ended March 31, 2019 and 2020 of derivatives that were not designated as hedging instruments (in thousands):
|  |  |  | Amount of Gain (Loss) Recognized on Derivatives
|  |  |  | Three Months Ended |
|  | Location of Gain (Loss) Recognized on Derivatives |  | March 31, |
Derivative Instrument |  |  | 2019 |  | 2020 |
Futures contracts |  | Product sales revenue |  | $ | (54,511 | ) |  | $ | 123,769 |  |
Futures contracts |  | Cost of product sales |  | 2,273 |  |  | (3,927 | ) |
Basis derivative agreement |  | Other operating income (expense) |  | — |  |  | (2,899 | ) |
|  | Total |  | $ | (52,238 | ) |  | $ | 116,943 |  |
Derivatives and Hedging-Designated | The following table provides a summary of the fair value of derivatives, which are presented on a net basis in our consolidated balance sheets, that were designated as hedging instruments as of March 31, 2020 (in thousands). There were no balances outstanding at December 31, 2019.
|  | March 31, 2020
|  | Asset Derivatives |  | Liability Derivatives
Derivative Instrument |  | Balance Sheet Location |  | Fair Value |  | Balance Sheet Location |  | Fair Value
Interest rate contracts |  | Other current assets |  | $ | — |  |  | Other current liabilities |  | $ | 11,914 |
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 March 31, 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 |
|  | March 31, 2020
|  | Asset Derivatives |  | Liability Derivatives
Derivative Instrument |  | Balance Sheet Location |  | Fair Value |  | Balance Sheet Location |  | Fair Value
Futures contracts |  | Commodity derivatives contracts, net |  | $ | 62,845 |  |  | Commodity derivatives contracts, net |  | $ | 1,046 |
Futures contracts |  | Other noncurrent assets |  | 3,162 |  |  | Other noncurrent liabilities |  | 8 |
Basis derivative agreement |  | Other current assets |  | — |  |  | Other current liabilities |  | 9,791 |
Basis derivative agreement |  | Other noncurrent assets |  | — |  |  | Other noncurrent liabilities |  | 8,685 |
|  | Total |  | $ | 66,007 |  |  | Total |  | $ | 19,530 |

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 effective portion of the gains and losses on derivative instruments designated (and non-derivative instruments) designated and qualifying in cash flow hedges and net investment hedges that was recognized in other comprehensive income (loss) during the current period. + 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 (b) -URI http://asc.fasb.org/extlink&oid=109980867&loc=SL5624171-113959 + Details
Name: | us-gaap_ScheduleOfDerivativeInstrumentsEffectOnOtherComprehensiveIncomeLossTableTextBlock
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