v3.19.3.a.u2

Leases (Narrative) (Details) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2019 | Dec. 31, 2018 | Dec. 31, 2017
Leases [Abstract] |  |  |
Operating Leases, Rent Expense, Net |  | $ 42.1 | $ 34.8
Operating Leases, Income Statement, Contingent Revenue |  | $ 51.8 | $ 24.9
Operating Lease, Variable Lease Income | $ 58.4 |  |
Processing Equipment [Member] |  |  |
Property, Plant and Equipment [Line Items] |  |  |
Operating lease, right-of-use asset, gross | 231.2 |  |
Storage Tanks [Member] |  |  |
Property, Plant and Equipment [Line Items] |  |  |
Operating lease, right-of-use asset, gross | 77.4 |  |
Pipelines [Member] |  |  |
Property, Plant and Equipment [Line Items] |  |  |
Operating lease, right-of-use asset, gross | 49.8 |  |
Property, Plant and Equipment, Other Types [Member] |  |  |
Property, Plant and Equipment [Line Items] |  |  |
Operating lease, right-of-use asset, gross | $ 32.1 |  |

X
- Definition Operating Lease, Right-Of-Use Asset, Gross + References No definition available. + Details
Name: | mmp_OperatingLeaseRightOfUseAssetGross
Namespace Prefix: | mmp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_LeasesAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of operating lease income from variable lease payments paid and payable to lessor, excluding amount included in measurement of lease receivable. + References Reference 1: 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=118952077&loc=SL77927221-108306 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 30 -Section 50 -Paragraph 5 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=119202524&loc=SL77919372-209981 + Details
Name: | us-gaap_OperatingLeaseVariableLeaseIncome
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of contingent rental revenue recognized for the period under lease, based on the occurrences of an event or condition. + References Reference 1: http://fasb.org/us-gaap/role/ref/otherTransitionRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=84164653&loc=d3e41551-112718 + Details
Name: | us-gaap_OperatingLeasesIncomeStatementContingentRevenue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Rental expense for the reporting period incurred under operating leases, including minimum and any contingent rent expense, net of related sublease income. + References Reference 1: http://fasb.org/us-gaap/role/ref/otherTransitionRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=77902758&loc=d3e41499-112717 + Details
Name: | us-gaap_OperatingLeasesRentExpenseNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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_PropertyPlantAndEquipmentLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_OtherEnergyEquipmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_ContainersMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_PipelinesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PropertyPlantAndEquipmentByTypeAxis=us-gaap_PropertyPlantAndEquipmentOtherTypesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |