v3.24.2.u1

Receivables and Contract Liabilities - Narrative (Details) - USD ($) $ in Thousands | 1 Months Ended | 3 Months Ended | 6 Months Ended |
--- | --- | --- | --- | ---
Jan. 31, 2024 | Jun. 30, 2024 | Jun. 30, 2023 | Jun. 30, 2024 | Jun. 30, 2023 | Dec. 31, 2023
Segment Reporting Information [Line Items] |  |  |  |  |  |
Accounts receivable, factored receivable purchase rate | 88.00% |  |  |  |  |
Accounts receivable, sale |  | $ 82,100 |  | $ 82,100 |  |
Proceeds from sale of accounts receivable |  | $ 74,000 |  | 74,000 |  |
Loss on sale of receivables |  |  |  | $ 8,120 | $ 0 |
Percentage of other receivables that are current |  | 68.00% |  | 68.00% |  |
Degree Program Segment |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |
Unbilled revenue |  | $ 26,372 |  | $ 26,372 |  | $ 72,525
Contract with customer, liability, revenue recognized |  | 0 | $ 0 | 1,700 | 1,200 |
Capitalized contract cost |  | 1,000 |  | 1,000 |  | 1,000
Alternative Credential Segment |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |
Contract with customer, liability, revenue recognized |  | 4,600 | $ 16,100 | $ 59,500 | $ 71,000 |
Minimum |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |
Trade receivables, term |  |  |  | 12 months |  |
Term of other receivables |  |  |  | 12 months |  |
Maximum |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |
Trade receivables, term |  |  |  | 24 months |  |
Term of other receivables |  |  |  | 42 months |  |
Portfolio Management Agreement |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |
Unbilled revenue |  | 9,900 |  | $ 9,900 |  | 68,200
Accounts receivable noncurrent |  | $ 500 |  | $ 500 |  | $ 16,900

X
- Definition Accounts Receivable, Factored Receivable Purchase Rate + References No definition available. + Details
Name: | twou_AccountsReceivableFactoredReceivablePurchaseRate
Namespace Prefix: | twou_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Other Receivables, Current, Percentage + References No definition available. + Details
Name: | twou_OtherReceivablesCurrentPercentage
Namespace Prefix: | twou_
Data Type: | dtr-types1:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Other Receivables, Term + References No definition available. + Details
Name: | twou_OtherReceivablesTerm
Namespace Prefix: | twou_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Trade Receivables, Term + References No definition available. + Details
Name: | twou_TradeReceivablesTerm
Namespace Prefix: | twou_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, after allowance for credit loss, of right to consideration from customer for product sold and service rendered in normal course of business, classified as noncurrent. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 310 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481990/310-10-45-2 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(9)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478546/942-210-S99-1 + Details
Name: | us-gaap_AccountsReceivableNetNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount, after accumulated amortization and accumulated impairment loss, of asset recognized from cost incurred to obtain or fulfill contract with customer. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 340 -SubTopic 40 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479483/340-40-50-3 + Details
Name: | us-gaap_CapitalizedContractCostNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of revenue recognized that was previously included in balance of obligation to transfer good or service to customer for which consideration from customer has been received or is due. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 606 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 8 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479806/606-10-50-8 + Details
Name: | us-gaap_ContractWithCustomerLiabilityRevenueRecognized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of gain (loss) on sale of accounts receivable. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 860 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481326/860-20-50-5 + Details
Name: | us-gaap_GainLossOnSaleOfAccountsReceivable
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_SegmentReportingInformationLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of derecognized financial assets from transactions which comprise an initial transfer and an agreement entered into in contemplation of the initial transfer resulting in retention of substantially all of the exposure to the economic return throughout the term of the transaction, at the date of derecognition. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 4D -Subparagraph (a) -SubTopic 20 -Topic 860 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481326/860-20-50-4D + Details
Name: | us-gaap_TransferOfFinancialAssetsAccountedForAsSalesAmountDerecognized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, before counterparty netting, of cash proceeds received in transfers of derecognized financial assets from transactions which comprise an initial transfer and an agreement entered into in contemplation of the initial transfer resulting in retention of substantially all of the exposure to the economic return throughout the term of the transaction. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 50 -Paragraph 4D -Subparagraph (b) -SubTopic 20 -Topic 860 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481326/860-20-50-4D + Details
Name: | us-gaap_TransferOfFinancialAssetsAccountedForAsSalesCashProceedsReceivedForAssetsDerecognizedAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount received for services rendered and products shipped, but not yet billed, for non-contractual agreements due within one year or the normal operating cycle, if longer. + References No definition available. + Details
Name: | us-gaap_UnbilledReceivablesCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=twou_DegreeProgramSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=twou_AlternativeCredentialSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
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: |

X
- Details
Name: | us-gaap_AccountsNotesLoansAndFinancingReceivableByReceivableTypeAxis=twou_PortfolioManagementAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |