v3.19.3.a.u2

Stockholders' Equity - At-the-Market Offerings - Additional Information (Details) - At-the-Market Offerings - Class A Common Stock - USD ($) $ / shares in Units, $ in Thousands, shares in Millions |  |  | 1 Months Ended |  |
--- | --- | --- | --- | --- | ---
Nov. 30, 2019 | Mar. 12, 2019 | May 31, 2019 | Mar. 31, 2019 | Nov. 19, 2019 | May 16, 2019
Class Of Stock [Line Items] |  |  |  |  |  |
Gross proceeds from issuance of common stock | $ 153,990 |  | $ 82,900 | $ 100,000 |  |
Number of shares Issued | 1.0 |  | 1.0 | 1.4 |  |
Average selling price per share | $ 153.99 |  | $ 82.90 | $ 72.00 |  |
Stock Issuance Costs | $ 2,800 |  | $ 1,600 | $ 2,000 |  |
Maximum aggregate offering shares of common stock |  |  |  |  | 1.0 | 1.0
Maximum |  |  |  |  |  |
Class Of Stock [Line Items] |  |  |  |  |  |
Gross proceeds from issuance of common stock |  | $ 100,000 |  |  |  |

X
- Definition Gross proceeds from sale of Common stock + References No definition available. + Details
Name: | roku_GrossProceedsFromIssuanceOfCommonStock
Namespace Prefix: | roku_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Maximum aggregate offering shares of common stock. + References No definition available. + Details
Name: | roku_MaximumAggregateOfferingSharesOfCommonStock
Namespace Prefix: | roku_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_ClassOfStockLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The cash outflow for cost incurred directly with the issuance of an equity security. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -URI http://asc.fasb.org/extlink&oid=118932676&loc=d3e3291-108585 + Details
Name: | us-gaap_PaymentsOfStockIssuanceCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The number of shares issued or sold by the subsidiary or equity method investee per stock transaction. + References No definition available. + Details
Name: | us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Per share amount received by subsidiary or equity investee for each share of common stock issued or sold in the stock transaction. + References No definition available. + Details
Name: | us-gaap_SaleOfStockPricePerShare
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | us-gaap_SubsidiarySaleOfStockAxis=roku_AtTheMarketOfferingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=us-gaap_CommonClassAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |