| 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 July 31, | | Six Months Ended July 31, | | 2024 | | 2023 | | 2024 | | 2023 | | | | Numerator: | | | | | | | | | | | Net income (loss) attributable to GitLab | $ | 12,949 | | | $ | (50,080) | | | $ | (41,695) | | | $ | (102,549) | | | | | | | | | | | | | | | Denominator: | | | | | | | | | | | Weighted-average shares used to compute net income (loss) per share attributable to GitLab Class A and Class B common stockholders, basic | 159,677 | | | 153,644 | | | 158,973 | | | 152,683 | | | | | 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 | 166,346 | | | 153,644 | | | 158,973 | | | 152,683 | | | | | Net income (loss) per share attributable to GitLab Class A and Class B common stockholders, basic | $ | 0.08 | | | $ | (0.33) | | | $ | (0.26) | | | $ | (0.67) | | | | | Net income (loss) per share attributable to GitLab Class A and Class B common stockholders, diluted | $ | 0.08 | | | $ | (0.33) | | | $ | (0.26) | | | $ | (0.67) | | | |
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, 2024 | | July 31, 2023 | | | | Shares subject to outstanding common stock options | — | | | 9,933 | | | | | Unvested restricted stock in connection with business combination | 2 | | | 3 | | | | | Unvested early exercised stock options | — | | | 63 | | | | | Unvested RSUs and PSUs | 6,917 | | | 11,465 | | | | | Shares subject to the ESPP | 222 | | | 71 | | | | | | | | | | | | | | | | | Total | 7,141 | | | 21,535 | | | | | | | | | |
|