v3.24.2.u1
Cover - shares
6 Months Ended
Jun. 30, 2024
Aug. 07, 2024
Cover [Abstract]    
Document Type 10-Q  
Document Quarterly Report true  
Document Period End Date Jun. 30, 2024  
Document Transition Report false  
Entity File Number 001-36376  
Entity Registrant Name 2U, INC.  
Entity Incorporation, State or Country Code DE  
Entity Tax Identification Number 26-2335939  
Entity Address, Address Line One 7900 Harkins Road  
Entity Address, City or Town Lanham,  
Entity Address, State or Province MD  
Entity Address, Postal Zip Code 20706  
City Area Code 301  
Local Phone Number 892-4350  
Title of 12(b) Security Common stock, $0.001 par value per share  
Trading Symbol TWOU  
Security Exchange Name NASDAQ  
Entity Current Reporting Status Yes  
Entity Interactive Data Current Yes  
Entity Filer Category Accelerated Filer  
Entity Small Business false  
Entity Emerging Growth Company false  
Entity Shell Company false  
Entity Common Stock, Shares Outstanding   2,858,478
Entity Central Index Key 0001459417  
Amendment Flag false  
Current Fiscal Year End Date --12-31  
Document Fiscal Year Focus 2024  
Document Fiscal Period Focus Q2