EX-23.1
Published on March 9, 2011
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-141827) pertaining to the Triangle Capital Corporation 2007 Equity Incentive Plan, as amended,
of our reports dated March 9, 2011, with respect to the consolidated financial statements and
financial highlights and the effectiveness of internal control over financial reporting of Triangle
Capital Corporation, included in the Annual Report (Form 10-K) for the year ended December 31,
2010.
/s/ Ernst & Young LLP
Raleigh, North Carolina
March 9, 2011
March 9, 2011