XML 63 R52.htm IDEA: XBRL DOCUMENT
v3.23.1

Revenues and Gross Profit - Additional Information (Detail 1) | Mar. 31, 2023 | Mar. 31, 2022
--- | --- | ---
Minimum | Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date: 2022-04-01 |  |
Revenue Recognition [Line Items] |  |
Performance obligations, customer satisfaction period |  | 1 month
Minimum | Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date: 2023-04-01 |  |
Revenue Recognition [Line Items] |  |
Performance obligations, customer satisfaction period | 1 month |
Maximum | Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date: 2022-04-01 |  |
Revenue Recognition [Line Items] |  |
Performance obligations, customer satisfaction period |  | 25 months
Maximum | Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Start Date: 2023-04-01 |  |
Revenue Recognition [Line Items] |  |
Performance obligations, customer satisfaction period | 30 months |

X
- Definition Revenue recognition. + References No definition available. + Details
Name: | mlm_RevenueRecognitionLineItems
Namespace Prefix: | mlm_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Period in which remaining performance obligation is expected to be recognized as revenue, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 13 -Subparagraph (b)(1) -URI https://asc.fasb.org/extlink&oid=126920106&loc=SL49130556-203045 + Details
Name: | us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis=2022-04-01
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis=2023-04-01
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |