QuickLinks -- Click here to rapidly navigate through this document


Exhibit 32.2

Certification of Chief Financial Officer
Pursuant to
Section 906 of the Sarbanes-Oxley Act of 2002 (18 U.S.C. 1350)

        In connection with the Quarterly Report of Main Street Capital Corporation (the "Registrant") on Form 10-Q for the quarter ended March 31, 2020 (the "Report"), as filed with the Securities and Exchange Commission on the date hereof, I, Brent D. Smith, the Chief Financial Officer of the Registrant, hereby certify, pursuant to 18 U.S.C. §1350, as adopted pursuant to §906 of the Sarbanes-Oxley Act of 2002, that:

  /s/ BRENT D. SMITH

  Name:   Brent D. Smith

  Date:   May 8, 2020



QuickLinks

Certification of Chief Financial Officer Pursuant to Section 906 of the Sarbanes-Oxley Act of 2002 (18 U.S.C. 1350)