13. Net Income (Loss) per Share
The following table sets forth basic and diluted income (loss) per share for each of the periods presented (in thousands, except per share data):
Fiscal Year Ended January 31,
202520242023
Numerator:
Net loss attributable to GitLab$(6,326)$(425,677)$(173,407)
Denominator:
Weighted-average shares used to compute net loss per share attributable to GitLab Class A and Class B common stockholders, basic and diluted160,580 154,283 148,407 
Net loss per share attributable to GitLab Class A and Class B common stockholders, basic and diluted$(0.04)$(2.76)$(1.17)
Potentially dilutive securities that were not included in the diluted per share calculations because they would be anti-dilutive were as follows (in thousands):
As of
January 31, 2025January 31, 2024January 31, 2023
Shares subject to outstanding common stock options5,896 8,503 12,686 
Unvested restricted stock in connection with business combination
Unvested early exercised stock options22 194 
Unvested RSUs and PSUs8,743 10,930 8,336 
Shares subject to the ESPP55 63 81 
Total 14,698 19,521 21,305 

About Earnings Per Share Disclosures

The earnings per share disclosure breaks down the calculation from net income to both basic and diluted EPS, revealing the full impact of a company's capital structure on per-share economics. The reconciliation between basic and diluted share counts exposes how many stock options, RSUs, convertible securities, and warrants are potentially dilutive to existing shareholders.

Key signals: a widening gap between basic and diluted shares indicates growing dilution from equity compensation or convertible instruments. Anti-dilutive securities excluded from the diluted calculation deserve attention — they represent latent dilution that will materialize if the stock price rises. Watch for the effect of share buybacks on per-share metrics: EPS growth driven primarily by repurchases rather than income growth signals weakening fundamentals. Compare year-over-year changes in the diluted share count against equity compensation expense to assess whether management is effectively managing dilution.