XML 126 R95.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Stock-Based Compensation - Stock-Based Compensation Expense in Future for Outstanding Awards (Detail) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 USD ($)
Share-Based Payment Arrangement [Abstract] |
2024 | $ 28.2
2025 | 9.1
2026 | 1.8
2027 | 0.7
2028 | 0.1
Total | $ 39.9

X
- Definition Future share-based compensation expense. + References No definition available. + Details
Name: | mlm_FutureShareBasedCompensationExpense
Namespace Prefix: | mlm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Future share-based compensation expense year five. + References No definition available. + Details
Name: | mlm_FutureShareBasedCompensationExpenseYearFive
Namespace Prefix: | mlm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Future share-based compensation expense year four. + References No definition available. + Details
Name: | mlm_FutureShareBasedCompensationExpenseYearFour
Namespace Prefix: | mlm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Future share-based compensation expense year one. + References No definition available. + Details
Name: | mlm_FutureShareBasedCompensationExpenseYearOne
Namespace Prefix: | mlm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Future share-based compensation expense year three. + References No definition available. + Details
Name: | mlm_FutureShareBasedCompensationExpenseYearThree
Namespace Prefix: | mlm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Future share-based compensation expense year two. + References No definition available. + Details
Name: | mlm_FutureShareBasedCompensationExpenseYearTwo
Namespace Prefix: | mlm_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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