Exhibit 23.1
Consent of Independent Registered Public Accounting Firm
We consent to the incorporation by reference in the Registration Statement (Form S-8 No. 333-145581) pertaining to the GATX Corporation Salaried Employees Retirement Savings Plan of our report dated June 26, 2026, with respect to the financial statements and schedule of the GATX Corporation Salaried Employees Retirement Savings Plan included in this Annual Report (Form 11-K) for the year ended December 31, 2025.
/s/ Ernst & Young LLP
Chicago, Illinois
June 26, 2026