2.4.0.81005501 - Statement - Consolidated Statements of Changes in Stockholders' Equity (Parenthetical)truefalsefalse1false
falsefalseD2013Q4YTDhttp://www.sec.gov/CIK0000866273duration2012-07-01T00:00:002013-06-30T00:00:00sharesStandardhttp://www.xbrl.org/2003/instancesharesxbrli02false
falsefalseD2012Q4YTDhttp://www.sec.gov/CIK0000866273duration2011-07-01T00:00:002012-06-30T00:00:00sharesStandardhttp://www.xbrl.org/2003/instancesharesxbrli03false
falsefalseD2011Q4YTDhttp://www.sec.gov/CIK0000866273duration2010-07-01T00:00:002011-06-30T00:00:00sharesStandardhttp://www.xbrl.org/2003/instancesharesxbrli01false
4us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercisedus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel| 1truefalsefalse9784097840falsefalsefalse | 2truefalsefalse2650026500falsefalsefalse | 3truefalsefalse3200032000falsefalsefalse | xbrli:sharesItemTypesharesNumber of share options (or share units) exercised during the current period.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 04
-Article 3
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 505
-SubTopic 10
-Section 50
-Paragraph 2
-URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21463-112644
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 505
-SubTopic 10
-Section S99
-Paragraph 1
-Subparagraph (SX 210.3-04)
-URI http://asc.fasb.org/extlink&oid=6959260&loc=d3e187085-122770
Reference 4: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 210
-SubTopic 10
-Section S99
-Paragraph 1
-Subparagraph (SX 210.5-02.28,29)
-URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682
Reference 5: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 718
-SubTopic 10
-Section 50
-Paragraph 2
-Subparagraph (c)(1)(iv)(2)
-URI http://asc.fasb.org/extlink&oid=6415400&loc=d3e5070-113901
Reference 6: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 02
-Paragraph 29, 30
-Article 5
false1
2false
4mtrx_DeferredSharesIssuedmtrx_falsenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse367449367449falsefalsefalse | 2truefalsefalse184149184149falsefalsefalse | 3truefalsefalse126428126428falsefalsefalse | xbrli:sharesItemTypesharesDeferred Shares IssuedNo definition available.false1
3false
4us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlansus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel| 1truefalsefalse44524452falsefalsefalse | 2truefalsefalse43954395falsefalsefalse | 3truefalsefalse699699falsefalsefalse | xbrli:sharesItemTypesharesNumber of shares issued during the period as a result of an employee stock purchase plan.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher AICPA
-Name Accounting Principles Board Opinion (APB)
-Number 12
-Paragraph 10
-LegacyDoc This reference is SUPERSEDED by the Accounting Standards Codification effective for interim and annual periods ending after September 15, 2009. This reference is included to help users transition from the previous accounting hierarchy and will be removed from future versions of this taxonomy.
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 04
-Article 3
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 505
-SubTopic 10
-Section 50
-Paragraph 2
-URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21463-112644
Reference 4: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 505
-SubTopic 10
-Section S99
-Paragraph 1
-Subparagraph (SX 210.3-04)
-URI http://asc.fasb.org/extlink&oid=6959260&loc=d3e187085-122770
Reference 5: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Statement of Financial Accounting Standard (FAS)
-Number 129
-Paragraph 5
-LegacyDoc This reference is SUPERSEDED by the Accounting Standards Codification effective for interim and annual periods ending after September 15, 2009. This reference is included to help users transition from the previous accounting hierarchy and will be removed from future versions of this taxonomy.
Reference 6: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 02
-Paragraph 29, 30
-Article 5
false1
4false
4us-gaap_TreasuryStockSharesAcquiredus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel| 1falsefalsefalse00falsefalsefalse | 2truefalsefalse886503886503falsefalsefalse | 3falsefalsefalse00falsefalsefalse | xbrli:sharesItemTypesharesNumber of shares that have been repurchased during the period and are being held in treasury.Reference 1: http://www.xbrl.org/2003/role/presentationRef
-Publisher AICPA
-Name Accounting Principles Board Opinion (APB)
-Number 12
-Paragraph 10
-LegacyDoc This reference is SUPERSEDED by the Accounting Standards Codification effective for interim and annual periods ending after September 15, 2009. This reference is included to help users transition from the previous accounting hierarchy and will be removed from future versions of this taxonomy.
Reference 2: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 04
-Article 3
Reference 3: http://www.xbrl.org/2003/role/presentationRef
-Publisher FASB
-Name Accounting Standards Codification
-Topic 505
-SubTopic 10
-Section 50
-Paragraph 2
-URI http://asc.fasb.org/extlink&oid=6928386&loc=d3e21463-112644
Reference 4: http://www.xbrl.org/2003/role/presentationRef
-Publisher SEC
-Name Regulation S-X (SX)
-Number 210
-Section 02
-Paragraph 29, 30
-Article 5
false1
5false
4mtrx_OtherTreasurySharesAcquiredmtrx_falsenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel| 1truefalsefalse107344107344falsefalsefalse | 2truefalsefalse5299252992falsefalsefalse | 3truefalsefalse3015430154falsefalsefalse | xbrli:sharesItemTypesharesOther treasury shares acquired.No definition available.false1
falseConsolidated Statements of Changes in Stockholders' Equity (Parenthetical)UnKnownNoRoundingUnKnownUnKnowntruefalsefalseSheethttp://www.matrixservice.com/role/ConsolidatedStatementsOfChangesInStockholdersEquityParenthetical35