v3.25.2
Net Income (Loss) Per Share
12 Months Ended
Jun. 30, 2025
Earnings Per Share [Abstract]  
Net Income (Loss) Per Share

16. Net Income (Loss) Per Share

Basic net income (loss) per share is calculated by dividing net income (loss) by the weighted average number of shares of common stock outstanding during the period. Diluted income (loss) per share is calculated by dividing net income (loss) by the weighted average number of shares of common stock used in the basic net income (loss) per share calculation plus the dilutive effect of any shares subject to repurchase, options and unvested RSUs.

The following table presents the calculation of basic and diluted net income (loss) per share (in thousands, except per share data):

 

 

Year Ended

 

 

 

June 30,
2025

 

 

June 30,
2024

 

 

June 30,
 2023

 

Net income (loss)

 

$

(7,467

)

 

$

(85,964

)

 

$

78,074

 

Weighted-average shares used in per share calculation – basic

 

 

132,331

 

 

 

129,288

 

 

 

129,473

 

Options to purchase common stock

 

 

 

 

 

 

 

 

708

 

Restricted stock units

 

 

 

 

 

 

 

 

3,468

 

Weighted-average shares used in per share calculation – diluted

 

 

132,331

 

 

 

129,288

 

 

 

133,649

 

 

 

 

 

 

 

 

 

 

 

Net income (loss) per share – basic and diluted

 

 

 

 

 

 

 

 

 

Net income (loss) per share – basic

 

$

(0.06

)

 

$

(0.66

)

 

$

0.60

 

Net income (loss) per share – diluted

 

$

(0.06

)

 

$

(0.66

)

 

$

0.58

 

Potentially dilutive shares of common stock from employee incentive plans are determined by applying the treasury stock method to the assumed exercise of outstanding stock options, the assumed vesting of outstanding RSUs, and the assumed issuance of common stock under the ESPP.

The following securities were excluded from the computation of net income (loss) per diluted share of common stock for the periods presented as their effect would have been anti-dilutive (in thousands):

 

 

 

 

 

Year Ended

 

 

 

 

 

 

June 30,
2025

 

 

June 30,
2024

 

 

June 30,
 2023

 

Options to purchase common stock

 

 

841

 

 

 

1,126

 

 

 

 

Restricted stock units

 

 

5,419

 

 

 

5,946

 

 

 

153

 

Employee Stock Purchase Plan shares

 

 

216

 

 

 

193

 

 

 

181

 

Total shares excluded

 

 

6,476

 

 

 

7,265

 

 

 

334