v3.20.1

Subsequent Events (Details) $ / shares in Units, shares in Thousands, $ in Thousands | 3 Months Ended | 12 Months Ended |  |  |  |  |  |  |  |  |  |  |  |  |  |
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Mar. 31, 2020 USD ($) Terminal shares | Dec. 31, 2019 USD ($) $ / shares | Dec. 31, 2018 USD ($) $ / shares | Dec. 31, 2017 USD ($) $ / shares | May 15, 2020 $ / shares | Feb. 14, 2020 $ / shares | Nov. 14, 2019 $ / shares | Aug. 14, 2019 $ / shares | May 15, 2019 $ / shares | Feb. 14, 2019 $ / shares | Nov. 14, 2018 $ / shares | Aug. 14, 2018 $ / shares | May 15, 2018 $ / shares | Feb. 14, 2018 $ / shares | Nov. 14, 2017 $ / shares | Aug. 14, 2017 $ / shares | May 15, 2017 $ / shares | Feb. 14, 2017 $ / shares
Subsequent Event [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Partners' Capital Account, Distribution Per Unit of Limited Partner Interest (in dollars per share) | $ / shares |  | $ 4.0350 | $ 3.7925 | $ 3.5225 |  |  | $ 1.0200 | $ 1.0125 | $ 1.0050 | $ 0.9975 | $ 0.9775 | $ 0.9575 | $ 0.9375 | $ 0.9200 | $ 0.9050 | $ 0.8900 | $ 0.8725 | $ 0.8550
Proceeds from Sale of Other Assets |  | $ 65,366 | $ 576,568 | $ 44,392 |  |  |  |  |  |  |  |  |  |  |  |  |  |
Gain (Loss) on Disposition of Other Assets |  | $ 28,966 | $ 353,797 | $ 18,505 |  |  |  |  |  |  |  |  |  |  |  |  |  |
Subsequent Event [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Subsequent Event [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Partners' Capital Account, Distribution Per Unit of Limited Partner Interest (in dollars per share) | $ / shares |  |  |  |  |  | $ 1.0275 |  |  |  |  |  |  |  |  |  |  |  |
Stock Repurchase Program, Authorized Amount | $ 750,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Stock Repurchased During Period, Shares | shares | 3,600 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Payments for Repurchase of Common Stock | $ 202,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Forecast [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Subsequent Event [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Partners' Capital Account, Distribution Per Unit of Limited Partner Interest (in dollars per share) | $ / shares |  |  |  |  | $ 1.0275 |  |  |  |  |  |  |  |  |  |  |  |  |
Buckeye Partners, L.P. [Member] | Subsequent Event [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Subsequent Event [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Number Of Marine Terminals Sold | Terminal | 3 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Proceeds from Sale of Other Assets | $ 252,600 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Asset Impairment Charges | 5,400 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Saddlehorn Pipeline Company [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Subsequent Event [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Equity Method Investment, Ownership Percentage |  | 40.00% |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Saddlehorn Pipeline Company [Member] | Subsequent Event [Member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Subsequent Event [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Proceeds from Sale of Other Assets | $ 79,900 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Equity Method Investment Sold Percentage | 10.00% |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Equity Method Investment, Ownership Percentage | 30.00% |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Gain (Loss) on Disposition of Other Assets | $ 12,900 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |

X
- Definition Equity Method Investment Sold Percentage + References No definition available. + Details
Name: | mmp_EquityMethodInvestmentSoldPercentage
Namespace Prefix: | mmp_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number Of Marine Terminals Sold + References No definition available. + Details
Name: | mmp_NumberOfMarineTerminalsSold
Namespace Prefix: | mmp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of write-down of assets recognized in the income statement. Includes, but is not limited to, losses from tangible assets, intangible assets and goodwill. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3602-108585 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 360 -SubTopic 10 -Section 45 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=109226348&loc=d3e2420-110228 + Details
Name: | us-gaap_AssetImpairmentCharges
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The percentage of ownership of common stock or equity participation in the investee accounted for under the equity method of accounting. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571 + Details
Name: | us-gaap_EquityMethodInvestmentOwnershipPercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of gain (loss) on sale or disposal of other assets. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3602-108585 + Details
Name: | us-gaap_GainLossOnSaleOfOtherAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of the distribution per unit of limited partner interest. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187085-122770 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 5 -Subparagraph (SAB Topic 4.F) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187171-122770 + Details
Name: | us-gaap_PartnersCapitalAccountDistributionPerUnitOfLimitedPartnerInterest
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition The cash outflow to reacquire common stock during the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3291-108585 + Details
Name: | us-gaap_PaymentsForRepurchaseOfCommonStock
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash inflow from the sale of property, plant and equipment (capital expenditures), software, and other intangible assets. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 12 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3179-108585 + Details
Name: | us-gaap_ProceedsFromSaleOfProductiveAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of stock repurchase plan authorized. + References No definition available. + Details
Name: | us-gaap_StockRepurchaseProgramAuthorizedAmount1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Number of shares that have been repurchased during the period and have not been retired and are not held in treasury. Some state laws may govern the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=109259400&loc=d3e21463-112644 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187085-122770 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_StockRepurchasedDuringPeriodShares
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Detail information of subsequent event by type. User is expected to use existing line items from elsewhere in the taxonomy as the primary line items for this disclosure, which is further associated with dimension and member elements pertaining to a subsequent event. + References No definition available. + Details
Name: | us-gaap_SubsequentEventLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_SubsequentEventTypeAxis=us-gaap_SubsequentEventMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementScenarioAxis=srt_ScenarioForecastMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CounterpartyNameAxis=mmp_BuckeyePartnersL.P.Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis=mmp_SaddlehornPipelineCompanyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |