Exhibit 23.1
Consent of Independent Registered Public Accounting Firm
We consent to the incorporation by reference in the registration statements (333-187887, 333-195058, 333-223315, 333-251916, and 333-278586) on Form S-8 of our reports dated October 24, 2024, with respect to the consolidated financial statements of The Greenbrier Companies, Inc. and the effectiveness of internal control over financial reporting.
/s/ KPMG LLP
Portland, Oregon
October 24, 2024