| Net Income (Loss) per Share |
12. 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): | | | | | | | | | | | | | | | | | | | | | | | | | | | Three Months Ended July 31, | | Six Months Ended July 31, | | 2025 | | 2024 | | 2025 | | 2024 | | | | Numerator: | | | | | | | | | | | Net income (loss) attributable to GitLab | $ | (9,208) | | | $ | 12,912 | | | $ | (45,083) | | | $ | (42,321) | | | | | | | | | | | | | | | Denominator: | | | | | | | | | | | Weighted-average shares used to compute net income (loss) per share attributable to GitLab Class A and Class B common stockholders, basic | 165,953 | | | 159,677 | | | 165,233 | | | 158,973 | | | | | Dilutive impact of Stock Options | — | | | 5,452 | | | — | | | — | | | | | | | | | | | | | | | Dilutive impact of RSUs | — | | | 1,166 | | | — | | | — | | | | | Dilutive impact of ESPP | — | | | 51 | | | — | | | — | | | | | | | | | | | | | | | Weighted-average shares used to compute net income (loss) per share attributable to GitLab Class A and Class B common stockholders, diluted | 165,953 | | | 166,346 | | | 165,233 | | | 158,973 | | | | | Net income (loss) per share attributable to GitLab Class A and Class B common stockholders, basic | $ | (0.06) | | | $ | 0.08 | | | $ | (0.27) | | | $ | (0.27) | | | | | Net income (loss) per share attributable to GitLab Class A and Class B common stockholders, diluted | $ | (0.06) | | | $ | 0.08 | | | $ | (0.27) | | | $ | (0.27) | | | |
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 | | | | | | | | July 31, 2025 | | July 31, 2024 | | | | Shares subject to outstanding common stock options | 5,226 | | | — | | | | | Unvested restricted stock in connection with business combination | — | | | 2 | | | | | | | | | | | Unvested RSUs and PSUs | 9,944 | | | 6,917 | | | | | Shares subject to the ESPP | 66 | | | 222 | | | | | | | | | | | | | | | | | Total | 15,236 | | | 7,141 | | | | | | | | | |
|