v3.26.1
Employee Stock Benefit Plans (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2026
Jun. 30, 2025
Employee Stock Benefit Plans        
Total share-based compensation expense included in operating expenses $ 3,236 $ 4,524 $ 6,889 $ 9,815
Income tax expense (benefit) (846) (532) 705 2,909
Total share-based compensation expense, net of tax 2,390 3,992 7,594 12,724
Location, Statement of Income, Balance [Axis]: us-gaap:ResearchAndDevelopmentExpense        
Employee Stock Benefit Plans        
Total share-based compensation expense included in operating expenses 1,519 1,398 2,970 2,888
Location, Statement of Income, Balance [Axis]: us-gaap:SellingGeneralAndAdministrativeExpense        
Employee Stock Benefit Plans        
Total share-based compensation expense included in operating expenses $ 1,717 $ 3,126 $ 3,919 6,828
Location, Statement of Income, Balance [Axis]: irwd:RestructuringExpenseBenefit        
Employee Stock Benefit Plans        
Total share-based compensation expense included in operating expenses       $ 99