| Net Income (Loss) per Share |
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): | | | | | | | | | | | | | | | | | | | | | | | | | | | Three Months Ended October 31, | | Nine Months Ended October 31, | | 2024 | | 2023 | | 2024 | | 2023 | | | | Numerator: | | | | | | | | | | | Net income (loss) attributable to GitLab | $ | 29,565 | | | $ | (285,158) | | | $ | (12,130) | | | $ | (387,707) | | | | | | | | | | | | | | | Denominator: | | | | | | | | | | | Weighted-average shares used to compute net income (loss) per share attributable to GitLab Class A and Class B common stockholders, basic | 161,317 | | | 155,123 | | | 159,756 | | | 153,504 | | | | | Dilutive impact of Stock Options | 4,897 | | | — | | | — | | | — | | | | | Dilutive impact of RSUs | 1,102 | | | — | | | — | | | — | | | | | Dilutive impact of ESPP | 98 | | | — | | | — | | | — | | | | | Dilutive impact of common stock in connection with business combination | 22 | | | — | | | — | | | — | | | | | Weighted-average shares used to compute net income (loss) per share attributable to GitLab Class A and Class B common stockholders, diluted | 167,436 | | | 155,123 | | | 159,756 | | | 153,504 | | | | | Net income (loss) per share attributable to GitLab Class A and Class B common stockholders, basic | $ | 0.18 | | | $ | (1.84) | | | $ | (0.08) | | | $ | (2.53) | | | | | Net income (loss) per share attributable to GitLab Class A and Class B common stockholders, diluted | $ | 0.18 | | | $ | (1.84) | | | $ | (0.08) | | | $ | (2.53) | | | |
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 | | | | | | | | October 31, 2024 | | October 31, 2023 | | | | Shares subject to outstanding common stock options | — | | | 9,454 | | | | | Unvested restricted stock in connection with business combination | 2 | | | 3 | | | | | Unvested early exercised stock options | — | | | 41 | | | | | Unvested RSUs and PSUs | 6,377 | | | 11,432 | | | | | Shares subject to the ESPP | 219 | | | 152 | | | | | | | | | | | | | | | | | Total | 6,598 | | | 21,082 | | | | | | | | | |
|