v3.20.2

Organization, Description of Business and Basis of Presentation (Narrative) (Details) $ in Thousands, bbl in Millions | 3 Months Ended | 9 Months Ended
--- | --- | ---
Mar. 31, 2020 Terminal | Sep. 30, 2020 USD ($) bbl Terminal mi | Sep. 30, 2019 USD ($)
Organization and Description of Business [Line Items] |  |  |
Number Of Marine Terminals Sold | 3 | 3 |
Number Of Marine Terminals Combined With Refined Product Segment | 2 |  |
Number Of Marine Terminals Combined With Crude Oil Segment | 1 |  |
Proceeds from sale and disposition of assets | $ |  | $ 334,583 | $ 65,574
Refined Products Segment [Member] |  |  |
Organization and Description of Business [Line Items] |  |  |
Pipeline Length | mi |  | 9,800 |
Number of Pipeline Terminals |  | 54 |
Number of Independent Terminals |  | 25 |
Number of Marine Terminals |  | 2 |
Number Of Marine Terminals, Owned Through Joint Venture |  | 1 |
Crude Oil Pipeline and Terminals Segment [Member] |  |  |
Organization and Description of Business [Line Items] |  |  |
Pipeline Length | mi |  | 2,200 |
Storage Capacity | bbl |  | 37 |
Contracted Storage | bbl |  | 25 |
Pipeline, Length - Wholly Owned | mi |  | 1,000 |
Storage Capacity - Wholly Owned | bbl |  | 30 |
Contracted Storage - Wholly Owned | bbl |  | 22 |
Marine Terminals [Member] |  |  |
Organization and Description of Business [Line Items] |  |  |
Proceeds from sale and disposition of assets | $ |  | $ 251,800 |
Asset Impairment Charges | $ |  | $ 6,200 |

X
- Definition Contracted Storage + References No definition available. + Details
Name: | mmp_ContractedStorage
Namespace Prefix: | mmp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Contracted Storage - Wholly Owned + References No definition available. + Details
Name: | mmp_ContractedStorageWhollyOwned
Namespace Prefix: | mmp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number Of Marine Terminals Combined With Crude Oil Segment + References No definition available. + Details
Name: | mmp_NumberOfMarineTerminalsCombinedWithCrudeOilSegment
Namespace Prefix: | mmp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number Of Marine Terminals Combined With Refined Product Segment + References No definition available. + Details
Name: | mmp_NumberOfMarineTerminalsCombinedWithRefinedProductSegment
Namespace Prefix: | mmp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number Of Marine Terminals, Owned Through Joint Venture + References No definition available. + Details
Name: | mmp_NumberOfMarineTerminalsOwnedThroughJointVenture
Namespace Prefix: | mmp_
Data Type: | xbrli:integerItemType
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 Number of PipelineTerminals + References No definition available. + Details
Name: | mmp_NumberOfPipelineTerminals
Namespace Prefix: | mmp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of Inland Terminals + References No definition available. + Details
Name: | mmp_NumberofInlandTerminals
Namespace Prefix: | mmp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of Marine Terminals + References No definition available. + Details
Name: | mmp_NumberofMarineTerminals
Namespace Prefix: | mmp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition [Line Items] for Organization and Description of Business [Table] + References No definition available. + Details
Name: | mmp_OrganizationAndDescriptionOfBusinessLineItems
Namespace Prefix: | mmp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Pipeline, length + References No definition available. + Details
Name: | mmp_PipelineLength
Namespace Prefix: | mmp_
Data Type: | num:lengthItemType
Balance Type: | na
Period Type: | instant

X
- Definition Pipeline, Length - Wholly Owned + References No definition available. + Details
Name: | mmp_PipelineLengthWhollyOwned
Namespace Prefix: | mmp_
Data Type: | num:lengthItemType
Balance Type: | na
Period Type: | instant

X
- Definition Storage Capacity + References No definition available. + Details
Name: | mmp_StorageCapacity
Namespace Prefix: | mmp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Storage Capacity - Wholly Owned + References No definition available. + Details
Name: | mmp_StorageCapacityWhollyOwned
Namespace Prefix: | mmp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

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=121586364&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 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=121586364&loc=d3e3179-108585 + Details
Name: | us-gaap_ProceedsFromSaleOfProductiveAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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: | us-gaap_FairValueByAssetClassAxis=mmp_MarineTerminalsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |