<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>317</ContextCount>
  <ElementCount>304</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>72</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="gbx-20230228.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/20230228/taxonomy/role/Role_DocumentCoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="gbx-20230228.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/20230228/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheets</Role>
      <ShortName>Condensed Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="gbx-20230228.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/20230228/taxonomy/role/Role_StatementCondensedConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="gbx-20230228.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/20230228/taxonomy/role/StatementCondensedConsolidatedStatementsOfIncome</Role>
      <ShortName>Condensed Consolidated Statements of Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="gbx-20230228.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/20230228/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="gbx-20230228.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/20230228/taxonomy/role/StatementCondensedConsolidatedStatementsOfComprehensiveIncomeParenthetical</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Income (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="gbx-20230228.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/20230228/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfEquity</Role>
      <ShortName>Condensed Consolidated Statements of Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="gbx-20230228.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/20230228/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfEquityParenthetical</Role>
      <ShortName>Condensed Consolidated Statements of Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="gbx-20230228.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/20230228/taxonomy/role/Role_StatementCondensedConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Interim Financial Statements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureInterimFinancialStatements</Role>
      <ShortName>Interim Financial Statements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Revenue Recognition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureRevenueRecognition</Role>
      <ShortName>Revenue Recognition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureInventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Gunderson Facility</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/DisclosureGundersonFacility</Role>
      <ShortName>Gunderson Facility</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Intangibles and Other Assets, net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureIntangiblesAndOtherAssetsNet</Role>
      <ShortName>Intangibles and Other Assets, net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Revolving Notes</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureRevolvingNotes</Role>
      <ShortName>Revolving Notes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Accounts Payable and Accrued Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureAccountsPayableAndAccruedLiabilities</Role>
      <ShortName>Accounts Payable and Accrued Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Warranty Accruals</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureWarrantyAccruals</Role>
      <ShortName>Warranty Accruals</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Accumulated Other Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLoss</Role>
      <ShortName>Accumulated Other Comprehensive Loss</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Earnings (Loss) Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/DisclosureEarningsLossPerShare</Role>
      <ShortName>Earnings (Loss) Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Stock Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureStockBasedCompensation</Role>
      <ShortName>Stock Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Derivative Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureDerivativeInstruments</Role>
      <ShortName>Derivative Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Segment Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureSegmentInformation</Role>
      <ShortName>Segment Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Fair Value Measures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureFairValueMeasures</Role>
      <ShortName>Fair Value Measures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Revenue Recognition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureRevenueRecognitionTables</Role>
      <ShortName>Revenue Recognition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureRevenueRecognition</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureInventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureInventories</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Intangibles and Other Assets, net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureIntangiblesAndOtherAssetsNetTables</Role>
      <ShortName>Intangibles and Other Assets, net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureIntangiblesAndOtherAssetsNet</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Revolving Notes (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/DisclosureRevolvingNotesTables</Role>
      <ShortName>Revolving Notes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureRevolvingNotes</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Accounts Payable and Accrued Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureAccountsPayableAndAccruedLiabilitiesTables</Role>
      <ShortName>Accounts Payable and Accrued Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureAccountsPayableAndAccruedLiabilities</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Warranty Accruals (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureWarrantyAccrualsTables</Role>
      <ShortName>Warranty Accruals (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureWarrantyAccruals</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Accumulated Other Comprehensive Loss (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossTables</Role>
      <ShortName>Accumulated Other Comprehensive Loss (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLoss</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Earnings (Loss) Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/DisclosureEarningsLossPerShareTables</Role>
      <ShortName>Earnings (Loss) Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20230228/taxonomy/role/DisclosureEarningsLossPerShare</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Derivative Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureDerivativeInstrumentsTables</Role>
      <ShortName>Derivative Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureDerivativeInstruments</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Segment Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureSegmentInformationTables</Role>
      <ShortName>Segment Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureSegmentInformation</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureLeases</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Fair Value Measures (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureFairValueMeasuresTables</Role>
      <ShortName>Fair Value Measures (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureFairValueMeasures</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Interim Financial Statements - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureInterimFinancialStatementsAdditionalInformationDetail</Role>
      <ShortName>Interim Financial Statements - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100420 - Disclosure - Revenue Recognition - Summary of Contract Balances (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfContractBalancesDetail</Role>
      <ShortName>Revenue Recognition - Summary of Contract Balances (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Revenue Recognition - Additional information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureRevenueRecognitionAdditionalInformationDetail</Role>
      <ShortName>Revenue Recognition - Additional information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Revenue Recognition - Summary of Estimated Revenue Related to Performance Obligations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureRevenueRecognitionSummaryOfEstimatedRevenueRelatedToPerformanceObligationsDetail</Role>
      <ShortName>Revenue Recognition - Summary of Estimated Revenue Related to Performance Obligations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Inventories - Components of Inventories (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureInventoriesComponentsOfInventoriesDetail</Role>
      <ShortName>Inventories - Components of Inventories (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Gunderson Facility (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/DisclosureGundersonFacilityDetails</Role>
      <ShortName>Gunderson Facility (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.gbrx.com/20230228/taxonomy/role/DisclosureGundersonFacility</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Intangibles and Other Assets, Net - Identifiable Intangible and Other Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureIntangiblesAndOtherAssetsNetIdentifiableIntangibleAndOtherAssetsDetail</Role>
      <ShortName>Intangibles and Other Assets, Net - Identifiable Intangible and Other Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Intangibles and Other Assets, Net - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureIntangiblesAndOtherAssetsNetAdditionalInformationDetail</Role>
      <ShortName>Intangibles and Other Assets, Net - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100490 - Disclosure - Revolving Notes - Additional Information (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureRevolvingNotesAdditionalInformationDetail</Role>
      <ShortName>Revolving Notes - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Revolving Notes - Schedule of Credit Facility Balances (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/DisclosureRevolvingNotesScheduleOfCreditFacilityBalancesDetail</Role>
      <ShortName>Revolving Notes - Schedule of Credit Facility Balances (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Accounts Payable and Accrued Liabilities - Accounts Payable and Accrued Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureAccountsPayableAndAccruedLiabilitiesAccountsPayableAndAccruedLiabilitiesDetail</Role>
      <ShortName>Accounts Payable and Accrued Liabilities - Accounts Payable and Accrued Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Warranty Accruals - Warranty Accrual Activity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureWarrantyAccrualsWarrantyAccrualActivityDetail</Role>
      <ShortName>Warranty Accruals - Warranty Accrual Activity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Accumulated Other Comprehensive Loss - Components of Accumulated Other Comprehensive Loss, Net of Tax (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/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>51</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Accumulated Other Comprehensive Loss - Amounts Reclassified out of Accumulated Other Comprehensive Loss (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureAccumulatedOtherComprehensiveLossAmountsReclassifiedOutOfAccumulatedOtherComprehensiveLossDetail</Role>
      <ShortName>Accumulated Other Comprehensive Loss - Amounts Reclassified out of Accumulated Other Comprehensive Loss (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100550 - 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/20230228/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>53</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100560 - Disclosure - Earnings Per Share - Reconciliation of Shares Used in Computation of Basic and Diluted Earnings Per Common Share (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/DisclosureEarningsPerShareReconciliationOfSharesUsedInComputationOfBasicAndDilutedEarningsPerCommonShareParentheticalDetail</Role>
      <ShortName>Earnings Per Share - Reconciliation of Shares Used in Computation of Basic and Diluted Earnings Per Common Share (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Earnings Per Share - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/DisclosureEarningsPerShareAdditionalInformationDetail</Role>
      <ShortName>Earnings Per Share - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Earnings Per Share - Approach to Calculate Diluted Earnings Per Share (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/DisclosureEarningsPerShareApproachToCalculateDilutedEarningsPerShareDetail</Role>
      <ShortName>Earnings Per Share - Approach to Calculate Diluted Earnings Per Share (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100590 - Disclosure - Earnings Per Share - Approach to Calculate Diluted Earnings Per Share (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/DisclosureEarningsPerShareApproachToCalculateDilutedEarningsPerShareParentheticalDetail</Role>
      <ShortName>Earnings Per Share - Approach to Calculate Diluted Earnings Per Share (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100600 - Disclosure - Stock Based Compensation - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureStockBasedCompensationAdditionalInformationDetail</Role>
      <ShortName>Stock Based Compensation - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100610 - Disclosure - Derivative Instruments - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureDerivativeInstrumentsAdditionalInformationDetail</Role>
      <ShortName>Derivative Instruments - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>100620 - Disclosure - Derivative Instruments - Fair Values of Derivative Instruments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureDerivativeInstrumentsFairValuesOfDerivativeInstrumentsDetail</Role>
      <ShortName>Derivative Instruments - Fair Values of Derivative Instruments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>100630 - Disclosure - Derivative Instruments - Effect of Derivative Instruments on Statements of Income (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/DisclosureDerivativeInstrumentsEffectOfDerivativeInstrumentsOnStatementsOfIncomeDetail</Role>
      <ShortName>Derivative Instruments - Effect of Derivative Instruments on Statements of Income (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>100640 - Disclosure - Derivative Instruments - Effects of Cash Flow Hedges Included in Statements of Income (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/DisclosureDerivativeInstrumentsEffectsOfCashFlowHedgesIncludedInStatementsOfIncomeDetail</Role>
      <ShortName>Derivative Instruments - Effects of Cash Flow Hedges Included in Statements of Income (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>100650 - Disclosure - Segment Information - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureSegmentInformationAdditionalInformationDetail</Role>
      <ShortName>Segment Information - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>100660 - Disclosure - Segment Information - Segments Internal Financial Reports (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureSegmentInformationSegmentsInternalFinancialReportsDetail</Role>
      <ShortName>Segment Information - Segments Internal Financial Reports (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Segment Information - Reconciliation of Earnings from Operations to Earnings Before Income Tax and Earnings from Unconsolidated Affiliates (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/DisclosureSegmentInformationReconciliationOfEarningsFromOperationsToEarningsBeforeIncomeTaxAndEarningsFromUnconsolidatedAffiliatesDetail</Role>
      <ShortName>Segment Information - Reconciliation of Earnings from Operations to Earnings Before Income Tax and Earnings from Unconsolidated Affiliates (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Leases - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureLeasesAdditionalInformationDetail</Role>
      <ShortName>Leases - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>100690 - 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/20230228/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>67</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>100710 - Disclosure - Leases - Components of Operating Lease Costs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureLeasesComponentsOfOperatingLeaseCostsDetail</Role>
      <ShortName>Leases - Components of Operating Lease Costs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>100720 - Disclosure - Leases - Aggregate Minimum Future Amounts Payable Under Operating Leases (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureLeasesAggregateMinimumFutureAmountsPayableUnderOperatingLeasesDetail</Role>
      <ShortName>Leases - Aggregate Minimum Future Amounts Payable Under Operating Leases (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>100730 - Disclosure - Leases - Additional Information Related to Company's Leases (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureLeasesAdditionalInformationRelatedToCompanySLeasesDetail</Role>
      <ShortName>Leases - Additional Information Related to Company's Leases (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>100740 - Disclosure - Leases - Supplemental Cash Flow Information Related to Leases (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureLeasesSupplementalCashFlowInformationRelatedToLeasesDetail</Role>
      <ShortName>Leases - Supplemental Cash Flow Information Related to Leases (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>100750 - Disclosure - Commitments and Contingencies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail</Role>
      <ShortName>Commitments and Contingencies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>100760 - Disclosure - Fair Value Measures - Assets and Liabilities Measured at Fair Value on Recurring Basis (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/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>73</Position>
    </Report>
    <Report instance="gbx-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>100770 - Disclosure - Related Party Transactions - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.gbrx.com/20230228/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetail</Role>
      <ShortName>Related Party Transactions - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</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">[dq-0542-Deprecated-Concept] Concept AccountingStandardsUpdate202004Member in us-gaap/2022 used in 2 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. gbx-20230228.htm 3612</Log>
    <Log type="Warning">[dq-0542-Deprecated-Concept] Concept LondonInterbankOfferedRateLIBORMember in us-gaap/2022 used in 3 facts was deprecated in us-gaap/2023 as of 2023 and should not be used. gbx-20230228.htm 4009</Log>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 1 fact(s) appearing in ix:hidden were eligible for transformation: gbx:SubleasePeriod -  gbx-20230228.htm 8</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-Q" original="gbx-20230228.htm">gbx-20230228.htm</File>
    <File>gbx-20230228.xsd</File>
    <File>gbx-20230228_cal.xml</File>
    <File>gbx-20230228_def.xml</File>
    <File>gbx-20230228_lab.xml</File>
    <File>gbx-20230228_pre.xml</File>
    <File>gbx-ex10_43.htm</File>
    <File>gbx-ex31_1.htm</File>
    <File>gbx-ex31_2.htm</File>
    <File>gbx-ex32_1.htm</File>
    <File>gbx-ex32_2.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="995">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
