Entity Central Index Key Interest and Foreign Exchange, Net Revenue and Cost of Revenue Lessee operating lease liability payments due after year four. Cover [Abstract] Document Type Document Type Amendment Flag Amendment Flag Document Period End Date Document Period End Date Document Fiscal Year Focus Document Fiscal Year Focus Document Fiscal Period Focus Document Fiscal Period Focus Entity Registrant Name Entity Registrant Name Trading Symbol Trading Symbol Security Exchange Name Security Exchange Name Entity Central Index Key Current Fiscal Year End Date Current Fiscal Year End Date Entity Current Reporting Status Entity Current Reporting Status Entity Interactive Data Current Entity Interactive Data Current Entity Filer Category Entity Filer Category Title of 12(b) Security Security12b Title Entity Common Stock, Shares Outstanding Entity Common Stock Shares Outstanding Document Quarterly Report Document Quarterly Report Document Transition Report Document Transition Report Entity File Number Entity File Number Entity Emerging Growth Company Entity Emerging Growth Company Entity Small Business Entity Small Business Entity Shell Company Entity Shell Company Entity Incorporation, State or Country Code Entity Incorporation State Country Code Entity Tax Identification Number Entity Tax Identification Number Entity Address, Address Line One Entity Address Address Line1 Entity Address, Address Line Two Entity Address Address Line2 Entity Address, City or Town Entity Address City Or Town Entity Address, State or Province Entity Address State Or Province Entity Address, Postal Zip Code Entity Address Postal Zip Code City Area Code City Area Code Local Phone Number Local Phone Number Leased Railcars for Syndication, at Carrying Value Intangible Assets, Net And Other Assets (Excluding Goodwill) Statement Of Financial Position [Abstract] Assets Assets [Abstract] Cash and cash equivalents Cash And Cash Equivalents At Carrying Value Restricted cash Restricted Cash And Cash Equivalents Accounts receivable, net Accounts Receivable Net Income tax receivable Income Taxes Receivable Inventories Inventory Net Leased railcars for syndication Leased Railcars For Syndication At Carrying Value Equipment on operating leases, net Property Subject To Or Available For Operating Lease Net Property, plant and equipment, net Property Plant And Equipment Net Investment in unconsolidated affiliates Equity Method Investments Intangibles and other assets, net Intangible Assets Net And Other Assets Excluding Goodwill Goodwill Goodwill Total assets Assets Liabilities and Equity Liabilities And Stockholders Equity [Abstract] Revolving notes Line Of Credit Accounts payable and accrued liabilities Accounts Payable And Accrued Liabilities Current And Noncurrent Deferred income taxes Deferred Income Tax Liabilities Net Deferred revenue Deferred Revenue Notes payable, net Notes Payable Commitments and contingencies (Note 14) Commitments And Contingencies Contingently redeemable noncontrolling interest Redeemable Noncontrolling Interest Equity Carrying Amount Equity: Stockholders Equity Including Portion Attributable To Noncontrolling Interest [Abstract] Greenbrier Stockholders Equity [Abstract] Preferred stock - without par value; 25,000 shares authorized; none outstanding Preferred Stock Value Common stock - without par value; 50,000 shares authorized; 32,825 and 32,701 shares outstanding at February 28, 2021 and August 31, 2020 Common Stock Value Additional paid-in capital Additional Paid In Capital Common Stock Retained earnings Retained Earnings Accumulated Deficit Accumulated other comprehensive loss Accumulated Other Comprehensive Income Loss Net Of Tax Total equity – Greenbrier Stockholders Equity Noncontrolling interest Minority Interest Total equity Stockholders Equity Including Portion Attributable To Noncontrolling Interest Liabilities and Equity Liabilities And Stockholders Equity Preferred stock, without par value Preferred Stock No Par Value Preferred stock, shares authorized Preferred Stock Shares Authorized Preferred stock, outstanding Preferred Stock Shares Outstanding Common stock, without par value Common Stock No Par Value Common stock, shares authorized Common Stock Shares Authorized Common stock, shares outstanding Common Stock Shares Outstanding Income Loss From Continuing Operations After Income Taxes And Before Equity In Earnings Of Unconsolidated Affiliates Income Statement [Abstract] Statement [Table] Statement [Table] Segments Statement Business Segments [Axis] Segments Segment [Domain] Manufacturing. Manufacturing Manufacturing [Member] Wheels repair and parts. Wheels, Repair & Parts Wheels Repair And Parts [Member] Leasing and Services [Member] Leasing & Services Leasing And Services [Member] Statement [Line Items] Statement [Line Items] Revenue Revenues [Abstract] Revenue Revenue From Contract With Customer Excluding Assessed Tax Cost of revenue Cost Of Revenue [Abstract] Cost of revenue Cost Of Revenue Margin Gross Profit Selling and administrative expense Selling General And Administrative Expense Net gain on disposition of equipment Gain Loss On Sale Of Other Assets Earnings (loss) from operations Operating Income Loss Other costs Nonoperating Income Expense [Abstract] Interest and foreign exchange Interest And Foreign Exchange Net Earnings (loss) before income tax and earnings (loss) from unconsolidated affiliates Income Loss From Continuing Operations Before Income Taxes Minority Interest And Income Loss From Equity Method Investments Income tax benefit (expense) Income Tax Expense Benefit Earnings (loss) before earnings (loss) from unconsolidated affiliates Income Loss From Continuing Operations After Income Taxes And Before Equity In Earnings Of Unconsolidated Affiliates Earnings (loss) from unconsolidated affiliates Income Loss From Equity Method Investments Net earnings (loss) Profit Loss Net (earnings) loss attributable to noncontrolling interest Net Income Loss Attributable To Noncontrolling Interest Net earnings (loss) attributable to Greenbrier Net Income Loss Basic earnings (loss) per common share Earnings Per Share Basic Diluted earnings (loss) per common share Earnings Per Share Diluted Weighted average common shares: Weighted Average Number Of Shares Outstanding [Abstract] Basic Weighted Average Number Of Shares Outstanding Basic Diluted Weighted Average Number Of Diluted Shares Outstanding Statement Of Income And Comprehensive Income [Abstract] Net earnings (loss) Other comprehensive income (loss) Other Comprehensive Income Loss Net Of Tax Period Increase Decrease [Abstract] Translation adjustment Other Comprehensive Income Foreign Currency Transaction And Translation Gain Loss Arising During Period Net Of Tax Reclassification of derivative financial instruments recognized in net earnings (loss) Other Comprehensive Income Loss Cash Flow Hedge Gain Loss Reclassification After Tax Unrealized loss on derivative financial instruments Other Comprehensive Income Loss Cash Flow Hedge Gain Loss Before Reclassification After Tax Other (net of tax effect) Other Comprehensive Income Other Net Of Tax Other comprehensive income Other Comprehensive Income Loss Net Of Tax Comprehensive income (loss) Comprehensive Income Net Of Tax Including Portion Attributable To Noncontrolling Interest Comprehensive (income) loss attributable to noncontrolling interest Comprehensive Income Net Of Tax Attributable To Noncontrolling Interest Comprehensive income (loss) attributable to Greenbrier Comprehensive Income Net Of Tax Reclassification of derivative financial instruments recognized in net earnings (loss), tax Other Comprehensive Income Loss Cash Flow Hedge Gain Loss Reclassification Tax Unrealized loss on derivative financial instruments, tax Other Comprehensive Income Loss Cash Flow Hedge Gain Loss Before Reclassification Tax Joint venture partner distribution declared Adjustments to Additional Paid in Capital, Unamortized Restricted Stock Statement Of Stockholders Equity [Abstract] Equity Components Statement Equity Components [Axis] Equity Component Equity Component [Domain] Common Stock Shares Common Stock [Member] Additional Paid-in Capital Additional Paid In Capital [Member] Retained Earnings Retained Earnings [Member] Accumulated Other Comprehensive (Loss) Accumulated Other Comprehensive Income [Member] Total Equity - Greenbrier Parent [Member] Noncontrolling Interest Noncontrolling Interest [Member] Equity Excluding Contingently Redeemable Noncontrolling Interest [Member] Equity Excluding Contingently Redeemable Noncontrolling Interest Equity Excluding Contingently Redeemable Noncontrolling Interest [Member] Redeemable Noncontrolling Interest [Member] Contingently Redeemable Noncontrolling Interest Redeemable Noncontrolling Interest [Member] Cumulative Effect, Period of Adoption Cumulative Effect Period Of Adoption [Axis] Cumulative Effect, Period of Adoption Cumulative Effect Period Of Adoption [Domain] Cumulative Effect Adjustment Due to Adoption Cumulative Effect Period Of Adoption Adjustment [Member] Beginning balance Beginning balance (in shares) Beginning balance Temporary Equity Carrying Amount Including Portion Attributable To Noncontrolling Interests Accounting Standards Update [Extensible List] Accounting Standards Update Extensible List Other comprehensive income (loss), net Noncontrolling interest adjustments Minority Interest Period Increase Decrease Joint venture partner distribution declared Joint Venture Partner Distribution Declared Noncontrolling interest acquired Noncontrolling Interest Increase From Business Combination Restricted stock awards (net of cancellations) Stock Issued During Period Value Restricted Stock Award Net Of Forfeitures Restricted stock awards (net of cancellations) (in shares) Stock Issued During Period Shares Restricted Stock Award Net Of Forfeitures Unamortized restricted stock Adjustments To Additional Paid In Capital Unamortized Restricted Stock Restricted stock amortization Adjustments To Additional Paid In Capital Sharebased Compensation Requisite Service Period Recognition Value Cash dividends Dividends Cash Ending balance Ending Balance (in shares) Ending Balance Net earnings (loss) Temporary Equity Net Income Cash dividend per share Common Stock Dividends Per Share Declared Noncontrolling Interest Adjustments Increase Decrease in Leased Railcars for Syndication Payments for (proceeds from) interest in subsidiaries and affiliates. Proceeds From Unconsolidated affiliates and other. Transfer of leased railcars for syndication and inventories to equipment on operating leases. Dividends Declared And Accrued In Accounts Payable And Accrued Liabilities Debt Conversion of Unconsolidated Subsidiary Note Receivable To Investment In Unconsolidated Subsidiary. Accounts payable and accrued liabilities associated with cash distributions to joint venture partner Balance Sheet Reconciliation [Abstract] Statement Of Cash Flows [Abstract] Cash flows from operating activities Net Cash Provided By Used In Operating Activities Continuing Operations [Abstract] Adjustments to reconcile net earnings (loss) to net cash used in operating activities: Adjustments To Reconcile Net Income Loss To Cash Provided By Used In Operating Activities [Abstract] Deferred income taxes Deferred Income Tax Expense Benefit Depreciation and amortization Depreciation Depletion And Amortization Accretion of debt discount Accretion Expense Stock based compensation expense Share Based Compensation Noncontrolling interest adjustments Noncontrolling Interest Adjustments Other Other Operating Activities Cash Flow Statement Decrease (increase) in assets: Increase Decrease In Operating Assets [Abstract] Accounts receivable, net Increase Decrease In Accounts Receivable Income tax receivable Increase Decrease In Income Taxes Receivable Inventories Increase Decrease In Inventories Leased railcars for syndication Increase Decrease In Leased Railcars For Syndication Other assets Increase Decrease In Other Operating Assets Increase (decrease) in liabilities: Increase Decrease In Operating Liabilities [Abstract] Accounts payable and accrued liabilities Increase Decrease In Accounts Payable And Accrued Liabilities Deferred revenue Increase Decrease In Contract With Customer Liability Net cash used in operating activities Net Cash Provided By Used In Operating Activities Cash flows from investing activities Net Cash Provided By Used In Investing Activities Continuing Operations [Abstract] Proceeds from sales of assets Proceeds From Sale Of Property Plant And Equipment Capital expenditures Payments To Acquire Productive Assets Investments in and advances to / repayments from unconsolidated affiliates Payments For Proceeds From Interest In Subsidiaries And Affiliates Cash distribution from unconsolidated affiliates and other Proceeds From Unconsolidated Affiliates And Other Net cash provided by (used in) investing activities Net Cash Provided By Used In Investing Activities Cash flows from financing activities Net Cash Provided By Used In Financing Activities Continuing Operations [Abstract] Net change in revolving notes with maturities of 90 days or less Proceeds From Repayments Of Short Term Debt Maturing In Three Months Or Less Proceeds from revolving notes with maturities longer than 90 days Proceeds From Short Term Debt Maturing In More Than Three Months Repayments of revolving notes with maturities longer than 90 days Repayments Of Short Term Debt Maturing In More Than Three Months Repayments of notes payable Repayments Of Notes Payable Dividends Payments Of Dividends Cash distribution to joint venture partner Payments Of Distributions To Affiliates Tax payments for net share settlement of restricted stock Payments Related To Tax Withholding For Share Based Compensation Net cash used in financing activities Net Cash Provided By Used In Financing Activities Effect of exchange rate changes Effect Of Exchange Rate On Cash Cash Equivalents Restricted Cash And Restricted Cash Equivalents Decrease in cash and cash equivalents and restricted cash Cash Cash Equivalents Restricted Cash And Restricted Cash Equivalents Period Increase Decrease Including Exchange Rate Effect Cash and cash equivalents and restricted cash Cash Cash Equivalents Restricted Cash And Restricted Cash Equivalents [Abstract] Cash and cash equivalents and restricted cash, Beginning balance Cash Cash Equivalents Restricted Cash And Restricted Cash Equivalents Cash and cash equivalents and restricted cash, Ending balance Balance sheet reconciliation Balance Sheet Reconciliation [Abstract] Restricted cash Cash paid during the period for Supplemental Cash Flow Information [Abstract] Interest Interest Paid Net Income taxes, net Income Taxes Paid Net Non-cash activity Cash Flow Noncash Investing And Financing Activities Disclosure [Abstract] Transfer from Leased railcars for syndication and Inventories to Equipment on operating leases, net Transfer Of Leased Railcars For Syndication And Inventories To Equipment On Operating Leases Capital expenditures accrued in Accounts payable and accrued liabilities Capital Expenditures Incurred But Not Yet Paid Change in Accounts payable and accrued liabilities associated with dividends declared Dividends Declared And Accrued In Accounts Payable And Accrued Liabilities Conversion of unconsolidated affiliate note receivable to Investment in unconsolidated affiliates Debt Conversion Of Unconsolidated Subsidiary Note Receivable To Investment In Unconsolidated Subsidiary Change in Accounts payable and accrued liabilities associated with cash distributions to joint venture partner Accounts Payable And Accrued Liabilities Associated With Cash Distributions To Joint Venture Partner Organization Consolidation And Presentation Of Financial Statements [Abstract] Interim Financial Statements Organization Consolidation And Presentation Of Financial Statements Disclosure [Text Block] Revenue From Contract With Customer [Abstract] Revenue Recognition Revenue From Contract With Customer [Text Block] Inventory Disclosure [Abstract] Inventories Inventory Disclosure [Text Block] Goodwill And Intangible Assets Disclosure [Abstract] Intangibles and Other Assets, net Intangible Assets Disclosure [Text Block] Line of Credit Facilities Debt Disclosure [Abstract] Revolving Notes Line Of Credit Facilities [Text Block] Payables And Accruals [Abstract] Accounts Payable and Accrued Liabilities Accounts Payable And Accrued Liabilities Disclosure [Text Block] Guarantees And Product Warranties [Abstract] Warranty Accruals Product Warranty Disclosure [Text Block] Equity [Abstract] Accumulated Other Comprehensive Loss Comprehensive Income Note [Text Block] Earnings Per Share [Abstract] Earnings (Loss) Per Share Earnings Per Share [Text Block] Disclosure Of Compensation Related Costs Sharebased Payments [Abstract] Stock Based Compensation Disclosure Of Compensation Related Costs Share Based Payments [Text Block] Derivative Instruments And Hedging Activities Disclosure [Abstract] Derivative Instruments Derivative Instruments And Hedging Activities Disclosure [Text Block] Segment Reporting [Abstract] Segment Information Segment Reporting Disclosure [Text Block] Information About Operating lease of Lessee and Lessor. Leases [Abstract] Leases Leases [Text Block] Commitments And Contingencies Disclosure [Abstract] Commitments and Contingencies Commitments And Contingencies Disclosure [Text Block] Fair Value Disclosures [Abstract] Fair Value Measures Fair Value Disclosures [Text Block] Related Party Transactions [Abstract] Related Party Transactions Related Party Transactions Disclosure [Text Block] Summary of Contract Balances Contract With Customer Asset And Liability Table [Text Block] Summary of Estimated Revenue Related to Performance Obligations Wholly or Partially Unsatisfied Revenue Remaining Performance Obligation Expected Timing Of Satisfaction Table [Text Block] Components of Inventories Schedule Of Inventory Current Table [Text Block] Intangible And Other Assets Identifiable Intangible and Other Assets Intangible And Other Assets Table [Text Block] Accounts Payable and Accrued Liabilities Schedule Of Accounts Payable And Accrued Liabilities Table [Text Block] Warranty Accrual Activity Schedule Of Product Warranty Liability Table [Text Block] Components of Accumulated Other Comprehensive Loss, Net of Tax Schedule Of Accumulated Other Comprehensive Income Loss Table [Text Block] Amounts Reclassified out of Accumulated Other Comprehensive Loss Reclassification Out Of Accumulated Other Comprehensive Income Table [Text Block] Reconciliation of Shares Used in Computation of Basic and Diluted Earnings (Loss) Per Common Share Schedule Of Weighted Average Number Of Shares Table [Text Block] Approach to Calculate Diluted Earning (Loss) per Share Schedule Of Earnings Per Share Diluted By Common Class [Text Block] Fair Values of Derivative Instruments Schedule Of Derivative Instruments In Statement Of Financial Position Fair Value [Text Block] Effect of Derivative Instruments on the Statements of Operations Schedule Of Derivative Instruments Gain Loss In Statement Of Financial Performance [Text Block] Schedule of effects of cash flow hedges included in statement of income. Effects of Cash Flow Hedges Included in Statements of Operations Schedule Of Effects Of Cash Flow Hedges Included In Statement Of Income Table [Text Block] Segments Internal Financial Reports Schedule Of Segment Reporting Information By Segment [Text Block] Reconciliation of Earnings (Loss) from Operations to Earnings (Loss) Before Income Tax and Earnings (Loss) from Unconsolidated Affiliates Reconciliation Of Operating Profit Loss From Segments To Consolidated [Text Block] Tabular disclosure of operating leases of lessor. Aggregate Minimum Future Amounts Receivable Under All Non-Cancelable Operating Leases and Subleases Operating Leases Of Lessor Table [Text Block] Components of Operating Lease Costs Lease Cost Table [Text Block] Aggregate Minimum Future Amounts Payable Under Operating Leases Lessee Operating Lease Liability Maturity Table [Text Block] Tabular disclosure of additional information relating to lease. Additional Information Related to Company's Leases Additional Information Relating To Lease Table [Text Block] Tabular disclosure of supplemental cash flow information related to operating leases. Supplemental Cash Flow Information Related to Leases Supplemental Cash Flow Information Related To Operating Leases Table [Text Block] Assets and Liabilities Measured at Fair Value on Recurring Basis Schedule Of Fair Value Assets And Liabilities Measured On Recurring Basis Table [Text Block] Class Of Treasury Stock [Table] Class Of Treasury Stock [Table] Accounting Standards Update Adjustments For New Accounting Pronouncements [Axis] Accounting Standards Update Type Of Adoption [Member] ASU 2016-13 Accounting Standards Update201613 [Member] Equity Class Of Treasury Stock [Line Items] Equity Class Of Treasury Stock [Line Items] Change in Accounting Principle, Accounting Standards Update, Adopted [true false] Change In Accounting Principle Accounting Standards Update Adopted Change in Accounting Principle, Accounting Standards Update, Immaterial Effect [true false] Change In Accounting Principle Accounting Standards Update Immaterial Effect Change in Accounting Principle, Accounting Standards Update, Adoption Date Change In Accounting Principle Accounting Standards Update Adoption Date Change In Contract With Customer Asset And Liability [Abstract] Contract with customer asset and liability Line items. Contract with customer asset and liability. Contract With Customer Asset And Liability [Table] Contract With Customer Asset And Liability [Table] Balance Sheet Location Balance Sheet Location [Axis] Balance Sheet Location Balance Sheet Location [Domain] Accounts Receivable Net. Accounts Receivable, Net Accounts Receivable Net [Member] Inventories Inventories [Member] Contract With Customer Asset And Liability [Line Items] Contract With Customer Asset And Liability [Line Items] Contract assets Contract With Customer Asset Net Contract liabilities Contract With Customer Liability Change in contract assets Increase Decrease In Contract With Customer Asset Change in contract liabilities Increase Decrease In Deferred Liabilities Revenue From Contract With Customers [Line Items] Revenue From Contract With Customers [Table] Revenue From Contract With Customers [Table] Revenue From Contract With Customers [Table] Product and Service Product Or Service [Axis] Product and Service Products And Services [Domain] Railcar sales. Railcar sales Rail Cars [Member] Services Service [Member] Revenue From Contract With Customers [Line Items] Revenue From Contract With Customers [Line Items] Revenue recognized from contract with customers liability Contract With Customer Liability Revenue Recognized Revenue Remaining Performance Obligation Expected Timing Of Satisfaction [Table] Revenue Remaining Performance Obligation Expected Timing Of Satisfaction [Table] Marine. Marine Marine [Member] Revenue Other Other Revenue Other [Member] Railcars for syndication. Railcars for Syndication Railcars For Syndication [Member] Revenue Remaining Performance Obligation Expected Timing Of Satisfaction [Line Items] Revenue Remaining Performance Obligation Expected Timing Of Satisfaction [Line Items] Revenue type 1 Revenue Remaining Performance Obligation Expected revenue recognized in the reminder of fiscal year Expected performance percentage Revenue Remaining Performance Obligation Percentage Manufacturing supplies and raw materials Inventory Raw Materials And Supplies Work-in-process Inventory Work In Process Finished goods Inventory Finished Goods Excess and obsolete adjustment Inventory Adjustments Inventories Intangibles and Other Assets by Major Class [Line Items] Intangibles and Other Assets by Major Class [Table] Intangibles And Other Assets By Major Class [Table] Intangibles And Other Assets By Major Class [Table] Finite-Lived Intangible Assets by Major Class Finite Lived Intangible Assets By Major Class [Axis] Finite-Lived Intangible Assets, Major Class Name Finite Lived Intangible Assets Major Class Name [Domain] Customer Relationships Customer Relationships [Member] Other Intangible Assets Other Intangible Assets [Member] Intangibles and Other Assets by Major Class [Line Items] Intangibles And Other Assets By Major Class [Line Items] Finite lived intangible assets gross Finite Lived Intangible Assets Gross Accumulated amortization Finite Lived Intangible Assets Accumulated Amortization Finite-Lived Intangible Assets, Net, Total Finite Lived Intangible Assets Net Intangible assets not subject to amortization Indefinite Lived Intangible Assets Excluding Goodwill Prepaid and other assets Prepaid Expense And Other Assets Operating lease ROU assets Operating Lease Right Of Use Asset Nonqualified savings plan investments Investments Fair Value Disclosure Revolving notes issuance costs, net Debt Issuance Costs Line Of Credit Arrangements Net Assets held for sale Assets Of Disposal Group Including Discontinued Operation Total Intangible and other assets, net Amortization expense Amortization Of Intangible Assets Future amortization expense, 2021 Finite Lived Intangible Assets Amortization Expense Remainder Of Fiscal Year Future amortization expense, 2022 Finite Lived Intangible Assets Amortization Expense Next Twelve Months Future amortization expense, 2023 Finite Lived Intangible Assets Amortization Expense Year Two Future amortization expense, 2024 Finite Lived Intangible Assets Amortization Expense Year Three Future amortization expense, 2025 Finite Lived Intangible Assets Amortization Expense Year Four Number of credit facility components. Line Of Credit Facility [Table] Line Of Credit Facility [Table] Credit Facility Credit Facility [Axis] Credit Facility Credit Facility [Domain] Senior Secured Credit Facilities, Consisting of 4 Components Line Of Credit [Member] Revolving Line of Credit, 1st Component of Senior Secured Credit Facilities Revolving Credit Facility [Member] Variable Rate Variable Rate [Axis] Variable Rate Variable Rate [Domain] LIBOR London Interbank Offered Rate L I B O R [Member] Prime Rate Prime Rate [Member] WIBOR [Member] WIBOR Wibor [Member] Euro Interbank Offered Rate. EURIBOR Euro Interbank Offered Rate [Member] European Line of Credit, 2nd Component of Senior Secured Credit Facilities Foreign Line Of Credit [Member] Statistical Measurement Range [Axis] Statistical Measurement Range [Member] Minimum Minimum [Member] Maximum Maximum [Member] Foreign Line Of Credit Two [Member] Mexican Railcar Manufacturing Operations Line of Credit, 3rd Component of Senior Secured Credit Facilities Foreign Line Of Credit Two [Member] Senior Secured Credit Facility Revolving Line Of Credit Component One [Member] Mexican Railcar Manufacturing Operations Line of Credit 1, 3rd Component of Senior Secured Credit Facilities Senior Secured Credit Facility Revolving Line Of Credit Component One [Member] Senior Secured Credit Facility Revolving Line Of Credit Component Two [Member] Mexican Railcar Manufacturing Operations Line of Credit 2, 3rd Component of Senior Secured Credit Facilities Senior Secured Credit Facility Revolving Line Of Credit Component Two [Member] Senior secured credit facility, revolving line of credit, component three. Mexican Railcar Manufacturing Operations Line of Credit 3, 3rd Component of Senior Secured Credit Facilities Senior Secured Credit Facility Revolving Line Of Credit Component Three [Member] Line of Credit Facility [Line Items] Line Of Credit Facility [Line Items] Number of senior secured credit facilities Number Of Credit Facility Components Line of credit facility maximum capacity Line Of Credit Facility Maximum Borrowing Capacity Line of Credit Maturity Month and Year Line of credit maturity date Line Of Credit Maturity Month And Year Debt instrument, percentage points added to the reference rate Debt Instrument Basis Spread On Variable Rate1 Long-term Line of Credit Number of Debt Instrument Line Of Credit Facility Expiration Month And Year Percentage Of Joint Venture Debt Guaranteed Number of lines of credits Number Of Debt Instrument Line of credit facility borrowings outstanding due period Line Of Credit Facility Expiration Month And Year Joint venture partner each guaranteed percentage Percentage Of Joint Venture Debt Guaranteed Letter of credit facility outstanding amount Letters Of Credit Outstanding Amount Borrowings Proceeds From Lines Of Credit Trade payables Accounts Payable Current And Noncurrent Other accrued liabilities Other Accrued Liabilities Current And Noncurrent Operating lease liabilities Operating Lease Liability Accrued payroll and related liabilities Employee Related Liabilities Current And Noncurrent Accrued warranty Product Warranty Accrual Accounts payable and accrued liabilities Balance at beginning of period Charged to cost of revenue, net Product Warranty Accrual Preexisting Increase Decrease Payments Product Warranty Accrual Payments Currency translation effect Standard And Extended Product Warranty Accrual Foreign Currency Translation Gain Loss Balance at end of period Accumulated Other Comprehensive Income Loss [Table] Accumulated Other Comprehensive Income Loss [Table] Unrealized Gain (Loss) on Derivative Financial Instruments Accumulated Gain Loss Cash Flow Hedge Including Noncontrolling Interest [Member] Foreign Currency Translation Adjustment Accumulated Foreign Currency Adjustment Including Portion Attributable To Noncontrolling Interest [Member] Other Accumulated Other Comprehensive Income [Member] Other Other Accumulated Other Comprehensive Income [Member] Accumulated Other Comprehensive Income (Loss) [Line Items] Accumulated Other Comprehensive Income Loss [Line Items] Beginning balance Other comprehensive loss before reclassifications Oci Before Reclassifications Net Of Tax Attributable To Parent Amounts reclassified from Accumulated other comprehensive loss Reclassification From Aoci Current Period Net Of Tax Attributable To Parent Ending balance Reclassification Out Of Accumulated Other Comprehensive Income [Table] Reclassification Out Of Accumulated Other Comprehensive Income [Table] Unrealized (Gain) Loss on Derivative Financial Instruments Reclassification out of Accumulated Other Comprehensive Income Reclassification Out Of Accumulated Other Comprehensive Income [Axis] Reclassification out of Accumulated Other Comprehensive Income Reclassification Out Of Accumulated Other Comprehensive Income [Domain] Reclassification out of Accumulated Other Comprehensive loss Reclassification Out Of Accumulated Other Comprehensive Income [Member] Derivative Instrument Derivative Instrument Risk [Axis] Derivative Contract Derivative Contract Type [Domain] Foreign Exchange Contracts Foreign Exchange Contract [Member] Interest rate swap contracts Interest Rate Swap [Member] Reclassification Adjustment out of Accumulated Other Comprehensive Income on Derivatives [Line Items] Reclassification Adjustment Out Of Accumulated Other Comprehensive Income On Derivatives [Line Items] Revenue and Cost of revenue Revenue And Cost Of Revenue Total before tax Income tax Net of tax Income Loss From Continuing Operations Including Portion Attributable To Noncontrolling Interest Earnings Per Share Disclosure [Line Items] Earnings Per Share Disclosure [Table] Earnings Per Share Disclosure [Table] Earnings Per Share Disclosure [Table] Debt Instrument Debt Instrument [Axis] Debt Instrument, Name Debt Instrument Name [Domain] Two Point Eight Seven Five Convertible Senior Notes Due 2024 2.875% Convertible Senior Notes Two Point Eight Seven Five Convertible Senior Notes Due2024 [Member] Two Point Two Five Convertible Senior Notes Due 2024 2.25% Convertible Senior Notes Two Point Two Five Convertible Senior Notes Due2024 [Member] Earnings Per Share Disclosure [Line Items] Earnings Per Share Disclosure [Line Items] Weighted average basic common shares outstanding Dilutive effect of convertible notes Incremental Common Shares Attributable To Conversion Of Debt Securities Dilutive effect of restricted stock units Incremental Common Shares Attributable To Share Based Payment Arrangements Weighted average diluted common shares outstanding Debt instrument, interest rate Debt Instrument Interest Rate Stated Percentage Net earnings (loss) attributable to Greenbrier Weighted average diluted common shares outstanding Derivative [Table] Derivative [Table] Derivative Instrument Maturity Derivative Instrument Maturity Derivative Instrument Maturity [Axis] Derivative Instrument Maturity Derivative Instrument Maturity Derivative Instrument Maturity [Domain] Derivatives Maturing On September Two Thousand Twenty Three Derivatives maturing on September 2023 Derivatives Maturing On September Two Thousand Twenty Three [Member] Derivatives Maturing On June Two Thousand Twenty Four Derivatives maturing on June 2024 Derivatives Maturing On June Two Thousand Twenty Four [Member] Derivative [Line Items] Derivative [Line Items] Aggregate derivative notional amount Derivative Notional Amount Amount reclassified to revenue or cost of revenue in the next year Foreign Currency Cash Flow Hedge Gain Loss To Be Reclassified During Next12 Months Derivative, Maturity Month and Year Maturity date Derivative Maturity Month And Year Unrealized pre-tax gain (loss) that would be reclassified to interest expense in the next year Derivative Instruments Gain Loss Reclassification From Accumulated O C I To Income Estimated Net Amount To Be Transferred Fair Values Derivatives Balance Sheet Location By Derivative Contract Type By Hedging Designation [Table] Fair Values Derivatives Balance Sheet Location By Derivative Contract Type By Hedging Designation [Table] Hedging Designation Hedging Designation [Axis] Hedging Designation Hedging Designation [Domain] Designated as Hedging Instrument Designated As Hedging Instrument [Member] Not Designated as Hedging Instrument Nondesignated [Member] Accounts Receivable Fair Value By Asset Class [Axis] Asset Class Fair Value Assets Measured On Recurring Basis Unobservable Input Reconciliation By Asset Class [Domain] Accounts Receivable Accounts Receivable [Member] Accounts Payable and Accrued Liabilities Accounts Payable And Accrued Liabilities [Member] Derivatives Fair Value [Line Items] Derivatives Fair Value [Line Items] Asset Derivatives Derivative Assets Liability Derivatives Derivative Liabilities Derivative Instruments Gain Loss By Hedging Relationship By Income Statement Location By Derivative Instrument Risk [Table] Derivative Instruments Gain Loss By Hedging Relationship By Income Statement Location By Derivative Instrument Risk [Table] Hedging Relationship Derivative Instruments Gain Loss By Hedging Relationship [Axis] Hedging Relationship Hedging Relationship [Domain] Cash Flow Hedging Cash Flow Hedging [Member] Foreign Exchange Forward Foreign Exchange Forward [Member] Income Statement Location Income Statement Location [Axis] Income Statement Location Income Statement Location [Domain] Interest and Foreign Exchange [Member] Interest and Foreign Exchange Interest And Foreign Exchange [Member] Sales Sales [Member] Cost Of Revenue [Member] Cost Of Revenue Cost Of Revenue [Member] Derivative Instruments, Gain (Loss) [Line Items] Derivative Instruments Gain Loss [Line Items] Gain (loss) recognized in income on derivatives Derivative Gain Loss On Derivative Net Gain (loss) recognized in OCI on derivatives Other Comprehensive Income Loss Cash Flow Hedge Gain Loss Before Reclassification And Tax Gain (loss) reclassified from accumulated OCI into income Derivative Instruments Gain Loss Reclassified From Accumulated O C I Into Income Effective Portion Net Gain (loss) recognized on derivative (amount excluded from effectiveness testing) Derivative Instruments Gain Loss Recognized In Income Ineffective Portion And Amount Excluded From Effectiveness Testing Net Cost of Sales Cost Of Sales [Member] Revenue Revenues Amount of gain (loss) on cash flow hedge activity Gain Loss On Cash Flow Hedge Ineffectiveness Net Number of reportable segments Number Of Reportable Segments Schedule Of Segment Reporting Information By Segment [Table] Schedule Of Segment Reporting Information By Segment [Table] Consolidation Items Consolidation Items [Axis] Consolidation Items Consolidation Items [Domain] Corporate, Non-Segment Corporate Non Segment [Member] Eliminations [member]. Eliminations Eliminations [Member] Intersegment Eliminations Intersegment Elimination [Member] Operating Segments Operating Segments [Member] Unallocated, including cash. Unallocated, including cash Unallocated Including Cash [Member] Segment Reporting Information [Line Items] Segment Reporting Information [Line Items] Earnings (loss) from operations Assets Earnings (loss) from operations Sublease period. Lessor and lessee lease, description. Lessor and lessee lease, description. Lessor And Lessee Lease Description [Table] Lessor And Lessee Lease Description [Table] Long-Lived Tangible Asset Property Plant And Equipment By Type [Axis] Long-Lived Tangible Asset Property Plant And Equipment Type [Domain] Equipment on Operating Lease Equipment Leased To Other Party [Member] Car Hire Utilization Arrangements Member. Car Hire Utilization Arrangements Car Hire Utilization Arrangements [Member] Lessor and Lessee, Lease, Description [Line Items] Lessor And Lessee Lease Description [Line Items] Accumulated depreciation Accumulated Depreciation Depletion And Amortization Property Plant And Equipment Depreciation expense Depreciation Sublease period Sublease Period Operating lease rental revenues Operating Lease Lease Income Lessor operating lease payments to be received after year four. Remaining six months of 2021 Lessor Operating Lease Payments To Be Received Remainder Of Fiscal Year 2022 Lessor Operating Lease Payments To Be Received Next Twelve Months 2023 Lessor Operating Lease Payments To Be Received Two Years 2024 Lessor Operating Lease Payments To Be Received Three Years 2025 Lessor Operating Lease Payments To Be Received Four Years Thereafter Lessor Operating Lease Payments To Be Received After Year Four Operating Leases, Future Minimum Payments Receivable, Total Lessor Operating Lease Payments To Be Received Operating Lease Remaining Lease Term. Financing lease remaining lease term Operating Lease Remaining Lease Term Finance lease option to extend Lessee Operating Lease Option To Extend Operating lease expense Operating Lease Cost Short-term lease expense Short Term Lease Cost Total Lease Cost Remaining six months of 2021 Lessee Operating Lease Liability Payments Remainder Of Fiscal Year 2022 Lessee Operating Lease Liability Payments Due Next Twelve Months 2023 Lessee Operating Lease Liability Payments Due Year Two 2024 Lessee Operating Lease Liability Payments Due Year Three 2025 Lessee Operating Lease Liability Payments Due Year Four Thereafter Lessee Operating Lease Liability Payments Due After Year Four Total lease payments Lessee Operating Lease Liability Payments Due Less: Imputed interest Lessee Operating Lease Liability Undiscounted Excess Amount Total lease obligations Operating Lease, Liability, Statement of Financial Position [Extensible List] Operating Lease Liability Statement Of Financial Position Extensible List Weighted average remaining lease term Operating Lease Weighted Average Remaining Lease Term1 Weighted average discount rate Operating Lease Weighted Average Discount Rate Percent Right of use asset obtained in exchange for operating lease liabilities. Cash Flow Operating Activities Lessee [Abstract] Operating cash flows from operating leases Operating Lease Payments ROU assets obtained in exchange for new operating lease liabilities Right Of Use Asset Obtained In Exchange For Operating Lease Liabilities Feasibility and Evaluation Costs Commitments and Contingencies Disclosure [Line Items] Commitments and Contingencies Disclosure [Table] Commitments And Contingencies Disclosure [Table] Commitments And Contingencies Disclosure [Table] Location 1 [Member] Portland Harbor Site Location One [Member] Guarantor Obligations, Nature Guarantee Obligations By Nature [Axis] Guarantor Obligations, Nature Guarantee Obligations Nature [Domain] Performance Guarantee Performance Guarantee [Member] Commitments and Contingencies Disclosure [Line Items] Commitments And Contingencies Disclosure [Line Items] Remedial investigation and feasibility study Feasibility And Evaluation Costs Number Of Sediment Decision Units Undiscounted costs for remedial alternatives. Remedial Action Time Frame. Monitoring Action Time Frame New data collection period to reflect actual cost prior to final remedy design. Accuracy Of Cost Estimate Number of sediment decision units Number Of Sediment Decision Units Estimated undiscounted cost Undiscounted Costs For Remedial Alternatives Period for remedial action Remedial Action Objective Time Frame Period for monitoring Monitoring Action Time Frame New data collection period to reflect actual cost prior to final remedy design New Data Collection Period To Reflect Actual Cost Prior To Final Remedy Design Accuracy of cost estimate Accuracy Of Cost Estimate Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Table] Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Table] Fair Value Hierarchy and NAV Fair Value By Fair Value Hierarchy Level [Axis] Fair Value Hierarchy and NAV Fair Value Measurements Fair Value Hierarchy [Domain] Fair Value, Inputs, Level 1 Fair Value Inputs Level1 [Member] Fair Value, Inputs, Level 2 Fair Value Inputs Level2 [Member] Fair Value, Inputs, Level 3 Fair Value Inputs Level3 [Member] Measurement Frequency Fair Value By Measurement Frequency [Axis] Measurement Frequency Fair Value Measurement Frequency [Domain] Fair Value, Measurements, Recurring Fair Value Measurements Recurring [Member] Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] Fair Value Assets And Liabilities Measured On Recurring And Nonrecurring Basis [Line Items] Assets: Assets Fair Value Disclosure [Abstract] Derivative financial instruments Cash equivalents Cash And Cash Equivalents Fair Value Disclosure Assets, Fair Value Disclosure, Total Assets Fair Value Disclosure Liabilities: Liabilities Fair Value Disclosure [Abstract] Derivative financial instruments Schedule Of Related Party Transactions By Related Party [Table] Schedule Of Related Party Transactions By Related Party [Table] Related Party Transaction Related Party Transaction [Axis] Related Party Transaction Related Party Transaction [Domain] Axis LLC Member. Axis LLC Axis Llc [Member] Railcar Components Member. Railcar Components Railcar Components [Member] Greenbrier. Greenbrier Greenbrier [Member] Lease Contractual Term Lease Contractual Term [Axis] Lease Contractual Term Lease Contractual Term [Domain] Leasing warehouse. Leasing Warehouse Leasing Warehouse [Member] Related Party Transaction [Line Items] Related Party Transaction [Line Items] Percentage of ownership in entity Equity Method Investment Ownership Percentage Purchases of goods from related party Related Party Transaction Purchases From Related Party Carrying amount of investment in unconsolidated affiliates Investments In Affiliates Subsidiaries Associates And Joint Ventures Revenue recognize from railcars sold Revenue From Related Parties