<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.24.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>324</ContextCount>
  <ElementCount>315</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>79</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DocumentCoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Condensed Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheets</Role>
      <ShortName>Condensed Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - Condensed Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Condensed Consolidated Statements of Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/StatementCondensedConsolidatedStatementsOfIncome</Role>
      <ShortName>Condensed Consolidated Statements of Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Condensed Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncome1</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - Condensed Consolidated Statements of Comprehensive Income (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Income (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Statement - Condensed Consolidated Statements of Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfEquity</Role>
      <ShortName>Condensed Consolidated Statements of Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Statement - Condensed Consolidated Statements of Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfEquityParenthetical</Role>
      <ShortName>Condensed Consolidated Statements of Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Statement - Condensed Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995455 - Disclosure - Interim Financial Statements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureInterimFinancialStatements</Role>
      <ShortName>Interim Financial Statements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>995465 - Disclosure - Revenue Recognition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureRevenueRecognition</Role>
      <ShortName>Revenue Recognition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>995475 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureInventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995495 - Disclosure - Intangibles and Other Assets, net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureIntangiblesAndOtherAssetsNet</Role>
      <ShortName>Intangibles and Other Assets, net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995505 - Disclosure - Goodwill</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureGoodwill1</Role>
      <ShortName>Goodwill</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995515 - Disclosure - Revolving Notes</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureRevolvingNotes</Role>
      <ShortName>Revolving Notes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995525 - Disclosure - Accounts Payable and Accrued Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureAccountsPayableAndAccruedLiabilities</Role>
      <ShortName>Accounts Payable and Accrued Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995535 - Disclosure - Warranty Accruals</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureWarrantyAccruals</Role>
      <ShortName>Warranty Accruals</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995545 - Disclosure - Notes Payable, net</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureNotesPayableNet</Role>
      <ShortName>Notes Payable, net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995555 - Disclosure - Accumulated Other Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLoss</Role>
      <ShortName>Accumulated Other Comprehensive Loss</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995565 - Disclosure - Earnings Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureEarningsPerShare1</Role>
      <ShortName>Earnings Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>995575 - Disclosure - Derivative Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureDerivativeInstruments</Role>
      <ShortName>Derivative Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>995585 - Disclosure - Segment Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureSegmentInformation</Role>
      <ShortName>Segment Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995595 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995605 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>995615 - Disclosure - Fair Value Measures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureFairValueMeasures</Role>
      <ShortName>Fair Value Measures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>995625 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>995645 - Disclosure - Interim Financial Statements (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureInterimFinancialStatementsPolicies</Role>
      <ShortName>Interim Financial Statements (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>995655 - Disclosure - Revenue Recognition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureRevenueRecognitionTables</Role>
      <ShortName>Revenue Recognition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureRevenueRecognition</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>995665 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureInventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureInventories</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>995675 - Disclosure - Intangibles and Other Assets, net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureIntangiblesAndOtherAssetsNetTables</Role>
      <ShortName>Intangibles and Other Assets, net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureIntangiblesAndOtherAssetsNet</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>995685 - Disclosure - Revolving Notes (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureRevolvingNotesTables</Role>
      <ShortName>Revolving Notes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureRevolvingNotes</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>995695 - Disclosure - Accounts Payable and Accrued Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureAccountsPayableAndAccruedLiabilitiesTables</Role>
      <ShortName>Accounts Payable and Accrued Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureAccountsPayableAndAccruedLiabilities</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>995705 - Disclosure - Warranty Accruals (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureWarrantyAccrualsTables</Role>
      <ShortName>Warranty Accruals (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureWarrantyAccruals</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>995715 - Disclosure - Notes Payable, net (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureNotesPayableNetTables</Role>
      <ShortName>Notes Payable, net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20240531/taxonomy/role/DisclosureNotesPayableNet</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>995725 - Disclosure - Accumulated Other Comprehensive Loss (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossTables</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLoss</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>995735 - Disclosure - Earnings Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureEarningsPerShareTables</Role>
      <ShortName>Earnings Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20240531/taxonomy/role/DisclosureEarningsPerShare1</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>995745 - Disclosure - Derivative Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureDerivativeInstrumentsTables</Role>
      <ShortName>Derivative Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureDerivativeInstruments</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>995755 - Disclosure - Segment Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureSegmentInformationTables</Role>
      <ShortName>Segment Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureSegmentInformation</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>995765 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureLeases</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>995775 - Disclosure - Fair Value Measures (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureFairValueMeasuresTables</Role>
      <ShortName>Fair Value Measures (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureFairValueMeasures</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>995785 - Disclosure - Interim Financial Statements - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureInterimFinancialStatementsAdditionalInformationDetail</Role>
      <ShortName>Interim Financial Statements - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>995795 - Disclosure - Revenue Recognition - Summary of Contract Balances (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfContractBalancesDetail</Role>
      <ShortName>Revenue Recognition - Summary of Contract Balances (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>995805 - Disclosure - Revenue Recognition - Additional information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail</Role>
      <ShortName>Revenue Recognition - Additional information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>995815 - Disclosure - Revenue Recognition - Summary of Estimated Revenue Related to Performance Obligations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfEstimatedRevenueRelatedToPerformanceObligationsDetail</Role>
      <ShortName>Revenue Recognition - Summary of Estimated Revenue Related to Performance Obligations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>995825 - Disclosure - Inventories - Components of Inventories (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureInventoriesComponentsOfInventoriesDetail</Role>
      <ShortName>Inventories - Components of Inventories (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>995845 - Disclosure - Intangibles and Other Assets, Net - Identifiable Intangibles and Other Assets, Net (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureIntangiblesAndOtherAssetsNetIdentifiableIntangiblesAndOtherAssetsNetDetail</Role>
      <ShortName>Intangibles and Other Assets, Net - Identifiable Intangibles and Other Assets, Net (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>995865 - Disclosure - Goodwill - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureGoodwillAdditionalInformationDetail</Role>
      <ShortName>Goodwill - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>995875 - Disclosure - Revolving Notes - Additional Information (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureRevolvingNotesAdditionalInformationDetail</Role>
      <ShortName>Revolving Notes - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>995885 - Disclosure - Revolving Notes - Schedule of Credit Facility Balances (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureRevolvingNotesScheduleOfCreditFacilityBalancesDetail</Role>
      <ShortName>Revolving Notes - Schedule of Credit Facility Balances (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>995895 - Disclosure - Accounts Payable and Accrued Liabilities - Accounts Payable and Accrued Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureAccountsPayableAndAccruedLiabilitiesAccountsPayableAndAccruedLiabilitiesDetail</Role>
      <ShortName>Accounts Payable and Accrued Liabilities - Accounts Payable and Accrued Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>995905 - Disclosure - Warranty Accruals - Warranty Accrual Activity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureWarrantyAccrualsWarrantyAccrualActivityDetail</Role>
      <ShortName>Warranty Accruals - Warranty Accrual Activity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>995915 - Disclosure - Notes Payable, Net - Notes Payable, Net (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureNotesPayableNetNotesPayableNetDetail</Role>
      <ShortName>Notes Payable, Net - Notes Payable, Net (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>995925 - Disclosure - Notes Payable, Net - Notes Payable, Net (Parenthetical) (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureNotesPayableNetNotesPayableNetParentheticalDetails</Role>
      <ShortName>Notes Payable, Net - Notes Payable, Net (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>995935 - Disclosure - Notes Payable, Net - Additional Information (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureNotesPayableNetAdditionalInformationDetail</Role>
      <ShortName>Notes Payable, Net - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>995945 - Disclosure - Notes Payable, Net - Summary of Net Carrying Amount of Debt And Related Assets (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureNotesPayableNetSummaryOfNetCarryingAmountOfDebtAndRelatedAssetsDetail</Role>
      <ShortName>Notes Payable, Net - Summary of Net Carrying Amount of Debt And Related Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>995955 - Disclosure - Accumulated Other Comprehensive Loss - Components of Accumulated Other Comprehensive Loss, Net of Tax (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossComponentsOfAccumulatedOtherComprehensiveLossNetOfTaxDetail</Role>
      <ShortName>Accumulated Other Comprehensive Loss - Components of Accumulated Other Comprehensive Loss, Net of Tax (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>995965 - Disclosure - Accumulated Other Comprehensive Loss - Amounts Reclassified out of Accumulated Other Comprehensive Loss (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossAmountsReclassifiedOutOfAccumulatedOtherComprehensiveLossDetail</Role>
      <ShortName>Accumulated Other Comprehensive Loss - Amounts Reclassified out of Accumulated Other Comprehensive Loss (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>995975 - Disclosure - Earnings Per Share - Reconciliation of Shares Used in Computation of Basic and Diluted Earnings Per Common Share (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureEarningsPerShareReconciliationOfSharesUsedInComputationOfBasicAndDilutedEarningsPerCommonShareDetail</Role>
      <ShortName>Earnings Per Share - Reconciliation of Shares Used in Computation of Basic and Diluted Earnings Per Common Share (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>995985 - Disclosure - Earnings Per Share - Reconciliation of Shares Used in Computation of Basic and Diluted Earnings (Loss) Per Common Share (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureEarningsPerShareReconciliationOfSharesUsedInComputationOfBasicAndDilutedEarningsLossPerCommonShareParentheticalDetail</Role>
      <ShortName>Earnings Per Share - Reconciliation of Shares Used in Computation of Basic and Diluted Earnings (Loss) Per Common Share (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>995995 - Disclosure - Earnings Per Share - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureEarningsPerShareAdditionalInformationDetail</Role>
      <ShortName>Earnings Per Share - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>996005 - Disclosure - Earnings Per Share - Approach to Calculate Diluted Earnings Per Share (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureEarningsPerShareApproachToCalculateDilutedEarningsPerShareDetail</Role>
      <ShortName>Earnings Per Share - Approach to Calculate Diluted Earnings Per Share (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>996015 - Disclosure - Earnings Per Share - Approach to Calculate Diluted Earnings Per Share (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureEarningsPerShareApproachToCalculateDilutedEarningsPerShareParentheticalDetail</Role>
      <ShortName>Earnings Per Share - Approach to Calculate Diluted Earnings Per Share (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>996025 - Disclosure - Derivative Instruments - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail</Role>
      <ShortName>Derivative Instruments - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>996035 - Disclosure - Derivative Instruments - Fair Values of Derivative Instruments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureDerivativeInstrumentsFairValuesOfDerivativeInstrumentsDetail</Role>
      <ShortName>Derivative Instruments - Fair Values of Derivative Instruments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>996045 - Disclosure - Derivative Instruments - Effect of Derivative Instruments on Statements of Income (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureDerivativeInstrumentsEffectOfDerivativeInstrumentsOnStatementsOfIncomeDetail</Role>
      <ShortName>Derivative Instruments - Effect of Derivative Instruments on Statements of Income (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>996055 - Disclosure - Derivative Instruments - Effects of Cash Flow Hedges Included in Statements of Income (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureDerivativeInstrumentsEffectsOfCashFlowHedgesIncludedInStatementsOfIncomeDetail</Role>
      <ShortName>Derivative Instruments - Effects of Cash Flow Hedges Included in Statements of Income (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>996075 - Disclosure - Segment Information - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureSegmentInformationAdditionalInformationDetail</Role>
      <ShortName>Segment Information - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>996085 - Disclosure - Segment Information - Segments Internal Financial Reports (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureSegmentInformationSegmentsInternalFinancialReportsDetail</Role>
      <ShortName>Segment Information - Segments Internal Financial Reports (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>996095 - Disclosure - Segment Information - Reconciliation of Earnings (Loss) from Operations to Earnings Before Income Tax and Earnings from Unconsolidated Affiliates (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/DisclosureSegmentInformationReconciliationOfEarningsLossFromOperationsToEarningsBeforeIncomeTaxAndEarningsFromUnconsolidatedAffiliatesDetai</Role>
      <ShortName>Segment Information - Reconciliation of Earnings (Loss) from Operations to Earnings Before Income Tax and Earnings from Unconsolidated Affiliates (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>996105 - Disclosure - Leases - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetail</Role>
      <ShortName>Leases - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>996115 - Disclosure - Leases - Aggregate Minimum Future Amounts Receivable Under All Non-Cancelable Operating Leases and Subleases (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureLeasesAggregateMinimumFutureAmountsReceivableUnderAllNonCancelableOperatingLeasesAndSubleasesDetail</Role>
      <ShortName>Leases - Aggregate Minimum Future Amounts Receivable Under All Non-Cancelable Operating Leases and Subleases (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>996125 - Disclosure - Leases - Components of Operating Lease Costs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureLeasesComponentsOfOperatingLeaseCostsDetail</Role>
      <ShortName>Leases - Components of Operating Lease Costs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>996135 - Disclosure - Leases - Aggregate Minimum Future Amounts Payable Under Operating Leases (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureLeasesAggregateMinimumFutureAmountsPayableUnderOperatingLeasesDetail</Role>
      <ShortName>Leases - Aggregate Minimum Future Amounts Payable Under Operating Leases (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>996145 - Disclosure - Leases - Additional Information Related to Company's Leases (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureLeasesAdditionalInformationRelatedToCompanySLeasesDetail</Role>
      <ShortName>Leases - Additional Information Related to Company's Leases (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>996155 - Disclosure - Leases - Supplemental Cash Flow Information Related to Leases (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureLeasesSupplementalCashFlowInformationRelatedToLeasesDetail</Role>
      <ShortName>Leases - Supplemental Cash Flow Information Related to Leases (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>996165 - Disclosure - Commitments and Contingencies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail</Role>
      <ShortName>Commitments and Contingencies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>996175 - Disclosure - Fair Value Measures - Assets and Liabilities Measured at Fair Value on Recurring Basis (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureFairValueMeasuresAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetail</Role>
      <ShortName>Fair Value Measures - Assets and Liabilities Measured at Fair Value on Recurring Basis (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="gbx-20240531.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>996185 - Disclosure - Related Party Transactions - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20240531/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail</Role>
      <ShortName>Related Party Transactions - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="gbx-20240531.htm">gbx-20240531.htm</File>
    <File>gbx-20240531.xsd</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1032">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
    <BaseTaxonomy items="13">http://xbrl.sec.gov/ecd/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>false</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
