v3.25.0.1
Stock-Based Compensation - Additional Information (Detail) - USD ($)
$ / shares in Units, $ in Millions
1 Months Ended 12 Months Ended
May 23, 2024
Jan. 01, 2024
Apr. 30, 2021
Dec. 31, 2024
Dec. 31, 2023
Feb. 29, 2024
Jul. 31, 2019
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Share-Based Compensation Arrangement by Share-Based Payment Award, Terms of Award       The 2018 Amended Plan provides for the grant of incentive stock options, nonqualified stock options, stock appreciation rights, restricted stock awards, restricted stock units, unrestricted stock awards, cash-based awards, and dividend equivalent rights. The 2018 Amended Plan is administered by either the board of directors or the compensation committee of the board of directors. The exercise prices, vesting and other restrictions are determined at the discretion of the administrator, except that the term of stock options and stock appreciation rights may not be greater than ten years (or five years for certain incentive stock options). Awards typically vest over 12 months to four years. The exercise price for stock options granted may not be less than the fair value of common stock as of the date of grant (or 110% of the fair value of common stock for certain incentive stock options). The fair value of common stock is based on quoted market prices.The 2018 Amended Plan also provides for the assumption of shares remaining available for delivery under the 2019 Stock Plan (as defined below) pursuant to the terms of the Reverse Merger, and such shares will be available for the granting of awards under the 2018 Incentive Plan in accordance with applicable stock exchange requirements. The Company also has outstanding stock options under the Magenta Therapeutics, Inc. 2016 Stock Option and Grant Plan, as amended (the “2016 Plan”), but is no longer granting awards under the 2016 Plan.      
Weighted average fair value of stock options granted       $ 16.16      
Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Grants in Period, Gross       3,017,800      
Number of Shares, Options vested and expected to vest as of September 30, 2023       1,491,145      
Warrant [Member]              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Common stock exercise price     $ 1.65        
Vesting period       6 years 3 months 18 days      
Warrants issued     4,677        
Warrant per grant date fair value     $ 1.16        
Stock Options and Stock Appreciation Rights [Member] | Maximum [Member]              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Term of award       10 years      
2018 Stock Option and Incentive Plan [Member]              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Total unrecognized stock-based compensation expense related to unvested share-based awards       $ 41.5      
Period for recognition of unrecognized expense       3 years      
Number of shares reserved and available for issuance increment percentage 4.00%     5.00%      
Additional number of shares reserved and available for issuance   592,707          
2019 Employee Stock Purchase Plan [Member]              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Share-Based Compensation Arrangement by Share-Based Payment Award, Terms of Award       The ESPP provides that the number of shares reserved and available for issuance under the ESPP will automatically increase each January 1 through January 1, 2029, by the lesser of (i) 1% of the number of shares issued and outstanding on the immediately preceding December 31, (ii) 62,500 shares or (iii) such number of shares as determined by the Company’s board of directors or its appointed administrator. The number of shares reserved for issuance under the ESPP was increased by 62,500 on January 1, 2024.      
Shares available for issuance       99,578      
Percentage of purchase price of common stock under the ESPP       85.00%      
Common stock purchased       0 0    
Additional number of shares reserved and available for issuance   62,500          
2019 Employee Stock Purchase Plan [Member] | Minimum [Member]              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Number of shares reserved and available for issuance increment percentage       1.00%      
Additional number of shares reserved and available for issuance         62,500    
2018 Amended Plan [Member]              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Shares available for issuance       1,825,501      
Percentage of purchase price of common stock under the ESPP       110.00%      
Number of shares reserved and available for issuance increment percentage       5.00%      
Additional number of shares reserved and available for issuance 2,931,820            
2018 Amended Plan [Member] | Stock Options and Stock Appreciation Rights [Member] | Minimum [Member]              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Vesting period       12 months      
2018 Amended Plan [Member] | Stock Options and Stock Appreciation Rights [Member] | Maximum [Member]              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Vesting period       4 years      
2018 Amended Plan [Member] | Certain Incentive Stock Options [Member] | Maximum [Member]              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Term of award       5 years      
2019 Stock Plan [Member]              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Number of Shares, Options vested and expected to vest as of September 30, 2023             1,273,454
Inducement Plan [Member]              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Shares available for issuance       92,000      
Share-Based Compensation Arrangement by Share-Based Payment Award, Options, Grants in Period, Gross         96,000    
Inducement Plan [Member] | Maximum [Member]              
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]              
Share-Based Compensation Arrangement by Share-Based Payment Award, Number of Shares Authorized           300,000