v3.26.1
N-2 - $ / shares
6 Months Ended
Jun. 30, 2026
Dec. 31, 2025
Jun. 30, 2025
Dec. 31, 2024
Cover [Abstract]        
Entity Central Index Key 0001278752      
Amendment Flag false      
Securities Act File Number 814-00646      
Document Type 10-Q      
Entity Registrant Name MIDCAP FINANCIAL INVESTMENT CORPORATION      
Entity Address, Address Line One 9 West 57th Street      
Entity Address, City or Town New York      
Entity Address, State or Province NY      
Entity Address, Postal Zip Code 10019      
City Area Code 212      
Local Phone Number 515-3200      
Entity Emerging Growth Company false      
General Description of Registrant [Abstract]        
Investment Objectives and Practices [Text Block]

Our investment objective is to generate current income and, to a lesser extent, long-term capital appreciation. We primarily invest in directly originated and privately negotiated first lien senior secured loans to privately held U.S. middle-market companies, which the Company generally defines as companies with less than $75 million in EBITDA, as may be adjusted for market disruptions, mergers and acquisitions-related charges and synergies, and other items. To a lesser extent, we may invest in other types of securities including, first lien unitranche, second lien senior secured, unsecured, subordinated, and mezzanine loans, and equities in both private and public middle market companies.

     
Risk Factors [Table Text Block]

Item 1A. Risk Factors

In addition to the other information set forth in this report, you should carefully consider the risk factors discussed in Part I, “Item 1A. Risk Factors” in our Annual Report on Form 10-K for the fiscal year ended December 31, 2025 and in Part II, “Item 1A. Risk Factors” in our Quarterly Report on Form 10-Q for the quarter ended March 31, 2026, which could materially affect our business, financial condition and/or operating results. These risks are not the only risks facing our Company. Additional risks and uncertainties not currently known to us or that we currently deem to be immaterial also may materially and adversely affect our business, financial condition and/or operating results.

     
NAV Per Share [1] $ 13.37 $ 14.18 $ 14.75 $ 14.98
[1] Totals may not foot due to rounding.