v3.24.2.u1

Stockholders' Equity - Stock-based Compensation Narrative (Details) - shares | Jan. 01, 2024 | Jun. 30, 2023 | Jan. 01, 2023
--- | --- | --- | ---
Equity Incentive Plan 2014 |  |  |
Stockholders' Equity |  |  |
Increase in shares in available for future issuance (in shares) | 137,101 |  | 130,557
Equity Incentive Plan 2017 |  |  |
Stockholders' Equity |  |  |
Increase in shares in available for future issuance (in shares) |  | 66,666 |

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 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_PlanNameAxis=twou_EquityIncentivePlan2014Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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