v3.26.1
Net Income (Loss) Per Share, Basic and Diluted
6 Months Ended
Aug. 01, 2026
Earnings Per Share [Abstract]  
Net Income (Loss) Per Share, Basic and Diluted Net Income (Loss) Per Share, Basic and Diluted
For purposes of calculating net income (loss) per share, the Company uses the two-class method. As Class A, Class B, and Class C common stock have identical liquidation and dividend rights, the undistributed earnings are allocated on a proportionate basis to each class of common stock. As a result, the basic and diluted net income (loss) per share are the same for all classes of Samsara’s common stock, on both an individual and combined basis, and therefore are presented together.
Basic net income (loss) per share is computed by dividing net income (loss) by the weighted-average number of shares of common stock outstanding during the period. Diluted net income (loss) per share is computed by dividing net income (loss) by the weighted-average number of shares of common stock outstanding during the period, adjusted for the effects of dilutive shares of common stock, which consist of outstanding stock options, RSUs, and ESPP obligations. The potentially dilutive shares of common stock are computed using the treasury stock method. The effects of outstanding stock options, RSUs, and ESPP obligations are excluded from the computation of diluted net income (loss) per share in periods in which the effect would be antidilutive.
The following table presents the calculation of basic and diluted net income (loss) per share (in thousands, except share and per share data):
Three Months EndedSix Months Ended
August 1, 2026August 2, 2025August 1, 2026August 2, 2025
Numerator:
Net income (loss)$16,242 $(16,800)$60,750$(38,921)
Denominator:
Weighted-average shares used in computing net income (loss) per share, basic584,135,703 571,738,084 582,985,810569,739,406
Weighted-average effect of potentially dilutive securities:
Outstanding stock options4,483,304 — 4,427,346
RSUs1,843,150 — 1,654,836
Employee stock purchase plan obligations2,508 — 1,562
Weighted-average shares used in computing net income (loss) per share, diluted590,464,665 571,738,084 589,069,554569,739,406
Net income (loss) per share, basic and diluted$0.03 $(0.03)$0.10$(0.07)
The following potentially dilutive securities were excluded from the computation of diluted net income (loss) per share calculations for the periods presented because the impact of including them would have been antidilutive:
Three Months EndedSix Months Ended
August 1, 2026August 2, 2025August 1, 2026August 2, 2025
Outstanding stock options— 5,599,181 5,599,181
RSUs4,895,223 21,041,298 13,907,944 21,041,298
Employee stock purchase plan obligations852,138 660,406 852,138660,406
Total antidilutive securities5,747,361 27,300,885 14,760,082 27,300,885