v3.24.2.u1

Subsequent Events (Details) - USD ($) $ in Thousands | Jul. 29, 2024 | Jul. 25, 2024 | Jun. 30, 2024 | Dec. 31, 2023
--- | --- | --- | --- | ---
Convertible senior notes |  |  |  |
Subsequent Events [Line Items] |  |  |  |
Net carrying amount |  |  | $ 527,000 | $ 527,000
DIP Facility | Subsequent Event | Base Rate |  |  |  |
Subsequent Events [Line Items] |  |  |  |
Basis spread on interest rate | 0.0750 |  |  |
DIP Facility | Subsequent Event | Base Rate | Minimum |  |  |  |
Subsequent Events [Line Items] |  |  |  |
Basis spread on interest rate | 0.0175 |  |  |
DIP Facility | Subsequent Event | Secured Overnight Financing Rate (SOFR) |  |  |  |
Subsequent Events [Line Items] |  |  |  |
Basis spread on interest rate | 0.0850 |  |  |
DIP Facility | Subsequent Event | Secured Overnight Financing Rate (SOFR) | Minimum |  |  |  |
Subsequent Events [Line Items] |  |  |  |
Basis spread on interest rate | 0.0075 |  |  |
DIP Facility | Secured Debt | Subsequent Event |  |  |  |
Subsequent Events [Line Items] |  |  |  |
Aggregate principal amount | $ 64,000 |  |  |
Initial borrowings outstanding | 60,000 |  |  |
Subsequent borrowings outstanding | $ 4,000 |  |  |
Interest rate on borrowings outstanding | 2.00% |  |  |
2025 Notes | Convertible senior notes | Subsequent Event |  |  |  |
Subsequent Events [Line Items] |  |  |  |
Net carrying amount |  | $ 380,000 |  |
2030 Notes | Convertible senior notes | Subsequent Event |  |  |  |
Subsequent Events [Line Items] |  |  |  |
Net carrying amount |  | 147,000 |  |
Second Amended Credit Agreement | Line of Credit | Subsequent Event |  |  |  |
Subsequent Events [Line Items] |  |  |  |
Net carrying amount |  | $ 414,300 |  |

X
- Definition Debtor-in-Possession Financing, Additional Borrowings Outstanding + References No definition available. + Details
Name: | twou_DebtorInPossessionFinancingAdditionalBorrowingsOutstanding
Namespace Prefix: | twou_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Debtor-In-Possession Financing, Basis Spread On Variable Rate + References No definition available. + Details
Name: | twou_DebtorInPossessionFinancingBasisSpreadOnVariableRate
Namespace Prefix: | twou_
Data Type: | xbrli:pureItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -SubTopic 10 -Topic 210 -Publisher FASB -URI https://asc.fasb.org/1943274/2147480566/210-10-S99-1 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -Publisher FASB -URI https://asc.fasb.org/1943274/2147478546/942-210-S99-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 470 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 4 -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org/1943274/2147481139/470-20-50-4 + Details
Name: | us-gaap_DebtInstrumentCarryingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount debtor-in-possession financing arranged (but not necessarily all borrowed). + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 852 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 18 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481435/852-10-45-18 + Details
Name: | us-gaap_DebtorInPossessionFinancingAmountArranged
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of debtor-in-possession borrowings outstanding. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 852 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 18 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481435/852-10-45-18 + Details
Name: | us-gaap_DebtorInPossessionFinancingBorrowingsOutstanding
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Interest rate on outstanding borrowings under debtor-in-possession financing arrangement. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 852 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 18 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481435/852-10-45-18 + Details
Name: | us-gaap_DebtorInPossessionFinancingInterestRateOnBorrowingsOutstanding
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Detail information of subsequent event by type. User is expected to use existing line items from elsewhere in the taxonomy as the primary line items for this disclosure, which is further associated with dimension and member elements pertaining to a subsequent event. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 830 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147481674/830-30-50-2 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 855 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org/1943274/2147483399/855-10-50-2 + Details
Name: | us-gaap_SubsequentEventLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_ConvertibleDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=twou_DIPFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_SubsequentEventTypeAxis=us-gaap_SubsequentEventMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_BaseRateMember
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: | us-gaap_VariableRateAxis=us-gaap_SecuredOvernightFinancingRateSofrMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_SecuredDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=twou_The2025NotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=twou_A2030NotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=twou_SecondAmendedCreditAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_LineOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |