{
  "cik": 866273,
  "cik_padded": "0000866273",
  "entityName": "MATRIX SERVICE CO",
  "fiscal_years": [
    {
      "accn": "0000866273-25-000069",
      "filed": "2025-09-10",
      "fiscal_year": 2025,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "capex": 7685000.0,
        "cash": 224641000.0,
        "cost_of_revenue": 729609000.0,
        "eps_diluted": -1.06,
        "free_cash_flow": 109786000.0,
        "gross_profit": 39677000.0,
        "net_income": -29462000.0,
        "operating_cash_flow": 117471000.0,
        "operating_income": -35068000.0,
        "revenue": 769286000.0,
        "stockholders_equity": 142716000.0,
        "total_assets": 600256000.0,
        "total_liabilities": 457540000.0
      },
      "period_end": "2025-06-30",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.05157639681470871,
        "leverage": 3.205947476106393,
        "net_margin": -0.03829785021435461,
        "operating_margin": -0.04558512698788228,
        "revenue_growth_yoy": 0.05640245367770144,
        "roa_avg2y": -0.05603233907724083,
        "roa_period_end": -0.049082391512954474,
        "roe_avg2y": -0.19199864450077875,
        "roe_period_end": -0.20643796070517673
      }
    },
    {
      "accn": "0000866273-25-000069",
      "filed": "2025-09-10",
      "fiscal_year": 2024,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "capex": 6994000.0,
        "cash": 115615000.0,
        "cost_of_revenue": 687740000.0,
        "eps_diluted": -0.91,
        "free_cash_flow": 65577000.0,
        "gross_profit": 40473000.0,
        "net_income": -24976000.0,
        "operating_cash_flow": 72571000.0,
        "operating_income": -30113000.0,
        "revenue": 728213000.0,
        "stockholders_equity": 164182000.0,
        "total_assets": 451351000.0,
        "total_liabilities": 287169000.0
      },
      "period_end": "2024-06-30",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.05557851892234827,
        "leverage": 1.7490894251501383,
        "net_margin": -0.034297657416168074,
        "operating_margin": -0.041351912146583486,
        "revenue_growth_yoy": -0.0840318482553898,
        "roa_avg2y": -0.05863908763815438,
        "roa_period_end": -0.055336090980190586,
        "roe_avg2y": -0.14450943974819624,
        "roe_period_end": -0.15212386254278787
      }
    },
    {
      "accn": "0000866273-25-000069",
      "filed": "2025-09-10",
      "fiscal_year": 2023,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "capex": 9009000.0,
        "cash": 54812000.0,
        "cost_of_revenue": 764200000.0,
        "eps_diluted": -1.94,
        "free_cash_flow": 1238000.0,
        "gross_profit": 30820000.0,
        "net_income": -52361000.0,
        "operating_cash_flow": 10247000.0,
        "operating_income": -52887000.0,
        "revenue": 795020000.0,
        "stockholders_equity": 181484000.0,
        "total_assets": 400504000.0,
        "total_liabilities": 219020000.0
      },
      "period_end": "2023-06-30",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.038766320344142284,
        "leverage": 1.2068281501399571,
        "net_margin": -0.06586123619531584,
        "operating_margin": -0.06652285477094916,
        "revenue_growth_yoy": 0.12325863969029925,
        "roa_avg2y": -0.12447684943604934,
        "roa_period_end": -0.1307377704092843,
        "roe_avg2y": -0.2559251203597351,
        "roe_period_end": -0.2885157920257433
      }
    },
    {
      "accn": "0000866273-25-000069",
      "filed": "2025-09-10",
      "fiscal_year": 2022,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "capex": 3345000.0,
        "cash": 52371000.0,
        "cost_of_revenue": 708986000.0,
        "eps_diluted": -2.39,
        "free_cash_flow": -57541000.0,
        "gross_profit": -1206000.0,
        "net_income": -63900000.0,
        "operating_cash_flow": -54196000.0,
        "operating_income": -87854000.0,
        "revenue": 707780000.0,
        "stockholders_equity": 227706000.0,
        "total_assets": 440793000.0,
        "total_liabilities": 213087000.0
      },
      "period_end": "2022-06-30",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": -0.0017039192969566814,
        "leverage": 0.9357987931806804,
        "net_margin": -0.09028229110740625,
        "operating_margin": -0.12412614089123739,
        "revenue_growth_yoy": 0.051057472698166614,
        "roa_avg2y": -0.14069482104345357,
        "roa_period_end": -0.14496600445106886,
        "roe_avg2y": -0.24900388703250884,
        "roe_period_end": -0.28062501646860427
      }
    },
    {
      "accn": "0000866273-24-000092",
      "filed": "2024-09-10",
      "fiscal_year": 2021,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "capex": 4354000.0,
        "cash": 83878000.0,
        "cost_of_revenue": 640633000.0,
        "eps_diluted": -1.18,
        "free_cash_flow": -7325000.0,
        "gross_profit": 32765000.0,
        "net_income": -31224000.0,
        "operating_cash_flow": -2971000.0,
        "operating_income": -43747000.0,
        "revenue": 673398000.0,
        "stockholders_equity": 285539000.0,
        "total_assets": 467556000.0,
        "total_liabilities": 182017000.0
      },
      "period_end": "2021-06-30",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.048656218165186116,
        "leverage": 0.637450575928332,
        "net_margin": -0.0463678240802616,
        "operating_margin": -0.06496455290927505,
        "revenue_growth_yoy": -0.3883415778181878,
        "roa_avg2y": -0.06340761078156826,
        "roa_period_end": -0.0667813053409645,
        "roe_avg2y": -0.10523264827409559,
        "roe_period_end": -0.10935108689180813
      }
    },
    {
      "accn": "0000866273-23-000058",
      "filed": "2023-09-12",
      "fiscal_year": 2020,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "capex": 18539000.0,
        "cash": 100036000.0,
        "cost_of_revenue": 998762000.0,
        "eps_diluted": -1.24,
        "free_cash_flow": 25546000.0,
        "gross_profit": 102176000.0,
        "net_income": -33074000.0,
        "operating_cash_flow": 44085000.0,
        "operating_income": -36625000.0,
        "revenue": 1100938000.0,
        "stockholders_equity": 307889000.0,
        "total_assets": 517310000.0,
        "total_liabilities": 209421000.0
      },
      "period_end": "2020-06-30",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.09280813270138737,
        "leverage": 0.6801834427342321,
        "net_margin": -0.030041655388405156,
        "operating_margin": -0.03326708679326175,
        "revenue_growth_yoy": -0.22287460823898128,
        "roa_avg2y": -0.05748480929935066,
        "roa_period_end": -0.06393458467843266,
        "roe_avg2y": -0.1002476335387348,
        "roe_period_end": -0.10742183059479228
      }
    },
    {
      "accn": "0000866273-22-000105",
      "filed": "2022-10-11",
      "fiscal_year": 2019,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "capex": 19558000.0,
        "cash": 89715000.0,
        "cost_of_revenue": 1284729000.0,
        "eps_diluted": 1.01,
        "free_cash_flow": 21836000.0,
        "gross_profit": 131951000.0,
        "net_income": 27982000.0,
        "operating_cash_flow": 41394000.0,
        "operating_income": 37930000.0,
        "revenue": 1416680000.0,
        "stockholders_equity": 351957000.0,
        "total_assets": 633394000.0,
        "total_liabilities": 281437000.0
      },
      "period_end": "2019-06-30",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.09314100573171076,
        "leverage": 0.7996346144557431,
        "net_margin": 0.01975181410057317,
        "operating_margin": 0.026773865657734985,
        "revenue_growth_yoy": 0.2978572730778991,
        "roa_avg2y": 0.04697224420799596,
        "roa_period_end": 0.044177873487908,
        "roe_avg2y": 0.08342874180083483,
        "roe_period_end": 0.07950403032188591
      }
    },
    {
      "accn": "0000866273-21-000088",
      "filed": "2021-09-13",
      "fiscal_year": 2018,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "capex": 8711000.0,
        "cash": 64057000.0,
        "cost_of_revenue": 999617000.0,
        "eps_diluted": -0.43,
        "free_cash_flow": 65960000.0,
        "gross_profit": 91936000.0,
        "net_income": -11480000.0,
        "operating_cash_flow": 74671000.0,
        "operating_income": -10479000.0,
        "revenue": 1091553000.0,
        "stockholders_equity": 318843000.0,
        "total_assets": 558033000.0,
        "total_liabilities": 239190000.0
      },
      "period_end": "2018-06-30",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.08422495288822439,
        "leverage": 0.750181123625107,
        "net_margin": -0.010517125599947963,
        "operating_margin": -0.009600083550684209,
        "revenue_growth_yoy": -0.08848033709976293,
        "roa_avg2y": -0.02006882488114728,
        "roa_period_end": -0.020572260063472948,
        "roe_avg2y": -0.03583848953878237,
        "roe_period_end": -0.036005181233397
      }
    },
    {
      "accn": "0000866273-20-000109",
      "filed": "2020-09-03",
      "fiscal_year": 2017,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "capex": 11908000.0,
        "cash": 43805000.0,
        "cost_of_revenue": 1116506000.0,
        "eps_diluted": -0.01,
        "free_cash_flow": -30654000.0,
        "gross_profit": 81003000.0,
        "net_income": -183000.0,
        "operating_cash_flow": -18746000.0,
        "operating_income": 4859000.0,
        "revenue": 1197509000.0,
        "stockholders_equity": 321809000.0,
        "total_assets": 586030000.0,
        "total_liabilities": 264221000.0
      },
      "period_end": "2017-06-30",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.06764291541858976,
        "leverage": 0.8210491316277668,
        "net_margin": -0.0001528172230855885,
        "operating_margin": 0.004057589546299861,
        "revenue_growth_yoy": -0.08720673640176932,
        "roa_avg2y": -0.0003179851902307304,
        "roa_period_end": -0.00031227070286504103,
        "roe_avg2y": -0.0005742302412237694,
        "roe_period_end": -0.0005686602922851754
      }
    },
    {
      "accn": "0000866273-19-000094",
      "filed": "2019-09-04",
      "fiscal_year": 2016,
      "form": "10-K",
      "fundamental_units": {
        "capex": "USD",
        "cash": "USD",
        "cost_of_revenue": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "gross_profit": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "capex": 13939000.0,
        "cash": 71656000.0,
        "cost_of_revenue": 1185926000.0,
        "eps_diluted": 1.07,
        "free_cash_flow": 19648000.0,
        "gross_profit": 125991000.0,
        "net_income": 28863000.0,
        "operating_cash_flow": 33587000.0,
        "operating_income": 40882000.0,
        "revenue": 1311917000.0,
        "stockholders_equity": 315566000.0,
        "total_assets": 564967000.0,
        "total_liabilities": 249401000.0
      },
      "period_end": "2016-06-30",
      "ratio_units": {
        "gross_margin": "ratio",
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "roa_period_end": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "gross_margin": 0.09603580104534053,
        "leverage": 0.7903291229093121,
        "net_margin": 0.02200062961300143,
        "operating_margin": 0.031162032354180944,
        "roa_period_end": 0.05108793964957245,
        "roe_period_end": 0.09146422618406293
      }
    }
  ],
  "latest_filing": {
    "accn": "0000866273-25-000069",
    "filed": "2025-09-10",
    "form": "10-K"
  },
  "note": "Static grepcent export of verified SEC companyfacts-derived values. Monetary values are raw reported units from grepcent's resolved facts; no scaling and no FX conversion. Capex, dividends, and buybacks are reported as positive outflow magnitudes. ROE/ROA include both period-end basis (site-consistent) and average-of-two-years basis where the prior-year denominator exists.",
  "schema_version": "1",
  "sic": "1700",
  "sic_description": "Construction - Special Trade Contractors",
  "source_urls": {
    "sec_companyfacts": "https://data.sec.gov/api/xbrl/companyfacts/CIK0000866273.json",
    "sec_submissions": "https://data.sec.gov/submissions/CIK0000866273.json"
  },
  "ticker": "MTRX"
}
