v3.19.3.a.u2

Segment and Geographic Information - Segment Results of Operations (Details) - USD ($) $ in Thousands | 3 Months Ended | 12 Months Ended
--- | --- | ---
Dec. 31, 2019 | Sep. 30, 2019 | Jun. 30, 2019 | Mar. 31, 2019 | Dec. 31, 2018 | Sep. 30, 2018 | Jun. 30, 2018 | Mar. 31, 2018 | Dec. 31, 2019 | Dec. 31, 2018 | Dec. 31, 2017
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |
Revenue | $ 163,178 | $ 153,798 | $ 135,461 | $ 122,234 | $ 115,095 | $ 106,963 | $ 97,423 | $ 92,288 | $ 574,671 | $ 411,769 | $ 286,752
Total segment profitability |  |  |  |  |  |  |  |  | $ (23,946) | $ 17,655 | $ 11,416
Segment profitability margin |  |  |  |  |  |  |  |  | (4.20%) | 4.30% | 3.90%
Graduate Program Segment |  |  |  |  |  |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |
Revenue |  |  |  |  |  |  |  |  | $ 417,206 | $ 348,361 | $ 270,432
Total segment profitability |  |  |  |  |  |  |  |  | $ 5,770 | $ 16,839 | $ 13,022
Segment profitability margin |  |  |  |  |  |  |  |  | 1.40% | 4.80% | 4.80%
Alternative Credential Segment |  |  |  |  |  |  |  |  |  |  |
Segment Reporting Information [Line Items] |  |  |  |  |  |  |  |  |  |  |
Revenue |  |  |  |  |  |  |  |  | $ 157,465 | $ 63,408 | $ 16,320
Total segment profitability |  |  |  |  |  |  |  |  | $ (29,716) | $ 816 | $ (1,606)
Segment profitability margin |  |  |  |  |  |  |  |  | (18.90%) | 1.30% | (9.80%)

X
- Definition Percent of consolidated profit or loss for the period from segment operations. + References No definition available. + Details
Name: | twou_PercentageOfProfitLossFromSegmentOperations
Namespace Prefix: | twou_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The consolidated profit or loss for the period from segment operations. + References No definition available. + Details
Name: | twou_ProfitLossFromSegmentOperations
Namespace Prefix: | twou_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount, including tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer. Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value-added and excise. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=118956577&loc=SL49130545-203045 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 4 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=118956577&loc=SL49130543-203045 + Details
Name: | us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax
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
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=twou_GraduateProgramSegmentMember
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: |