Exhibit (2)(n)(1)

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We hereby consent to the incorporation by reference in this Registration Statement on Form N-2 of Gladstone Capital Corporation of our report dated November 13, 2023 relating to the financial statements, financial statement schedule and senior securities table, which appears in Gladstone Capital Corporation’s Annual Report on Form 10-K for the year ended September 30, 2023. We also consent to the reference to us under the heading “Experts” in such Registration Statement.

/s/ PricewaterhouseCoopers LLP

Washington, DC

December 7, 2023