<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>155</ContextCount>
  <ElementCount>245</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>60</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>4</UnitCount>
  <MyReports>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Condensed Consolidated Statements of Operations (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfOperationsUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Operations (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - Condensed Consolidated Statements of Comprehensive Income (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncomeUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Income (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Condensed Consolidated Statements of Comprehensive Income (Loss) (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncomeLossUnauditedParenthetical</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Income (Loss) (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Condensed Consolidated Balance Sheets (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnaudited</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - Condensed Consolidated Balance Sheets (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsUnauditedParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Statement - Condensed Consolidated Statements of Cash Flows (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlowsUnaudited</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Statement - Condensed Consolidated Statements of Changes in Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfChangesInStockholdersEquity</Role>
      <ShortName>Condensed Consolidated Statements of Changes in Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Disclosure - Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureBasisOfPresentation</Role>
      <ShortName>Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Revenue Recognition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureRevenueRecognition</Role>
      <ShortName>Revenue Recognition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureInventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureIntangibleAssets</Role>
      <ShortName>Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Equity-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureEquityBasedCompensation</Role>
      <ShortName>Equity-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Income Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureIncomePerShare1</Role>
      <ShortName>Income Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Product Warranty Liability</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureProductWarrantyLiability</Role>
      <ShortName>Product Warranty Liability</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Cash Flow Statement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureCashFlowStatement</Role>
      <ShortName>Cash Flow Statement</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Changes in Accumulated Other Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureChangesInAccumulatedOtherComprehensiveLoss</Role>
      <ShortName>Changes in Accumulated Other Comprehensive Loss</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureDebt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Revenue Recognition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureRevenueRecognitionTables</Role>
      <ShortName>Revenue Recognition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureRevenueRecognition</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureInventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureInventories</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureIntangibleAssetsTables</Role>
      <ShortName>Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureIntangibleAssets</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Equity -Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureEquityBasedCompensationTables</Role>
      <ShortName>Equity -Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Income Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureIncomePerShareTables</Role>
      <ShortName>Income Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureIncomePerShare1</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Product Warranty Liability (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureProductWarrantyLiabilityTables</Role>
      <ShortName>Product Warranty Liability (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureProductWarrantyLiability</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Cash Flow Statement (Table)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureCashFlowStatementTable</Role>
      <ShortName>Cash Flow Statement (Table)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureCashFlowStatement</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Changes in Accumulated Other Comprehensive Loss (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureChangesInAccumulatedOtherComprehensiveLossTables</Role>
      <ShortName>Changes in Accumulated Other Comprehensive Loss (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureChangesInAccumulatedOtherComprehensiveLoss</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureDebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureDebt</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Revenue Recognition - Revenue Disaggregated by Product Line and Geographic Area (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureRevenueRecognitionRevenueDisaggregatedByProductLineAndGeographicAreaDetail</Role>
      <ShortName>Revenue Recognition - Revenue Disaggregated by Product Line and Geographic Area (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Revenue Recognition - Schedule of Disaggregation of Revenue (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureRevenueRecognitionScheduleOfDisaggregationOfRevenueDetail</Role>
      <ShortName>Revenue Recognition - Schedule of Disaggregation of Revenue (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Revenue Recognition - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail</Role>
      <ShortName>Revenue Recognition - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Revenue Recognition - Schedule of Net Contract Assets (Liabilities) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureRevenueRecognitionScheduleOfNetContractAssetsLiabilitiesDetail</Role>
      <ShortName>Revenue Recognition - Schedule of Net Contract Assets (Liabilities) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Revenue Recognition - Additional Information (Detail1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail1</Role>
      <ShortName>Revenue Recognition - Additional Information (Detail1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Inventories - Major Classifications of Inventories (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureInventoriesMajorClassificationsOfInventoriesDetail</Role>
      <ShortName>Inventories - Major Classifications of Inventories (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Intangible Assets - Schedule of Intangible assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureIntangibleAssetsScheduleOfIntangibleAssetsDetail</Role>
      <ShortName>Intangible Assets - Schedule of Intangible assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Intangible Assets - Schedule of Estimated Annual Amortization Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureIntangibleAssetsScheduleOfEstimatedAnnualAmortizationExpenseDetails</Role>
      <ShortName>Intangible Assets - Schedule of Estimated Annual Amortization Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Intangible Assets - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureIntangibleAssetsAdditionalInformationDetails</Role>
      <ShortName>Intangible Assets - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Equity -Based Compensation - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureEquityBasedCompensationAdditionalInformationDetail</Role>
      <ShortName>Equity -Based Compensation - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Equity -Based Compensation - Schedule of Restricted Stock Units ("RSUs"), Performance Stock Units ("PSUs"), and Restricted Stock Awards ("RSAs") Granted (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureEquityBasedCompensationScheduleOfRestrictedStockUnitsRsusPerformanceStockUnitsPsusAndRestrictedStockAwardsRsasGrantedDetail</Role>
      <ShortName>Equity -Based Compensation - Schedule of Restricted Stock Units ("RSUs"), Performance Stock Units ("PSUs"), and Restricted Stock Awards ("RSAs") Granted (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100490 - Disclosure - Equity -Based Compensation - Schedule of recognized equity-based compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureEquityBasedCompensationScheduleOfRecognizedEquitybasedCompensationDetails</Role>
      <ShortName>Equity -Based Compensation - Schedule of recognized equity-based compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Income Per Share - Reconciliation of Numerators and Denominators of Basic and Diluted Income (Loss) Per Share (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureIncomePerShareReconciliationOfNumeratorsAndDenominatorsOfBasicAndDilutedIncomeLossPerShareDetail</Role>
      <ShortName>Income Per Share - Reconciliation of Numerators and Denominators of Basic and Diluted Income (Loss) Per Share (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Product Warranty Liability - Reconciliation of the Changes in Product Warranty Liability (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureProductWarrantyLiabilityReconciliationOfChangesInProductWarrantyLiabilityDetail</Role>
      <ShortName>Product Warranty Liability - Reconciliation of the Changes in Product Warranty Liability (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Cash Flow Statement - Schedule of Cash Flow Supplemental Disclosure (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureCashFlowStatementScheduleOfCashFlowSupplementalDisclosureDetails</Role>
      <ShortName>Cash Flow Statement - Schedule of Cash Flow Supplemental Disclosure (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Commitments and Contingencies- Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureCommitmentsAndContingenciesAdditionalInformationDetail</Role>
      <ShortName>Commitments and Contingencies- Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Income Taxes - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail</Role>
      <ShortName>Income Taxes - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100590 - Disclosure - Changes in Accumulated Other Comprehensive Loss - Changes in Accumulated Other Comprehensive Loss by Component (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureChangesInAccumulatedOtherComprehensiveLossChangesInAccumulatedOtherComprehensiveLossByComponentDetail</Role>
      <ShortName>Changes in Accumulated Other Comprehensive Loss - Changes in Accumulated Other Comprehensive Loss by Component (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100600 - Disclosure - Changes in Accumulated Other Comprehensive Loss - Reclassifications Out of Accumulated Other Comprehensive Loss by Component (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureChangesInAccumulatedOtherComprehensiveLossReclassificationsOutOfAccumulatedOtherComprehensiveLossByComponentDetail</Role>
      <ShortName>Changes in Accumulated Other Comprehensive Loss - Reclassifications Out of Accumulated Other Comprehensive Loss by Component (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100660 - Disclosure - Debt - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/Role_DisclosureDebtAdditionalInformationDetail</Role>
      <ShortName>Debt - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Debt - Schedule of Long Term Debt (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureDebtScheduleOfLongTermDebtDetail</Role>
      <ShortName>Debt - Schedule of Long Term Debt (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="ghm-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Debt - Schedule of Future Minimum Payments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graham-mfg.com/20230630/taxonomy/role/DisclosureDebtScheduleOfFutureMinimumPaymentsDetail</Role>
      <ShortName>Debt - Schedule of Future Minimum Payments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 4 fact(s) appearing in ix:hidden were eligible for transformation: us-gaap:RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1, us-gaap:ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1, us-gaap:SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage -  ghm-20230630.htm 8</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-Q" original="ghm-20230630.htm">ghm-20230630.htm</File>
    <File>ghm-20230630.xsd</File>
    <File>ghm-20230630_cal.xml</File>
    <File>ghm-20230630_def.xml</File>
    <File>ghm-20230630_lab.xml</File>
    <File>ghm-20230630_pre.xml</File>
    <File>ghm-ex10_3.htm</File>
    <File>ghm-ex31_1.htm</File>
    <File>ghm-ex31_2.htm</File>
    <File>ghm-ex32_1.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>img101471587_0.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="488">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
