v3.25.2
Cover
Jun. 24, 2025
Cover [Abstract]  
Document Type 8-K
Amendment Flag false
Document Period End Date Jun. 24, 2025
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 717 Texas Avenue
Entity Address, Address Line Two Suite 2200
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 false
Soliciting Material false
Pre-commencement Tender Offer false
Pre-commencement Issuer Tender Offer false
Title of 12(b) Security Common Stock, par value $0.001
Trading Symbol KYN
Security Exchange Name NYSE
Entity Emerging Growth Company false