Document and Entity Information (USD $)
In Millions, except Share data, unless otherwise specified
12 Months Ended
Jun. 30, 2015
Aug. 31, 2015
Dec. 31, 2014
Document And Entity Information [Abstract]      
Entity Registrant Name MATRIX SERVICE CO    
Entity Central Index Key 0000866273    
Document Type 10-K    
Document Period End Date Jun. 30, 2015    
Amendment Flag false    
Document Fiscal Year Focus 2015    
Document Fiscal Period Focus FY    
Current Fiscal Year End Date --06-30    
Entity Well-known Seasoned Issuer No    
Entity Voluntary Filers No    
Entity Current Reporting Status Yes    
Entity Filer Category Accelerated Filer    
Entity Public Float     $ 589
Entity Common Stock, Shares Outstanding   26,381,791