XML 5 R1.htm IDEA: XBRL DOCUMENT v3.23.1
Cover
Jun. 15, 2023
Cover [Abstract]  
Document Type 8-K
Amendment Flag false
Document Period End Date Jun. 15, 2023
Entity File Number 811-21593
Entity Registrant Name Kayne Anderson Energy Infrastructure Fund, Inc.
Entity Central Index Key 0001293613
Entity Tax Identification Number 56-2474626
Entity Incorporation, State or Country Code MD
Entity Address, Address Line One 811 Main Street
Entity Address, Address Line Two 14th Floor
Entity Address, City or Town Houston
Entity Address, State or Province TX
Entity Address, Postal Zip Code 77002
City Area Code 877
Local Phone Number 657-3863
Written Communications true
Soliciting Material false
Pre-commencement Tender Offer false
Pre-commencement Issuer Tender Offer false
Entity Emerging Growth Company false