QuickLinks -- Click here to rapidly navigate through this document


Exhibit 32.2

CERTIFICATION PURSUANT TO
SECTION 1350, CHAPTER 63 OF TITLE 18, UNITED STATES CODE,
AS ADOPTED PURSUANT TO
SECTION 906 OF THE SARBANES-OXLEY ACT OF 2002

       In connection with the accompanying Annual Report of Main Street Capital Corporation (the "Company") on Form 10-K for the year ended December 31, 2017 (the "Report"), I, Brent D. Smith, Chief Financial Officer and Treasurer of the Company, certify, pursuant to 18 U.S.C. §1350, as adopted pursuant to §906 of the Sarbanes-Oxley Act of 2002, that:

       (1)   The Report fully complies with the requirements of Section 13(a) or Section 15(d) of the Securities Exchange Act of 1934, as amended; and

       (2)   The information contained in the Report fairly presents, in all material respects, the financial condition and results of operations of the Company.

Date: February 23, 2018   By:   /s/ BRENT D. SMITH

Brent D. Smith
Chief Financial Officer and Treasurer



QuickLinks

CERTIFICATION PURSUANT TO SECTION 1350, CHAPTER 63 OF TITLE 18, UNITED STATES CODE, AS ADOPTED PURSUANT TO SECTION 906 OF THE SARBANES-OXLEY ACT OF 2002