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_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse9784097840falsefalsefalse2truefalsefalse2650026500falsefalsefalse3truefalsefalse3200032000falsefalsefalsexbrli: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 false12false 4mtrx_DeferredSharesIssuedmtrx_falsenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse367449367449falsefalsefalse2truefalsefalse184149184149falsefalsefalse3truefalsefalse126428126428falsefalsefalsexbrli:sharesItemTypesharesDeferred Shares IssuedNo definition available.false13false 4us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlansus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseterseLabel1truefalsefalse44524452falsefalsefalse2truefalsefalse43954395falsefalsefalse3truefalsefalse699699falsefalsefalsexbrli: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 false14false 4us-gaap_TreasuryStockSharesAcquiredus-gaap_truenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1falsefalsefalse00falsefalsefalse2truefalsefalse886503886503falsefalsefalse3falsefalsefalse00falsefalsefalsexbrli: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 false15false 4mtrx_OtherTreasurySharesAcquiredmtrx_falsenadurationfalsefalsefalsefalsefalsefalsefalsefalseverboseLabel1truefalsefalse107344107344falsefalsefalse2truefalsefalse5299252992falsefalsefalse3truefalsefalse3015430154falsefalsefalsexbrli:sharesItemTypesharesOther treasury shares acquired.No definition available.false1falseConsolidated Statements of Changes in Stockholders' Equity (Parenthetical)UnKnownNoRoundingUnKnownUnKnowntruefalsefalseSheethttp://www.matrixservice.com/role/ConsolidatedStatementsOfChangesInStockholdersEquityParenthetical35