v3.24.2.u1

Restructuring Charges - Schedule of Adjustments to the Accrued Restructuring Liability (Details) - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended
--- | --- | ---
Jun. 30, 2024 | Jun. 30, 2023 | Jun. 30, 2024 | Jun. 30, 2023
Restructuring Reserve [Roll Forward] |  |  |  |
Beginning Balance |  |  | $ 14,506 |
Additional Costs |  |  | 12,937 |
Cash Payments |  |  | (20,517) |
Ending Balance | $ 6,926 |  | 6,926 |
Degree Program Segment |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Total restructuring charges | 7,689 | $ 2,919 | 11,247 | $ 7,026
Alternative Credential Segment |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Total restructuring charges | 717 | 703 | 1,886 | 1,471
Other severance and severance-related costs |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Beginning Balance |  |  | 243 |
Additional Costs |  |  | 0 |
Cash Payments |  |  | (243) |
Ending Balance | 0 |  | 0 |
Leadership and organizational structure changes | Degree Program Segment |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Total restructuring charges | 5,349 | 0 | 6,489 | 0
Leadership and organizational structure changes | Alternative Credential Segment |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Total restructuring charges | 0 | 0 | 308 | 0
Leadership and organizational structure changes | Leadership and organizational structure changes |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Beginning Balance |  |  | 9,779 |
Additional Costs |  |  | 5,025 |
Cash Payments |  |  | (8,907) |
Ending Balance | 5,897 |  | 5,897 |
Leadership and organizational structure changes | Severance and severance-related costs | Degree Program Segment |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Total restructuring charges | 3,951 | 0 | 5,091 | 0
Leadership and organizational structure changes | Severance and severance-related costs | Alternative Credential Segment |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Total restructuring charges | 0 | 0 | 308 | 0
Leadership and organizational structure changes | Lease and lease-related charges | Degree Program Segment |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Total restructuring charges | 1,398 | 0 | 1,398 | 0
Leadership and organizational structure changes | Lease and lease-related charges | Alternative Credential Segment |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Total restructuring charges | 0 | 0 | 0 | 0
2022 Strategic Realignment Plan | Degree Program Segment |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Total restructuring charges | 1,956 | 2,546 | 3,967 | 6,273
2022 Strategic Realignment Plan | Alternative Credential Segment |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Total restructuring charges | 717 | 682 | 1,578 | 1,441
2022 Strategic Realignment Plan | Severance and severance-related costs |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Beginning Balance |  |  | 4,093 |
Additional Costs |  |  | 107 |
Cash Payments |  |  | (3,595) |
Ending Balance | 605 |  | 605 |
2022 Strategic Realignment Plan | Severance and severance-related costs | Degree Program Segment |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Total restructuring charges | 0 | 0 | 0 | 1,231
2022 Strategic Realignment Plan | Severance and severance-related costs | Alternative Credential Segment |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Total restructuring charges | 0 | 0 | 0 | 0
2022 Strategic Realignment Plan | Professional and other fees relating to restructuring activities |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Beginning Balance |  |  | 363 |
Additional Costs |  |  | 191 |
Cash Payments |  |  | (558) |
2022 Strategic Realignment Plan | Professional and other fees relating to restructuring activities | Degree Program Segment |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Total restructuring charges | 0 | 404 | 0 | 744
2022 Strategic Realignment Plan | Professional and other fees relating to restructuring activities | Alternative Credential Segment |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Total restructuring charges | 0 | 0 | 119 | 0
2022 Strategic Realignment Plan | Professional and other fees relating to restructuring activities |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Ending Balance | (4) |  | (4) |
2022 Strategic Realignment Plan | Lease and lease-related charges |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Beginning Balance |  |  | 28 |
Additional Costs |  |  | 7,614 |
Cash Payments |  |  | (7,214) |
Ending Balance | 428 |  | 428 |
2022 Strategic Realignment Plan | Lease and lease-related charges | Degree Program Segment |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Total restructuring charges | 1,956 | 2,129 | 3,967 | 4,272
2022 Strategic Realignment Plan | Lease and lease-related charges | Alternative Credential Segment |  |  |  |
Restructuring Reserve [Roll Forward] |  |  |  |
Total restructuring charges | $ 717 | $ 682 | $ 1,459 | $ 1,441

X
- Definition Amount of other expenses associated with exit or disposal activities pursuant to an authorized plan. Excludes expenses associated with a discontinued operation or an asset retirement obligation. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 45 -Paragraph 28 -Subparagraph (b) -SubTopic 10 -Topic 230 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-28 + Details
Name: | us-gaap_OtherRestructuringCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of cash payments made as the result of exit or disposal activities. Excludes payments associated with a discontinued operation or an asset retirement obligation. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 420 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482017/420-10-50-1 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 230 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 17 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-17 + Details
Name: | us-gaap_PaymentsForRestructuring
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount, after cash payment, of expenses associated with exit or disposal activities pursuant to an authorized plan. Excludes expenses related to a discontinued operation or an asset retirement obligation. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Section 45 -Paragraph 28 -Subparagraph (b) -SubTopic 10 -Topic 230 -Publisher FASB -URI https://asc.fasb.org/1943274/2147482740/230-10-45-28 + Details
Name: | us-gaap_RestructuringCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Carrying amount (including both current and noncurrent portions of the accrual) as of the balance sheet date pertaining to a specified type of cost associated with exit from or disposal of business activities or restructuring pursuant to a duly authorized plan. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 420 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 2 -Subparagraph (SAB Topic 5.P.4.b.2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147479823/420-10-S99-2 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 420 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(2) -Publisher FASB -URI https://asc.fasb.org/1943274/2147482017/420-10-50-1 + Details
Name: | us-gaap_RestructuringReserve
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period. + References No definition available. + Details
Name: | us-gaap_RestructuringReserveRollForward
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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: | us-gaap_RestructuringCostAndReserveAxis=us-gaap_OtherRestructuringMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RestructuringPlanAxis=twou_LeadershipAndOrganizationalStructureChangesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RestructuringCostAndReserveAxis=twou_LeadershipAndOrganizationalStructureChangesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RestructuringCostAndReserveAxis=us-gaap_EmployeeSeveranceMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RestructuringCostAndReserveAxis=twou_LeaseAndLeaseRelatedChargesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RestructuringPlanAxis=twou_A2022StrategicRealignmentPlanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RestructuringCostAndReserveAxis=twou_ProfessionalAndOtherFeesRelatingToRestructuringActivitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RestructuringCostAndReserveAxis=twou_ProfessionalAndOtherFeesRelatingToRestructuringActivitiesNettingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |