v3.20.1

Segment Disclosures (Segment Reporting Information By Segment) (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2019 | Dec. 31, 2018 | Dec. 31, 2017
Segment Reporting Information [Line Items] |  |  |
Revenues | $ 2,727,912 | $ 2,826,573 | $ 2,507,661
Operating expenses | 634,081 | 649,436 | 577,978
Cost of product sales | 619,279 | 704,313 | 635,617
Other operating (income) expense | (2,975) | 0 | 0
(Earnings) losses of non-controlled entities | (168,961) | (181,117) | (120,994)
Operating margin | 1,646,488 | 1,653,941 | 1,415,060
Depreciation and amortization expense | 246,134 | 265,077 | 196,630
G&A expenses | 196,650 | 194,283 | 165,717
Operating profit | 1,203,704 | 1,194,581 | 1,052,713
Additions to long-lived assets | 980,575 | 562,296 | 572,744
Total assets | 8,437,729 | 7,747,537 | 7,394,375
Goodwill | 53,260 | 53,260 | 53,260
Investments in non-controlled entities | 1,240,551 | 1,076,306 | 1,082,511
Operating Segments [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Additions to long-lived assets | 880,137 | 506,354 | 564,687
Total assets | 8,306,653 | 7,491,246 | 7,188,235
Operating Segments [Member] | Refined Products Segment [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Revenues | 2,070,213 | 2,202,602 | 1,987,895
Operating expenses | 471,743 | 486,596 | 459,440
Cost of product sales | 591,228 | 660,185 | 594,292
Other operating (income) expense | (10,185) |  |
(Earnings) losses of non-controlled entities | (8,070) | (18,884) | (821)
Operating margin | 1,025,497 | 1,074,705 | 934,984
Depreciation and amortization expense | 174,096 | 202,047 | 139,840
G&A expenses | 140,735 | 140,333 | 122,127
Operating profit | 710,666 | 732,325 | 673,017
Additions to long-lived assets | 805,902 | 357,359 | 391,955
Total assets | 5,411,920 | 4,687,351 | 4,279,700
Goodwill | 41,178 | 41,178 | 41,178
Investments in non-controlled entities | 422,384 | 292,820 | 121,479
Operating Segments [Member] | Crude Oil Pipeline and Terminals Segment [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Revenues | 663,116 | 627,662 | 523,169
Operating expenses | 173,261 | 172,478 | 127,215
Cost of product sales | 28,051 | 44,128 | 41,325
Other operating (income) expense | 7,210 |  |
(Earnings) losses of non-controlled entities | (160,891) | (162,233) | (120,173)
Operating margin | 615,485 | 573,289 | 474,802
Depreciation and amortization expense | 66,532 | 57,083 | 51,516
G&A expenses | 55,915 | 53,950 | 43,590
Operating profit | 493,038 | 462,256 | 379,696
Additions to long-lived assets | 74,235 | 148,995 | 172,732
Total assets | 2,894,733 | 2,803,895 | 2,908,535
Goodwill | 12,082 | 12,082 | 12,082
Investments in non-controlled entities | 818,167 | 783,486 | 961,032
Corporate, Non-Segment [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Total assets | 131,076 | 256,291 | 206,140
Intersegment Eliminations [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Revenues | (5,417) | (3,691) | (3,403)
Operating expenses | (10,923) | (9,638) | (8,677)
Cost of product sales | 0 | 0 | 0
Other operating (income) expense | 0 |  |
(Earnings) losses of non-controlled entities | 0 | 0 | 0
Operating margin | 5,506 | 5,947 | 5,274
Depreciation and amortization expense | 5,506 | 5,947 | 5,274
G&A expenses | 0 | 0 | 0
Operating profit | 0 | 0 | 0
Service [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Revenues | 1,970,630 | 1,878,988 | 1,731,775
Service [Member] | Operating Segments [Member] | Refined Products Segment [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Revenues | 1,355,682 | 1,316,616 | 1,261,012
Service [Member] | Operating Segments [Member] | Crude Oil Pipeline and Terminals Segment [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Revenues | 620,365 | 566,063 | 474,166
Service [Member] | Intersegment Eliminations [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Revenues | (5,417) | (3,691) | (3,403)
Product [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Revenues | 736,092 | 927,220 | 758,206
Product [Member] | Operating Segments [Member] | Refined Products Segment [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Revenues | 707,812 | 880,453 | 723,153
Product [Member] | Operating Segments [Member] | Crude Oil Pipeline and Terminals Segment [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Revenues | 28,280 | 46,767 | 35,053
Product [Member] | Intersegment Eliminations [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Revenues | 0 | 0 | 0
Product and Service, Other [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Revenues | 21,190 | 20,365 | 17,680
Product and Service, Other [Member] | Operating Segments [Member] | Refined Products Segment [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Revenues | 6,719 | 5,533 | 3,730
Product and Service, Other [Member] | Operating Segments [Member] | Crude Oil Pipeline and Terminals Segment [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Revenues | 14,471 | 14,832 | 13,950
Product and Service, Other [Member] | Intersegment Eliminations [Member] |  |  |
Segment Reporting Information [Line Items] |  |  |
Revenues | $ 0 | $ 0 | $ 0

X
- Definition Operating margin (loss) + References No definition available. + Details
Name: | mmp_OperatingMarginLoss
Namespace Prefix: | mmp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Sum of the carrying amounts as of the balance sheet date of all assets that are recognized. Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(11)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -URI http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(12)) -URI http://asc.fasb.org/extlink&oid=119400593&loc=d3e572229-122910 + Details
Name: | us-gaap_Assets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The aggregate costs related to goods produced and sold and services rendered by an entity during the reporting period. This excludes costs incurred during the reporting period related to financial services rendered and other revenue generating activities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.2(a),(d)) -URI http://asc.fasb.org/extlink&oid=116634182&loc=SL114868664-224227 + Details
Name: | us-gaap_CostOfGoodsAndServicesSold
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The aggregate expense recognized in the current period that allocates the cost of tangible assets, intangible assets, or depleting assets to periods that benefit from use of the assets. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599 Reference 2: 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 + Details
Name: | us-gaap_DepreciationDepletionAndAmortization
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The aggregate direct operating costs incurred during the reporting period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.2) -URI http://asc.fasb.org/extlink&oid=116634182&loc=SL114868664-224227 + Details
Name: | us-gaap_DirectOperatingCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The aggregate total of expenses of managing and administering the affairs of an entity, including affiliates of the reporting entity, which are not directly or indirectly associated with the manufacture, sale or creation of a product or product line. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.4) -URI http://asc.fasb.org/extlink&oid=116634182&loc=SL114868664-224227 + Details
Name: | us-gaap_GeneralAndAdministrativeExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount after accumulated impairment loss of an asset representing future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 45 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=77989000&loc=SL49117168-202975 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 20 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=99380562&loc=d3e13770-109266 + Details
Name: | us-gaap_Goodwill
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of income (loss) for proportionate share of equity method investee's income (loss). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(12)) -URI http://asc.fasb.org/extlink&oid=116634182&loc=SL114868664-224227 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-04(10)) -URI http://asc.fasb.org/extlink&oid=116637232&loc=SL114874131-224263 Reference 3: 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 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04(13)(f)) -URI http://asc.fasb.org/extlink&oid=116637391&loc=SL114874048-224260 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (g) -URI http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599 Reference 6: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=109237563&loc=d3e33749-111570 + Details
Name: | us-gaap_IncomeLossFromEquityMethodInvestments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of investment in equity method investee and investment in and advance to affiliate. + References Reference 1: 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.12) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_InvestmentsInAffiliatesSubsidiariesAssociatesAndJointVentures
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The net result for the period of deducting operating expenses from operating revenues. + References No definition available. + Details
Name: | us-gaap_OperatingIncomeLoss
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The net amount of other operating income and expenses, the components of which are not separately disclosed on the income statement, from items that are associated with the entity's normal revenue producing operations. + References No definition available. + Details
Name: | us-gaap_OtherOperatingIncomeExpenseNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of acquisition of long-lived, physical assets used in the normal conduct of business and not intended for resale. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, furniture and fixtures, and computer equipment. + References No definition available. + Details
Name: | us-gaap_PropertyPlantAndEquipmentAdditions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of revenue recognized from goods sold, services rendered, insurance premiums, or other activities that constitute an earning process. Includes, but is not limited to, investment and interest income before deduction of interest expense when recognized as a component of revenue, and sales and trading gain (loss). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 32 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=115929826&loc=d3e8933-108599 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03(1)) -URI http://asc.fasb.org/extlink&oid=116634182&loc=SL114868664-224227 + Details
Name: | us-gaap_Revenues
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_SegmentReportingInformationLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | srt_ConsolidationItemsAxis=us-gaap_OperatingSegmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=mmp_RefinedProductsSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=mmp_CrudeOilPipelineandTerminalsSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidationItemsAxis=us-gaap_CorporateNonSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ConsolidationItemsAxis=us-gaap_IntersegmentEliminationMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ProductOrServiceAxis=us-gaap_ServiceMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ProductOrServiceAxis=us-gaap_ProductMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ProductOrServiceAxis=us-gaap_ProductAndServiceOtherMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |