v3.20.2

Revenue from Contract with Customers (Disaggregation of Revenue) (Details) - USD ($) $ in Thousands | 3 Months Ended | 9 Months Ended
--- | --- | ---
Sep. 30, 2020 | Sep. 30, 2019 | Sep. 30, 2020 | Sep. 30, 2019
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | $ 598,264 | $ 656,596 | $ 1,841,478 | $ 1,987,230
Lease revenue | (24,456) | (25,658) | (74,489) | (74,707)
(Gains) losses from futures contracts included in product sales revenue | 7,734 | (17,625) | (89,280) | 41,504
Affiliate management fee revenue | (5,288) | (5,357) | (15,895) | (15,810)
Total revenue from contracts with customers under ASC 606 | 576,254 | 607,956 | 1,661,814 | 1,938,217
Service [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 473,531 | 506,432 | 1,343,741 | 1,473,629
Product [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 119,445 | 144,807 | 481,842 | 497,791
Product and Service, Other [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 5,288 | 5,357 | 15,895 | 15,810
Operating Segments [Member] | Refined Products Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 436,640 | 490,839 | 1,381,264 | 1,493,338
Lease revenue | (5,315) | (6,302) | (17,247) | (20,756)
(Gains) losses from futures contracts included in product sales revenue | 6,850 | (17,061) | (89,763) | 39,761
Affiliate management fee revenue | (1,579) | (1,764) | (4,676) | (5,085)
Total revenue from contracts with customers under ASC 606 | 436,596 | 465,712 | 1,269,578 | 1,507,258
Operating Segments [Member] | Crude Oil Pipeline and Terminals Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 163,554 | 167,313 | 465,307 | 497,727
Lease revenue | (19,141) | (19,356) | (57,242) | (53,951)
(Gains) losses from futures contracts included in product sales revenue | 884 | (564) | 483 | 1,743
Affiliate management fee revenue | (3,709) | (3,593) | (11,219) | (10,725)
Total revenue from contracts with customers under ASC 606 | 141,588 | 143,800 | 397,329 | 434,794
Operating Segments [Member] | Service [Member] | Refined Products Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 320,809 | 352,611 | 914,887 | 1,009,812
Operating Segments [Member] | Service [Member] | Crude Oil Pipeline and Terminals Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 154,652 | 155,377 | 433,947 | 467,652
Operating Segments [Member] | Product [Member] | Refined Products Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 114,252 | 136,464 | 461,701 | 478,441
Operating Segments [Member] | Product [Member] | Crude Oil Pipeline and Terminals Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 5,193 | 8,343 | 20,141 | 19,350
Operating Segments [Member] | Product and Service, Other [Member] | Refined Products Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 1,579 | 1,764 | 4,676 | 5,085
Operating Segments [Member] | Product and Service, Other [Member] | Crude Oil Pipeline and Terminals Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 3,709 | 3,593 | 11,219 | 10,725
Intersegment Eliminations [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | (1,930) | (1,556) | (5,093) | (3,835)
Lease revenue | 0 | 0 | 0 | 0
(Gains) losses from futures contracts included in product sales revenue | 0 | 0 | 0 | 0
Affiliate management fee revenue | 0 | 0 | 0 | 0
Total revenue from contracts with customers under ASC 606 | (1,930) | (1,556) | (5,093) | (3,835)
Intersegment Eliminations [Member] | Service [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | (1,930) | (1,556) | (5,093) | (3,835)
Intersegment Eliminations [Member] | Product [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 0 | 0 | 0 | 0
Intersegment Eliminations [Member] | Product and Service, Other [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 0 | 0 | 0 | 0
Transferred over Time [Member] | Service [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 473,531 | 506,432 | 1,343,741 | 1,473,629
Transferred over Time [Member] | Transportation [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 282,350 | 303,603 | 777,605 | 875,416
Transferred over Time [Member] | Terminalling [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 46,878 | 51,604 | 132,618 | 152,114
Transferred over Time [Member] | Storage [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 80,312 | 81,914 | 244,943 | 247,617
Transferred over Time [Member] | Ancillary Services [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 39,535 | 43,653 | 114,086 | 123,775
Transferred over Time [Member] | Lease Revenue [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 24,456 | 25,658 | 74,489 | 74,707
Transferred over Time [Member] | Operating Segments [Member] | Service [Member] | Refined Products Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 320,809 | 352,611 | 914,887 | 1,009,812
Transferred over Time [Member] | Operating Segments [Member] | Service [Member] | Crude Oil Pipeline and Terminals Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 154,652 | 155,377 | 433,947 | 467,652
Transferred over Time [Member] | Operating Segments [Member] | Transportation [Member] | Refined Products Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 192,194 | 208,073 | 533,451 | 584,662
Transferred over Time [Member] | Operating Segments [Member] | Transportation [Member] | Crude Oil Pipeline and Terminals Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 90,156 | 95,530 | 244,154 | 290,754
Transferred over Time [Member] | Operating Segments [Member] | Terminalling [Member] | Refined Products Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 41,227 | 48,428 | 117,916 | 138,968
Transferred over Time [Member] | Operating Segments [Member] | Terminalling [Member] | Crude Oil Pipeline and Terminals Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 5,651 | 3,176 | 14,702 | 13,146
Transferred over Time [Member] | Operating Segments [Member] | Storage [Member] | Refined Products Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 49,366 | 53,433 | 152,933 | 162,139
Transferred over Time [Member] | Operating Segments [Member] | Storage [Member] | Crude Oil Pipeline and Terminals Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 32,876 | 30,037 | 97,103 | 89,313
Transferred over Time [Member] | Operating Segments [Member] | Ancillary Services [Member] | Refined Products Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 32,707 | 36,375 | 93,340 | 103,287
Transferred over Time [Member] | Operating Segments [Member] | Ancillary Services [Member] | Crude Oil Pipeline and Terminals Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 6,828 | 7,278 | 20,746 | 20,488
Transferred over Time [Member] | Operating Segments [Member] | Lease Revenue [Member] | Refined Products Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 5,315 | 6,302 | 17,247 | 20,756
Transferred over Time [Member] | Operating Segments [Member] | Lease Revenue [Member] | Crude Oil Pipeline and Terminals Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 19,141 | 19,356 | 57,242 | 53,951
Transferred over Time [Member] | Intersegment Eliminations [Member] | Service [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | (1,930) | (1,556) | (5,093) | (3,835)
Transferred over Time [Member] | Intersegment Eliminations [Member] | Transportation [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 0 | 0 | 0 | 0
Transferred over Time [Member] | Intersegment Eliminations [Member] | Terminalling [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 0 | 0 | 0 | 0
Transferred over Time [Member] | Intersegment Eliminations [Member] | Storage [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | (1,930) | (1,556) | (5,093) | (3,835)
Transferred over Time [Member] | Intersegment Eliminations [Member] | Ancillary Services [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 0 | 0 | 0 | 0
Transferred over Time [Member] | Intersegment Eliminations [Member] | Lease Revenue [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 0 | 0 | 0 | 0
Transferred at Point in Time [Member] | Product [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 119,445 | 144,807 | 481,842 | 497,791
Transferred at Point in Time [Member] | Operating Segments [Member] | Product [Member] | Refined Products Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 114,252 | 136,464 | 461,701 | 478,441
Transferred at Point in Time [Member] | Operating Segments [Member] | Product [Member] | Crude Oil Pipeline and Terminals Segment [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | 5,193 | 8,343 | 20,141 | 19,350
Transferred at Point in Time [Member] | Intersegment Eliminations [Member] | Product [Member] |  |  |  |
Disaggregation of Revenue [Line Items] |  |  |  |
Revenue | $ 0 | $ 0 | $ 0 | $ 0

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_DisaggregationOfRevenueLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of operating lease income from lease payments and variable lease payments paid and payable to lessor. Includes, but is not limited to, variable lease payments not included in measurement of lease receivable. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 30 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=121576215&loc=SL77919372-209981 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 30 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=121561866&loc=SL77919311-209978 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 270 -SubTopic 10 -Section 50 -Paragraph 6A -URI http://asc.fasb.org/extlink&oid=121640914&loc=SL77927221-108306 + Details
Name: | us-gaap_OperatingLeaseLeaseIncome
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount, excluding tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer. Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value added and excise. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 30 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 40 -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e9031-108599 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 41 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e9038-108599 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 32 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599 Reference 5: 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=120311839&loc=d3e8933-108599 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 4 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121604090&loc=SL49130543-203045 Reference 7: 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=120311839&loc=d3e8736-108599 Reference 8: 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=120311839&loc=d3e8736-108599 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 42 -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e9054-108599 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=121604090&loc=SL49130545-203045 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 924 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 11.L) -URI http://asc.fasb.org/extlink&oid=6472922&loc=d3e499488-122856 + Details
Name: | us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of revenue, fees and commissions earned from transactions between (a) a parent company and its subsidiaries; (b) subsidiaries of a common parent; (c) an entity and trusts for the benefit of employees, for example, but not limited to, pension and profit-sharing trusts that are managed by or under the trusteeship of the entity's management; (d) an entity and its principal, owners, management, or members of their immediate families; and (e) affiliates. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 946 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-07.1(c)) -URI http://asc.fasb.org/extlink&oid=120401555&loc=SL114874292-224272 Reference 2: 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.1(e)) -URI http://asc.fasb.org/extlink&oid=120395209&loc=SL114868664-224227 + Details
Name: | us-gaap_RevenueFromRelatedParties
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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=120311839&loc=d3e8736-108599 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 10 -Section 50 -Paragraph 3 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 50 -Paragraph 28 -Subparagraph (f) -URI http://asc.fasb.org/extlink&oid=75031198&loc=d3e14064-108612 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 32 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8933-108599 Reference 5: 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=120311839&loc=d3e8933-108599 Reference 6: 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=120311839&loc=d3e8736-108599 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 40 -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e9031-108599 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 30 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e8906-108599 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 41 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e9038-108599 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 42 -URI http://asc.fasb.org/extlink&oid=120311839&loc=d3e9054-108599 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(g)(1)(ii)) -URI http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 235 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-05(b)(2)) -URI http://asc.fasb.org/extlink&oid=120399901&loc=d3e537907-122884 Reference 13: 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=120395209&loc=SL114868664-224227 + Details
Name: | us-gaap_Revenues
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The net change in the difference between the fair value and the carrying value, or in the comparative fair values, of derivative instruments, including options, swaps, futures, and forward contracts, held at each balance sheet date, that was included in earnings for 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 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121586364&loc=d3e3602-108585 + Details
Name: | us-gaap_UnrealizedGainLossOnDerivatives
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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: |

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_IntersegmentEliminationMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_TimingOfTransferOfGoodOrServiceAxis=us-gaap_TransferredOverTimeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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

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

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

X
- Details
Name: | us-gaap_TimingOfTransferOfGoodOrServiceAxis=us-gaap_TransferredAtPointInTimeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |