XML 17 R1.htm IDEA: XBRL DOCUMENT v3.19.1
Document and Entity Information - shares
3 Months Ended
Mar. 31, 2019
May 05, 2019
Document And Entity Information [Abstract]    
Document Type 10-Q  
Amendment Flag false  
Document Period End Date Mar. 31, 2019  
Document Fiscal Year Focus 2019  
Document Fiscal Period Focus Q1  
Trading Symbol XFOR  
Entity Registrant Name X4 PHARMACEUTICALS, INC.  
Entity Central Index Key 0001501697  
Current Fiscal Year End Date --12-31  
Entity Filer Category Non-accelerated Filer  
Entity Small Business true  
Entity Emerging Growth Company true  
Entity Ex Transition Period true  
Entity Common Stock, Shares Outstanding   12,420,778