XML 12 R1.htm IDEA: XBRL DOCUMENT v3.23.2
Document And Entity Information
6 Months Ended
May 31, 2023
Document Information [Line Items]  
Entity Registrant Name KAYNE ANDERSON ENERGY INFRASTRUCTURE FUND, INC.
Document Type N-CSR
Amendment Flag false
Entity Central Index Key 0001293613
Document Period End Date May 31, 2023