v3.24.0.1

Leases (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2023
Leases [Abstract] |
Schedule of Components of Lease Expense | The components of lease expense are as follows (in thousands):
| Years Ended December 31,
| 2023 |  | 2022 |  | 2021
Operating lease expense | $ | 83,060 |  |  | $ | 76,359 |  |  | $ | 46,410 |
Variable lease expense | 23,331 |  |  | 18,991 |  |  | 15,080 |
Total operating lease expense | $ | 106,391 |  |  | $ | 95,350 |  |  | $ | 61,490 |
Schedule of Supplemental Cash Flow Information Related To Leases | Supplemental cash flow information related to leases is as follows (in thousands):
| Years Ended December 31,
| 2023 |  | 2022 |  | 2021
Cash paid for amounts included in the measurement of lease liabilities: |  |  |  |  |
Operating cash outflows from operating leases | $ | 74,278 |  |  | $ | 56,370 |  |  | $ | 51,657 |
Right-of-use assets obtained in exchange for lease obligations: |  |  |  |  |
Operating leases | $ | 40,866 |  |  | $ | 231,728 |  |  | $ | 110,845 |
Decrease in operating lease right-of-use assets due to impairment (See Note 17) | $ | 131,646 |  |  | $ | — |  |  | $ | — |
Schedule of Supplemental Balance Sheet Information Related to Leases | Supplemental balance sheet information related to leases is as follows (in thousands, except lease term and discount rate):
| As of December 31,
| 2023 |  | 2022
Operating lease right-of-use assets | $ | 371,444 |  |  | $ | 521,695 |
Operating lease liability, current (included in Accrued liabilities) | 68,099 |  |  | 54,689 |
Operating lease liability, non-current | 586,174 |  |  | 584,651 |
Total operating lease liability | $ | 654,273 |  |  | $ | 639,340 |
Weighted-average remaining term for operating leases (in years) | 7.94 |  | 8.62
Weighted-average discount rate for operating leases | 3.94 | % |  | 3.80 | %
Schedule of Future Lease Payments under Operating Leases | Future lease payments under operating leases as of December 31, 2023 are as follows (in thousands):
Year Ending December 31, | Operating Leases
2024 | $ | 89,751 |
2025 | 98,702 |
2026 | 100,237 |
2027 | 99,686 |
2028 | 100,099 |
Thereafter | 282,716 |
Total future lease payments | 771,191 |
Less: imputed interest | (110,068) |
Less: expected tenant improvement allowance | (6,850) |
Total (1) | $ | 654,273 |
(1) Total lease liabilities include liabilities related to operating lease right-of-use assets which were included in the impairment charges as part of the Company’s restructuring efforts. See Note 17 for additional details.

X
- Definition Schedule of supplemental balance sheet information related to leases. + References No definition available. + Details
Name: | roku_ScheduleOfSupplementalBalanceSheetInformationRelatedToLeasesTableTextBlock
Namespace Prefix: | roku_
Data Type: | dtr-types1:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Schedule of supplemental cash flow information related to leases. + References No definition available. + Details
Name: | roku_ScheduleOfSupplementalCashFlowInformationRelatedToLeasesTableTextBlock
Namespace Prefix: | roku_
Data Type: | dtr-types1:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of lessee's lease cost. Includes, but is not limited to, interest expense for finance lease, amortization of right-of-use asset for finance lease, operating lease cost, short-term lease cost, variable lease cost and sublease income. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Publisher FASB -URI https://asc.fasb.org//1943274/2147478964/842-20-50-4 + Details
Name: | us-gaap_LeaseCostTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Publisher FASB -URI https://asc.fasb.org//1943274/2147478964/842-20-50-6 + Details
Name: | us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration