v3.26.1
Cover
May 29, 2026
Cover [Abstract]  
Document Type 8-K
Amendment Flag false
Document Period End Date May 29, 2026
Entity File Number 811-23247
Entity Registrant Name XAI Octagon Floating Rate & Alternative Income Trust
Entity Central Index Key 0001703079
Entity Tax Identification Number 82-2305867
Entity Incorporation, State or Country Code DE
Entity Address, Address Line One 321 North Clark Street
Entity Address, Address Line Two Suite 2430
Entity Address, City or Town Chicago
Entity Address, State or Province IL
Entity Address, Postal Zip Code 60654
City Area Code 312
Local Phone Number 374-6930
Written Communications false
Soliciting Material false
Pre-commencement Tender Offer false
Pre-commencement Issuer Tender Offer false
Title of 12(b) Security Common Shares of Beneficial Interest
Trading Symbol XFLT
Security Exchange Name NYSE
Entity Emerging Growth Company false