Income taxes | Income taxes The components of income (loss) before provision for (benefit from) income taxes are as follows (in thousands): Year Ended December 31, 2024 2023 2022 United States $ 317,169 $ 20,713 $ 29,108 Foreign (29,564) (37,153) (115,052) Income (loss) before provision for (benefit from) income taxes $ 287,605 $ (16,440) $ (85,944) Provision for (benefit from) income taxes consists of the following (in thousands): Year Ended December 31, 2024 2023 2022 Current: Federal $ 7,671 $ 7,833 $ 1,681 State 10,533 6,698 7,385 Foreign 7,729 6,477 4,381 Total current tax expense 25,933 21,008 13,447 Deferred: Federal (1,434,298) 6 (1,861) State (162,684) 3 (356) Foreign (3,452) (1,847) (1,127) Total deferred tax expense (benefit) (1,600,434) (1,838) (3,344) Provision for (benefit from) income taxes $ (1,574,501) $ 19,170 $ 10,103 The difference between income taxes computed at the statutory federal income tax rate and the provision for (benefit from) income taxes is attributable to the following (in thousands): Year Ended December 31, 2024 2023 2022 Tax at U.S. statutory rate $ 60,397 $ (3,453) $ (18,048) State income taxes, net of benefit (120,204) 5,111 5,502 Foreign operations 12,007 17,721 29,855 Permanent book/tax differences 1,171 692 3,671 Share-based compensation (23,019) (18,925) (20,663) Change in valuation allowance (1,421,323) 111,497 62,048 Tax credits (83,587) (93,887) (52,319) Other 57 414 57 Provision for (benefit from) income taxes $ (1,574,501) $ 19,170 $ 10,103 The primary difference between our benefit from income taxes and the expected tax at the US federal statutory rate is the release of our valuation allowance on our U.S. federal and state, excluding California, deferred tax assets for the year ended December 31, 2024. The primary difference between our provision for income taxes and the expected tax at the US federal statutory rate is the full valuation allowance we have established on our federal, state and foreign net operating losses and credits and for the years ended December 31, 2023 and December 31, 2022. All periods presented include the effects of the capitalization and amortization of research and development expenses as required by the 2017 Tax Cuts and Jobs Act. Significant components of our deferred tax assets and liabilities are as follows (in thousands): December 31, 2024 2023 Deferred tax assets: Net operating loss carryforwards $ 524,598 $ 751,273 Research tax credits 677,104 570,061 Reserves, accruals, and other 33,312 26,855 Lease obligation 41,493 44,676 Share-based compensation 33,793 30,146 Research capitalization and amortization 623,368 411,113 Total deferred tax assets 1,933,668 1,834,124 Less: valuation allowance (322,070) (1,821,027) Deferred tax assets, net of valuation allowance 1,611,598 13,097 Deferred tax liabilities: Depreciation and amortization (6,394) (7,467) Prepaid expenses (2,665) (2,682) Total deferred tax liabilities (9,059) (10,149) Deferred tax assets (liabilities) $ 1,602,539 $ 2,948 We regularly assess the need for a valuation allowance on our deferred tax assets. Based on our analysis of both positive and negative evidence, we concluded that it is more likely than not that our U.S. federal and state, excluding California, deferred tax assets will be realizable due to our demonstrated sustained profitability and continued forecasted income. We continue to maintain a valuation allowance on our California deferred tax assets due to uncertainty regarding realizability of these deferred tax assets. As a result of the valuation allowance release, we recognized a deferred tax benefit of $1,597.0 million for U.S. federal and state, excluding California, deferred tax assets for December 31, 2024. The decrease of $1,499.0 million in valuation allowance compared to December 31, 2023 was also primarily driven by the release. Due to our history of losses, we believe it is more likely than not that our Irish deferred tax assets will not be realized as of December 31, 2024. Accordingly, we continue to maintain a valuation allowance on our Irish deferred tax assets. As of December 31, 2024, we had federal, California and other state net operating loss carryforwards of $1,909.5 million, $554.3 million and $1,549.9 million, respectively. Our federal carryforwards do not expire. If not utilized, our California and other state carryforwards will begin to expire in 2028 and 2025, respectively. Utilization of our net operating loss carryforwards may be subject to annual limitations due to the ownership change limitations provided by Section 382 of the Internal Revenue Code and similar state provisions. Our net operating loss carryforwards could expire before utilization if subject to annual limitations. As of December 31, 2024, we had $202.0 million and $7.3 million of Irish and Other Foreign net operating loss carryforwards, respectively, that can be carried forward indefinitely. As of December 31, 2024, we had federal, California, and foreign research and development credit carryforwards of $603.8 million, $428.9 million and $1.8 million , respectively. If not utilized, our federal and foreign carryforwards will begin to expire in 2039 and 2043, respectively. Our California carryforwards do not expire. Changes in gross unrecognized tax benefits were as follows (in thousands): Gross Unrecognized Tax Benefits Balance as of December 31, 2022 $ 239,938 Increases for tax positions of prior years 3,736 Decreases for tax positions of prior years (119) Increases for tax positions of current year 44,377 Audit settlement (37,027) Balance as of December 31, 2023 $ 250,905 Increases for tax positions of prior years 6,545 Decreases for tax positions of prior years (196) Increases for tax positions of current year 56,819 Audit settlement — Balance as of December 31, 2024 $ 314,073 Recognizing the $314.1 million of gross unrecognized tax benefits we had as of December 31, 2024 would affect our effective tax rate by $178.3 million. The remaining $135.8 million of gross unrecognized tax benefits would be offset by the reversal of related deferred tax assets, which primarily are subject to a full valuation allowance. We do not expect our gross unrecognized tax benefits to change significantly within the next 12 months. We recognize interest and penalties related to uncertain tax positions in provision for income taxes. Accrued interest and penalties are not material as of December 31, 2024 and 2023. We are subject to taxation in the U.S. and various other state and foreign jurisdictions. As we have net operating loss carryforwards for U.S. federal and state jurisdictions, the statute of limitations is ope |