<?xml version="1.0" encoding="utf-8"?>
<FilingSummary xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Version>2.4.0.8</Version>
  <ProcessingTime />
  <ReportFormat>Html</ReportFormat>
  <ContextCount>98</ContextCount>
  <ElementCount>187</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>23</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001000 - Statement - Condensed Consolidated Statements of Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/CondensedConsolidatedStatementsOfIncome</Role>
      <ShortName>Condensed Consolidated Statements of Income</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1002000 - Statement - Condensed Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/CondensedConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Income</ShortName>
    </Report>
    <Report>
      <IsDefault>true</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1003000 - Statement - Condensed Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/CondensedConsolidatedBalanceSheets</Role>
      <ShortName>Condensed Consolidated Balance Sheets</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1003501 - Statement - Condensed Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/CondensedConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Parenthetical)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1004000 - Statement - Condensed Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/CondensedConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1005000 - Statement - Condensed Consolidated Statements of Changes in Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/CondensedConsolidatedStatementsOfChangesInStockholdersEquity</Role>
      <ShortName>Condensed Consolidated Statements of Changes in Stockholders' Equity</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1005501 - Statement - Condensed Consolidated Statements of Changes in Stockholders' Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/CondensedConsolidatedStatementsOfChangesInStockholdersEquityParenthetical</Role>
      <ShortName>Condensed Consolidated Statements of Changes in Stockholders' Equity (Parenthetical)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2101100 - Disclosure - Basis of Presentation (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.matrixservice.com/role/BasisOfPresentationNotes</Role>
      <ShortName>Basis of Presentation (Notes)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2104100 - Disclosure - Uncompleted Contracts (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.matrixservice.com/role/UncompletedContractsNotes</Role>
      <ShortName>Uncompleted Contracts (Notes)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2106100 - Disclosure - Intangible Assets Including Goodwill (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.matrixservice.com/role/IntangibleAssetsIncludingGoodwillNotes</Role>
      <ShortName>Intangible Assets Including Goodwill (Notes)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2108100 - Disclosure - Debt (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.matrixservice.com/role/DebtNotes</Role>
      <ShortName>Debt (Notes)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2109100 - Disclosure - Income Taxes (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.matrixservice.com/role/IncomeTaxesNotes</Role>
      <ShortName>Income Taxes (Notes)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2111100 - Disclosure - Commitments and Contingencies (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.matrixservice.com/role/CommitmentsAndContingenciesNotes</Role>
      <ShortName>Commitments and Contingencies (Notes)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2112100 - Disclosure - Earnings per Common Share (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.matrixservice.com/role/EarningsPerCommonShareNotes</Role>
      <ShortName>Earnings per Common Share (Notes)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2113100 - Disclosure - Segment Information (Notes)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.matrixservice.com/role/SegmentInformationNotes</Role>
      <ShortName>Segment Information (Notes)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2209201 - Disclosure - Income Taxes (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/IncomeTaxesPolicies</Role>
      <ShortName>Income Taxes (Policies)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2304301 - Disclosure - Uncompleted Contracts (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/UncompletedContractsTables</Role>
      <ShortName>Uncompleted Contracts (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2306301 - Disclosure - Intangible Assets Including Goodwill (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/IntangibleAssetsIncludingGoodwillTables</Role>
      <ShortName>Intangible Assets Including Goodwill (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2308301 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/DebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2312301 - Disclosure - Earnings per Common Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/EarningsPerCommonShareTables</Role>
      <ShortName>Earnings per Common Share (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2313301 - Disclosure - Segment Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/SegmentInformationTables</Role>
      <ShortName>Segment Information (Tables)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2404402 - Disclosure - Uncompleted Contracts - Gross and Net Amounts of Uncompleted Contracts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/UncompletedContractsGrossAndNetAmountsOfUncompletedContractsDetails</Role>
      <ShortName>Uncompleted Contracts - Gross and Net Amounts of Uncompleted Contracts (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2404403 - Disclosure - Uncompleted Contracts - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/UncompletedContractsAdditionalInformationDetail</Role>
      <ShortName>Uncompleted Contracts - Additional Information (Detail)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2406402 - Disclosure - Intangible Assets Including Goodwill - Carrying Value of Goodwill By Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/IntangibleAssetsIncludingGoodwillCarryingValueOfGoodwillBySegmentDetails</Role>
      <ShortName>Intangible Assets Including Goodwill - Carrying Value of Goodwill By Segment (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2406403 - Disclosure - Intangible Assets Including Goodwill - Carrying Value of Other Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/IntangibleAssetsIncludingGoodwillCarryingValueOfOtherIntangibleAssetsDetails</Role>
      <ShortName>Intangible Assets Including Goodwill - Carrying Value of Other Intangible Assets (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2406404 - Disclosure - Intangible Assets Including Goodwill - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/IntangibleAssetsIncludingGoodwillAdditionalInformationDetail</Role>
      <ShortName>Intangible Assets Including Goodwill - Additional Information (Detail)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2408402 - Disclosure - Debt - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/DebtAdditionalInformationDetail</Role>
      <ShortName>Debt - Additional Information (Detail)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2408403 - Disclosure - Debt - Availability Under The Senior Credit Facility (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/DebtAvailabilityUnderSeniorCreditFacilityDetails</Role>
      <ShortName>Debt - Availability Under The Senior Credit Facility (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2411401 - Disclosure - Commitments and Contingencies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/CommitmentsAndContingenciesAdditionalInformationDetail</Role>
      <ShortName>Commitments and Contingencies - Additional Information (Detail)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2412402 - Disclosure - Earnings per Common Share - Computation of Basic and Diluted Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/EarningsPerCommonShareComputationOfBasicAndDilutedEarningsPerShareDetails</Role>
      <ShortName>Earnings per Common Share - Computation of Basic and Diluted Earnings Per Share (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2412403 - Disclosure - Earnings per Common Share - Antidilutive Securities Excluded from the Calculation of Diluted Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/EarningsPerCommonShareAntidilutiveSecuritiesExcludedFromCalculationOfDilutedEarningsPerShareDetails</Role>
      <ShortName>Earnings per Common Share - Antidilutive Securities Excluded from the Calculation of Diluted Earnings Per Share (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2413402 - Disclosure - Segment Information - Results of Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.matrixservice.com/role/SegmentInformationResultsOfOperationsDetails</Role>
      <ShortName>Segment Information - Results of Operations (Details)</ShortName>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Info">'Monetary' elements on report '2408402 - Disclosure - Debt - Additional Information (Detail)' had a mix of different decimal attribute values.</Log>
    <Log type="Info">Process Flow-Through: 1001000 - Statement - Condensed Consolidated Statements of Income</Log>
    <Log type="Info">Process Flow-Through: 1002000 - Statement - Condensed Consolidated Statements of Comprehensive Income</Log>
    <Log type="Info">Process Flow-Through: 1003000 - Statement - Condensed Consolidated Balance Sheets</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Sep. 30, 2012'</Log>
    <Log type="Info">	Process Flow-Through: Removing column 'Jun. 30, 2012'</Log>
    <Log type="Info">Process Flow-Through: 1003501 - Statement - Condensed Consolidated Balance Sheets (Parenthetical)</Log>
    <Log type="Info">Process Flow-Through: 1004000 - Statement - Condensed Consolidated Statements of Cash Flows</Log>
    <Log type="Info">Process Flow-Through: 1005501 - Statement - Condensed Consolidated Statements of Changes in Stockholders' Equity (Parenthetical)</Log>
  </Logs>
  <InputFiles>
    <File>mtrx-20130930.xml</File>
    <File>mtrx-20130930.xsd</File>
    <File>mtrx-20130930_cal.xml</File>
    <File>mtrx-20130930_def.xml</File>
    <File>mtrx-20130930_lab.xml</File>
    <File>mtrx-20130930_pre.xml</File>
  </InputFiles>
  <SupplementalFiles />
  <BaseTaxonomies />
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
