v3.24.0.1

Stockholders' Equity (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2023
Equity [Abstract] |
Schedule of Reserved Shares of Common Stock for Issuance | As of December 31, 2023, the Company’s common stock reserved for issuance in the future is as follows (in thousands):
Common stock awards granted under equity incentive plans | 13,984 |
Common stock awards available for issuance under the 2017 Employee Stock Purchase Plan * | 5,089 |
Common stock awards available for issuance under the 2017 Equity Incentive Plan | 27,880 |
Total reserved shares of common stock | 46,953 |
* The Company has not issued any common stock pursuant to the 2017 Employee Stock Purchase Plan.
Summary of Restricted Stock Unit Activity | Restricted stock unit activity for the year ended December 31, 2023 is as follows (in thousands, except per share data):
| Number of Shares |  | Weighted-Average Grant Date Fair Value Per Share
Balance, December 31, 2022 | 8,577 |  |  | $ | 120.82 |
Awarded | 4,594 |  |  | 70.73 |
Released | (2,722) |  |  | 115.33 |
Forfeited | (1,775) |  |  | 114.42 |
Balance, December 31, 2023 - Outstanding | 8,674 |  |  | $ | 97.33 |
Schedule of Stock Option Activity | Stock option activity for the year ended December 31, 2023 is as follows (in thousands, except years and per share data):
| Number of Shares |  | Weighted-Average Exercise Price |  | Weighted-Average Remaining Contractual Life (Years) |  | Weighted-Average Grant Date Fair Value Per Share |  | Aggregate Intrinsic Value
Balance, December 31, 2022 | 5,807 |  |  | $ | 72.79 |  |  | 7.1 |  | — |  |
Granted | 559 |  |  | 72.75 |  |  | — |  |  | $ | 42.43 |  |  |
Exercised | (753) |  |  | 24.92 |  |  | — |  |  | — |  |
Forfeited and expired | (303) |  |  | 143.59 |  |  | — |  |  | — |  |
Balance, December 31, 2023 - Outstanding | 5,310 |  |  | $ | 75.55 |  |  | 6.8 |  | — |  | $ | 178,169 |
Balance, December 31, 2023- Exercisable | 3,317 |  |  | $ | 60.42 |  |  | 5.7 |  | — |  | $ | 133,742 |
Schedule of Share-based Compensation Expense | The following table presents total stock-based compensation expense for the years ended December 31, 2023, 2022, and 2021 (in thousands):
| Years Ended December 31,
| 2023 |  | 2022 |  | 2021
Cost of revenue, platform | $ | 1,478 |  |  | $ | 1,229 |  |  | $ | 827 |
Cost of revenue, devices | 3,761 |  |  | 2,440 |  |  | 2,035 |
Research and development | 147,989 |  |  | 147,653 |  |  | 77,770 |
Sales and marketing | 130,362 |  |  | 123,946 |  |  | 63,503 |
General and administrative | 86,540 |  |  | 84,663 |  |  | 43,397 |
Total stock-based compensation | $ | 370,130 |  |  | $ | 359,931 |  |  | $ | 187,532 |
Summary of Assumptions Used to Value Stock Options Granted | The assumptions used to value stock options granted during the years ended December 31, 2023, 2022, and 2021 are as follows:
| Years Ended December 31,
| 2023 |  | 2022 |  | 2021
Expected term (in years) | 5.0 - 5.8 |  | 5.0 - 6.8 |  | 5.0 - 6.8
Risk-free interest rate | 3.48 - 4.72% |  | 1.37 - 4.33% |  | 0.36 - 1.2%
Expected volatility | 61 - 63% |  | 57 - 61% |  | 38 - 39%
Dividend rate | — |  | — |  | —

X
- Definition Schedule of shares reserved for futures issuance. + References No definition available. + Details
Name: | roku_ScheduleOfSharesReservedForFuturesIssuanceTableTextBlock
Namespace Prefix: | roku_
Data Type: | dtr-types1:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_EquityAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of allocation of amount expensed and capitalized for award under share-based payment arrangement to statement of income or comprehensive income and statement of financial position. Includes, but is not limited to, corresponding line item in financial statement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (h)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of the number and weighted-average grant date fair value for restricted stock units that were outstanding at the beginning and end of the year, and the number of restricted stock units that were granted, vested, or forfeited during the year. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_ScheduleOfShareBasedCompensationRestrictedStockUnitsAwardActivityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure for stock option plans. Includes, but is not limited to, outstanding awards at beginning and end of year, grants, exercises, forfeitures, and weighted-average grant date fair value. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480429/718-10-50-2 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (d) -SubTopic 10 -Topic 718 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480429/718-10-50-2 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (e) -SubTopic 10 -Topic 718 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_ScheduleOfShareBasedCompensationStockOptionsActivityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of the significant assumptions used during the year to estimate the fair value of stock options, including, but not limited to: (a) expected term of share options and similar instruments, (b) expected volatility of the entity's shares, (c) expected dividends, (d) risk-free rate(s), and (e) discount for post-vesting restrictions. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 718 -SubTopic 10 -Subparagraph (f)(2) -Name Accounting Standards Codification -Paragraph 2 -Section 50 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480429/718-10-50-2 + Details
Name: | us-gaap_ScheduleOfShareBasedPaymentAwardStockOptionsValuationAssumptionsTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration