v3.25.2
Deferred compensation - Additional Information (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2025
Jun. 30, 2024
Jun. 30, 2025
Jun. 30, 2024
Dec. 31, 2024
Deferred compensation          
Description of deferred compensation arrangements     The Mayville Engineering Company Deferred Compensation Plan is available for certain employees designated to be eligible to participate by the Company and approved by the Board of Directors.    
Deferred compensation arrangements, awards granted percentage     50.00%    
Annual short term cash incentive percentage     100.00%    
Deferred compensation cash-based arrangements liability, Current $ 1,382   $ 1,382   $ 251
Deferred compensation cash-based arrangements liability, Non current 4,319   4,319   $ 4,719
Deferred compensation plan (Income) expense 1,525 $ 4,133 4,850 $ 7,933  
Deferred compensation, distributions paid     253 286  
Deferred Profit Sharing          
Deferred compensation          
Deferred compensation plan (Income) expense 383 53 310 285  
Employees          
Deferred compensation          
Amount of compensation deferred $ 75 $ 83 $ 675 $ 447