Party-in-Interest and Related Party Transactions (Details) - Mayville Engineering Company, Inc. 401(k) Plan - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Dec. 31, 2025 |
Dec. 31, 2024 |
|
| Party-in-Interest and Related Party Transactions | ||
| Administrative expenses | $ 172 | |
| Principal Financial Group | ||
| Party-in-Interest and Related Party Transactions | ||
| Administrative expenses | $ 172 | |
| Employer | Corporate common stock | ||
| Party-in-Interest and Related Party Transactions | ||
| Shares held | 2,488,176 | 2,193,927 |
| Shares held at cost | $ 32,083 | $ 26,665 |
| Value of shares acquired | 3,644 | |
| Proceeds from sale of shares | 13,158 | |
| Realized gain | $ 1,804 |
| X | ||||||||||
- Definition Amount of decrease in net asset available for benefit from administrative expense incurred by employee stock purchase, saving, or similar plan (employee benefit plan (EBP)). Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of increase (decrease) in net asset available for benefit from realized gain (loss) on investment held by employee stock purchase, saving, or similar plan (employee benefit plan (EBP)). Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Cost of investment, excluding plan interest in master trust, acquired by employee stock purchase, saving, or similar plan (employee benefit plan (EBP)). Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Cost of investment, excluding plan interest in master trust, held by employee stock purchase, saving, or similar plan (employee benefit plan (EBP)). Includes, but is not limited to, derivative, investment measured at net asset value per share as practical expedient, and insurance contract. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Number of shares or units of investment held by employee stock purchase, saving, or similar plan (employee benefit plan (EBP)). Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of selling price for investment, excluding plan interest in master trust, sold by employee stock purchase, saving, or similar plan (employee benefit plan (EBP)). Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|