{
  "cik": 1766368,
  "cik_padded": "0001766368",
  "entityName": "Mayville Engineering Company, Inc.",
  "fiscal_years": [
    {
      "accn": "0001104659-26-023496",
      "filed": "2026-03-04",
      "fiscal_year": 2025,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 4607000.0,
        "capex": 11648000.0,
        "cash": 1502000.0,
        "eps_diluted": -0.4,
        "free_cash_flow": 26914000.0,
        "net_income": -8110000.0,
        "operating_cash_flow": 38562000.0,
        "operating_income": -3844000.0,
        "revenue": 546487000.0,
        "stockholders_equity": 240737000.0,
        "total_assets": 563640000.0,
        "total_liabilities": 322903000.0
      },
      "period_end": "2025-12-31",
      "ratio_units": {
        "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": {
        "leverage": 1.3413102265127503,
        "net_margin": -0.014840243226279857,
        "operating_margin": -0.007034019107499356,
        "revenue_growth_yoy": -0.06037957097956685,
        "roa_avg2y": -0.016071977090991965,
        "roa_period_end": -0.014388616847633241,
        "roe_avg2y": -0.03293467887672846,
        "roe_period_end": -0.03368821577073736
      }
    },
    {
      "accn": "0001104659-26-023496",
      "filed": "2026-03-04",
      "fiscal_year": 2024,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 5896000.0,
        "capex": 12098000.0,
        "cash": 206000.0,
        "eps_diluted": 1.24,
        "free_cash_flow": 77709000.0,
        "net_income": 25968000.0,
        "operating_cash_flow": 89807000.0,
        "operating_income": 44553000.0,
        "revenue": 581604000.0,
        "stockholders_equity": 251753000.0,
        "total_assets": 445570000.0,
        "total_liabilities": 193817000.0
      },
      "period_end": "2024-12-31",
      "ratio_units": {
        "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": {
        "leverage": 0.7698696738469849,
        "net_margin": 0.04464893638970846,
        "operating_margin": 0.07660366847545753,
        "revenue_growth_yoy": -0.011591961592386455,
        "roa_avg2y": 0.05512024121473397,
        "roa_period_end": 0.05828040487465494,
        "roe_avg2y": 0.10781120583894331,
        "roe_period_end": 0.10314872116717576
      }
    },
    {
      "accn": "0001558370-25-002369",
      "filed": "2026-03-04",
      "fiscal_year": 2023,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 2661000.0,
        "capex": 16598000.0,
        "cash": 672000.0,
        "eps_diluted": 0.38,
        "free_cash_flow": 23765000.0,
        "net_income": 7844000.0,
        "operating_cash_flow": 40363000.0,
        "operating_income": 20191000.0,
        "revenue": 588425000.0,
        "stockholders_equity": 229978000.0,
        "total_assets": 496661000.0,
        "total_liabilities": 266683000.0
      },
      "period_end": "2023-12-31",
      "ratio_units": {
        "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": {
        "leverage": 1.1596022228213134,
        "net_margin": 0.01333050091345541,
        "operating_margin": 0.03431363385308238,
        "revenue_growth_yoy": 0.09090420325106786,
        "roa_avg2y": 0.01673847309446226,
        "roa_period_end": 0.01579346878454318,
        "roe_avg2y": 0.03502997688932555,
        "roe_period_end": 0.03410761029315847
      }
    },
    {
      "accn": "0001558370-25-002369",
      "filed": "2026-03-04",
      "fiscal_year": 2022,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 4947000.0,
        "capex": 58610000.0,
        "cash": 127000.0,
        "eps_diluted": 0.91,
        "free_cash_flow": -6184000.0,
        "net_income": 18727000.0,
        "operating_cash_flow": 52426000.0,
        "operating_income": 25774000.0,
        "revenue": 539392000.0,
        "stockholders_equity": 217867000.0,
        "total_assets": 440581000.0,
        "total_liabilities": 222714000.0
      },
      "period_end": "2022-12-31",
      "ratio_units": {
        "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": {
        "leverage": 1.0222475179811537,
        "net_margin": 0.034718720336972,
        "operating_margin": 0.047783430232558134,
        "revenue_growth_yoy": 0.18593044373012976,
        "roa_avg2y": 0.045672602048157804,
        "roa_period_end": 0.04250523740242997,
        "roe_avg2y": 0.09000379681740192,
        "roe_period_end": 0.08595611083826371
      }
    },
    {
      "accn": "0001558370-25-002369",
      "filed": "2025-03-06",
      "fiscal_year": 2021,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 2153000.0,
        "capex": 39309000.0,
        "cash": 118000.0,
        "eps_diluted": -0.36,
        "free_cash_flow": -24852000.0,
        "net_income": -7451000.0,
        "operating_cash_flow": 14457000.0,
        "operating_income": -7391000.0,
        "revenue": 454826000.0,
        "stockholders_equity": 198271000.0,
        "total_assets": 379473000.0,
        "total_liabilities": 181202000.0
      },
      "period_end": "2021-12-31",
      "ratio_units": {
        "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": {
        "leverage": 0.9139107585072955,
        "net_margin": -0.016382088974684825,
        "operating_margin": -0.01625017039483231,
        "revenue_growth_yoy": 0.27186344748130625,
        "roa_avg2y": -0.02075470121419598,
        "roa_period_end": -0.019635125555704885,
        "roe_avg2y": -0.037336393337475696,
        "roe_period_end": -0.03757987804570512
      }
    },
    {
      "accn": "0001564590-22-008290",
      "filed": "2024-03-06",
      "fiscal_year": 2020,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 2509000.0,
        "capex": 7794000.0,
        "cash": 121000.0,
        "eps_diluted": -0.36,
        "free_cash_flow": 28729000.0,
        "net_income": -7092000.0,
        "operating_cash_flow": 36523000.0,
        "operating_income": -6498000.0,
        "revenue": 357606000.0,
        "stockholders_equity": 200857000.0,
        "total_assets": 338533000.0,
        "total_liabilities": 137676000.0
      },
      "period_end": "2020-12-31",
      "ratio_units": {
        "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": {
        "leverage": 0.6854428772708943,
        "net_margin": -0.019831882015402424,
        "operating_margin": -0.018170836059797656,
        "revenue_growth_yoy": -0.31190446869756633,
        "roa_avg2y": -0.0202018187903691,
        "roa_period_end": -0.020949213222935432,
        "roe_avg2y": -0.03530536251219658,
        "roe_period_end": -0.03530870221102576
      }
    },
    {
      "accn": "0001564590-22-008290",
      "filed": "2023-03-01",
      "fiscal_year": 2019,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 2591000.0,
        "capex": 25797000.0,
        "cash": 1000.0,
        "eps_diluted": -0.27,
        "free_cash_flow": 7605000.0,
        "net_income": -4753000.0,
        "operating_cash_flow": 33402000.0,
        "operating_income": -1958000.0,
        "revenue": 519704000.0,
        "stockholders_equity": 200895000.0,
        "total_assets": 363582000.0,
        "total_liabilities": 162687000.0
      },
      "period_end": "2019-12-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.8098110953483163,
        "net_margin": -0.009145590566938103,
        "operating_margin": -0.0037675292089343164,
        "revenue_growth_yoy": 0.4659122321070951,
        "roa_avg2y": -0.012585610884051121,
        "roa_period_end": -0.01307270436930321,
        "roe_period_end": -0.023659125413773366
      }
    },
    {
      "accn": "0001564590-21-011139",
      "filed": "2021-03-05",
      "fiscal_year": 2018,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 7833000.0,
        "capex": 17879000.0,
        "cash": 3089000.0,
        "free_cash_flow": 18836000.0,
        "net_income": 17935000.0,
        "operating_cash_flow": 36715000.0,
        "operating_income": 22169000.0,
        "revenue": 354526000.0,
        "total_assets": 391725000.0,
        "total_liabilities": 288736000.0
      },
      "period_end": "2018-12-31",
      "ratio_units": {
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_period_end": "ratio"
      },
      "ratios": {
        "net_margin": 0.050588673327203085,
        "operating_margin": 0.06253137992700113,
        "revenue_growth_yoy": 0.1314743833198758,
        "roa_period_end": 0.045784670368243026
      }
    },
    {
      "accn": "0001564590-20-008206",
      "filed": "2020-03-02",
      "fiscal_year": 2017,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD"
      },
      "fundamentals": {
        "buybacks": 8713000.0,
        "capex": 11259000.0,
        "free_cash_flow": 19542000.0,
        "net_income": 5246000.0,
        "operating_cash_flow": 30801000.0,
        "operating_income": 9426000.0,
        "revenue": 313331000.0
      },
      "period_end": "2017-12-31",
      "ratio_units": {
        "net_margin": "ratio",
        "operating_margin": "ratio"
      },
      "ratios": {
        "net_margin": 0.01674267787100542,
        "operating_margin": 0.0300832027472545
      }
    }
  ],
  "latest_filing": {
    "accn": "0001104659-26-023496",
    "filed": "2026-03-04",
    "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": "3460",
  "sic_description": "Metal Forgings & Stampings",
  "source_urls": {
    "sec_companyfacts": "https://data.sec.gov/api/xbrl/companyfacts/CIK0001766368.json",
    "sec_submissions": "https://data.sec.gov/submissions/CIK0001766368.json"
  },
  "ticker": "MEC"
}
