v3.25.2
Net Income (Loss) Per Share Attributable to Common Stockholders (Tables)
6 Months Ended
Jun. 30, 2025
Earnings Per Share [Abstract]  
Schedule of the calculation of basic and diluted net loss per share attributable to common stockholders
The following table sets forth the calculation of basic and diluted net income (loss) per share attributable to common stockholders during the periods presented:
Three Months Ended
June 30,
Six Months Ended
June 30,
2025202420252024
Numerator:
Net income (loss) attributable to common stockholders
   (in thousands)
$22,423 $(31,858)$42,440 $(87,207)
Denominator:
Weighted-average shares outstanding, basic153,228,766 170,222,104 153,273,594 175,613,672 
Dilutive effect of outstanding stock options, RSUs, PSUs and
    stock committed under ESPP
6,462,992 — 7,456,044 — 
Weighted-average shares outstanding, diluted
159,691,758 170,222,104 160,729,638 175,613,672 
Net income (loss) per share attributable to common stockholders:
Basic
$0.15 $(0.19)$0.28 $(0.50)
Diluted
$0.14 $(0.19)$0.26 $(0.50)
Schedule of common stock equivalents excluded from the calculation of the diluted net loss per share attributable to common stockholders
The following outstanding shares of common stock equivalents were excluded from the calculation of the diluted net loss per share attributable to common stockholders because their effect would have been anti-dilutive:

Three Months Ended
June 30,
Six Months Ended
June 30,
2025202420252024
Stock options issued and outstanding414,972 1,529,641 145,350 1,529,641 
Unvested restricted stock units issued and outstanding(1)
4,458,044 22,542,340 4,261,767 22,542,340 
Shares of Class A common stock reserved for Twilio.org— 397,837 — 397,837 
Shares of Class A common stock committed under ESPP148,220 251,810 148,220 251,810 
Shares of Class A common stock in escrow subject to future vesting— 3,771 — 3,771 
Total5,021,236 24,725,399 4,555,337 24,725,399 
____________________________________
(1) A portion of these unvested restricted stock units are PSUs. The number of PSUs that will ultimately vest may increase or decrease the number of shares that will be issued at the end of the performance period.