XML 147 R116.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Other Nonoperating Income, Net - Additional Information (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Component of Other Operating Income and Expense [Line Items] |  |  |
Other nonoperating income, net | $ 62.1 | $ 53.4 | $ 24.4
Other Nonoperating Income, Net |  |  |
Component of Other Operating Income and Expense [Line Items] |  |  |
Gain on repurchase of bond |  | 12.0 |
Interest income | 46.7 | 13.6 |
Third-party railroad track maintenance expense | $ 8.9 | $ 8.2 | $ 7.7

X
- Definition Component of other operating income and expense. + References No definition available. + Details
Name: | mlm_ComponentOfOtherOperatingIncomeAndExpenseLineItems
Namespace Prefix: | mlm_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Third-party railroad track maintenance expenses. + References No definition available. + Details
Name: | mlm_ThirdPartyRailroadTrackMaintenanceExpenses
Namespace Prefix: | mlm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of gain (loss) from the difference between the repurchase price of a debt instrument initially issued by the entity and the net carrying amount of the debt at the time of its repurchase. + References No definition available. + Details
Name: | us-gaap_GainLossOnRepurchaseOfDebtInstrument
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount before accretion (amortization) of purchase discount (premium) of interest income on nonoperating securities. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 280 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 22 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482810/280-10-50-22 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 220 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.7(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483621/220-10-S99-2 + Details
Name: | us-gaap_InvestmentIncomeInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of income (expense) related to nonoperating activities, classified as other. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 220 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.9) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483621/220-10-S99-2 + Details
Name: | us-gaap_OtherNonoperatingIncomeExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_OtherNonoperatingIncomeExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |