v3.20.2

Stockholders' Equity - Common Stock and Stock-based Compensation (Details) - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended |  |  |  |  |  |  |
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Jun. 30, 2020 | Jun. 30, 2020 | Mar. 31, 2020 | Jan. 01, 2020 | Dec. 31, 2019 | Jun. 30, 2019 | Mar. 31, 2019 | Jan. 01, 2019 | Dec. 31, 2018
Stockholders' Equity |  |  |  |  |  |  |  |  |
Authorized shares of capital stock (in shares) | 205,000,000 | 205,000,000 |  |  |  |  |  |  |
Authorized shares of common stock (in shares) | 200,000,000 | 200,000,000 |  |  | 200,000,000 |  |  |  |
Authorized shares of preferred stock (in shares) | 5,000,000 | 5,000,000 |  |  | 5,000,000 |  |  |  |
Common stock, outstanding (in shares) | 64,300,599 | 64,300,599 |  |  | 63,569,109 |  |  |  |
Available shares of common stock reserved for future issuance (in shares) | 26,638,801 | 26,638,801 |  |  |  |  |  |  |
Issuance of common stock in connection with employee stock purchase plan | $ 1,771 |  |  |  |  |  |  |  |
Common Stock |  |  |  |  |  |  |  |  |
Stockholders' Equity |  |  |  |  |  |  |  |  |
Common stock, outstanding (in shares) | 64,300,599 | 64,300,599 | 63,703,067 |  | 63,569,109 | 63,231,376 | 58,189,318 |  | 57,968,493
Issuance of common stock in connection with employee stock purchase plan (in shares) | 83,573 | 83,573 |  |  |  |  |  |  |
Issuance of common stock in connection with employee stock purchase plan |  | $ 1,800 |  |  |  |  |  |  |
Restricted Stock Units (RSUs) |  |  |  |  |  |  |  |  |
Stockholders' Equity |  |  |  |  |  |  |  |  |
Available shares of common stock reserved for future issuance (in shares) | 3,534,193 | 3,534,193 |  |  |  |  |  |  |
Performance restricted stock units |  |  |  |  |  |  |  |  |
Stockholders' Equity |  |  |  |  |  |  |  |  |
Available shares of common stock reserved for future issuance (in shares) | 1,831,648 | 1,831,648 |  |  |  |  |  |  |
Stock options |  |  |  |  |  |  |  |  |
Stockholders' Equity |  |  |  |  |  |  |  |  |
Available shares of common stock reserved for future issuance (in shares) | 4,132,718 | 4,132,718 |  |  |  |  |  |  |
Convertible debt securities |  |  |  |  |  |  |  |  |
Stockholders' Equity |  |  |  |  |  |  |  |  |
Available shares of common stock reserved for future issuance (in shares) | 17,140,242 | 17,140,242 |  |  |  |  |  |  |
Employee Stock |  |  |  |  |  |  |  |  |
Stockholders' Equity |  |  |  |  |  |  |  |  |
Available shares of common stock reserved for future issuance (in shares) | 729,391 | 729,391 |  |  |  |  |  |  |
Equity Incentive Plan 2014 |  |  |  |  |  |  |  |  |
Stockholders' Equity |  |  |  |  |  |  |  |  |
Increase in shares in available for future issuance |  |  |  | 3,175,011 |  |  |  | 2,896,365 |

X
- Definition The maximum number of shares of capital stock permitted to be issued by the entity's charter and bylaws. + References No definition available. + Details
Name: | twou_CapitalStockSharesAuthorized
Namespace Prefix: | twou_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Common Stock, Capital Shares Reserved for Future Issuance, Increase In Shares + References No definition available. + Details
Name: | twou_CommonStockCapitalSharesReservedForFutureIssuanceIncreaseInShares
Namespace Prefix: | twou_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Aggregate number of common shares reserved for future issuance. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.29) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_CommonStockCapitalSharesReservedForFutureIssuance
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of common shares permitted to be issued by an entity's charter and bylaws. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_CommonStockSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=109259400&loc=d3e21463-112644 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_CommonStockSharesOutstanding
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) permitted to be issued by an entity's charter and bylaws. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_PreferredStockSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of shares issued during the period as a result of an employee stock purchase plan. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=109259400&loc=d3e21463-112644 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Aggregate change in value for stock issued during the period as a result of employee stock purchase plan. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=109259400&loc=d3e21463-112644 + Details
Name: | us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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_SubsidiarySaleOfStockLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_CommonStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_RestrictedStockUnitsRSUMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=twou_PerformanceRestrictedStockUnitsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_EmployeeStockOptionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_ConvertibleDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_EmployeeStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PlanNameAxis=twou_EquityIncentivePlan2014Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |