v3.19.3.a.u2

Debt (Details) |  | 3 Months Ended | 12 Months Ended |
--- | --- | --- | --- | ---
May 22, 2019 USD ($) | Dec. 31, 2019 USD ($) agreement | Sep. 30, 2019 USD ($) | Jun. 30, 2019 USD ($) | Mar. 31, 2019 USD ($) | Dec. 31, 2018 USD ($) | Sep. 30, 2018 USD ($) | Jun. 30, 2018 USD ($) | Mar. 31, 2018 USD ($) | Dec. 31, 2019 USD ($) agreement | Dec. 31, 2018 USD ($) | Dec. 31, 2017 USD ($) | Feb. 25, 2020 USD ($)
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Long-term debt, current maturities |  | $ 600,000 |  |  |  | $ 0 |  |  |  | $ 600,000 | $ 0 |  |
Incremental issuance costs |  | 7,238,000 |  |  |  | 0 |  |  |  | 7,238,000 | 0 |  |
Required unrestricted cash as of last day of each fiscal quarter |  | 25,000,000.0 |  |  |  |  |  |  |  | 25,000,000.0 |  |  |
Minimum Graduate LQAR |  | 432,900,000 |  |  |  |  |  |  |  | 432,900,000 |  |  |
Minimum Alternative Credential LTMR |  | 218,800,000 |  |  |  |  |  |  |  | 218,800,000 |  |  |
Minimum Graduate LQAR, minimum requirement |  | 397,800,000 |  |  |  |  |  |  |  | 397,800,000 |  |  |
Minimum Alternative Credential LTMR, minimum requirement |  | 185,000,000.0 |  |  |  |  |  |  |  | 185,000,000 |  |  |
Interest expense |  | 5,289,000 | $ 5,651,000 | $ 2,424,000 | $ 55,000 | 27,000 | $ 27,000 | $ 27,000 | $ 27,000 | 13,419,000 | 108,000 | $ 87,000 |
Maximum borrowing capacity on line of credit |  |  |  | $ 25,000,000.0 |  |  |  |  |  |  |  |  |
Long-term line of credit |  | $ 0 |  |  |  | 0 |  |  |  | $ 0 | 0 |  |
Number of outstanding conditional loan agreements | agreement |  | 2 |  |  |  |  |  |  |  | 2 |  |  |
Deferred government grant obligations |  | $ 3,500,000 |  |  |  | 3,500,000 |  |  |  | $ 3,500,000 | 3,500,000 |  |
Letter of Credit | Credit Agreement |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Debt instrument, face amount | $ 250,000,000 |  |  |  |  |  |  |  |  |  |  |  |
Interest rate during period (as a percent) |  |  |  |  |  |  |  |  |  | 8.91% |  |  |
Interest expense |  |  |  |  |  |  |  |  |  | $ 13,200,000 |  |  |
Interest payable |  | 100,000 |  |  |  |  |  |  |  | 100,000 |  |  |
Letter of Credit | Credit Agreement | Maximum |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Long-term debt, additional amount available | $ 50,000,000 |  |  |  |  |  |  |  |  |  |  |  |
Letter of Credit | Credit Agreement | Base Rate |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Basis spread on variable rate (as a percent) | 5.75% |  |  |  |  |  |  |  |  |  |  |  |
Letter of Credit | Credit Agreement | Base Rate | Minimum |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Basis spread on variable rate (as a percent) | 2.00% |  |  |  |  |  |  |  |  |  |  |  |
Letter of Credit | Credit Agreement | London Interbank Offered Rate (LIBOR) |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Basis spread on variable rate (as a percent) | 6.75% |  |  |  |  |  |  |  |  |  |  |  |
Letter of Credit | Credit Agreement | London Interbank Offered Rate (LIBOR) | Minimum |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Basis spread on variable rate (as a percent) | 1.00% |  |  |  |  |  |  |  |  |  |  |  |
Deferred Government Grant Obligations |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Interest payable |  | 300,000 |  |  |  | $ 200,000 |  |  |  | 300,000 | $ 200,000 |  |
Prince Georges County Maryland |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Deferred government grant obligations |  | $ 1,500,000 |  |  |  |  |  |  |  | $ 1,500,000 |  |  |
Interest rate per annum (as a percent) |  | 3.00% |  |  |  |  |  |  |  | 3.00% |  |  |
Principal no longer subject to forgiveness |  | $ 600,000 |  |  |  |  |  |  |  | $ 600,000 |  |  |
Accrued interest no longer subject to forgiveness |  | 100,000 |  |  |  |  |  |  |  | 100,000 |  |  |
Standby Letters of Credit |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Maximum borrowing capacity on line of credit |  | $ 18,400,000 |  |  |  |  |  |  |  | $ 18,400,000 |  |  |
Subsequent Event | Letter of Credit | Credit Agreement |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Incremental issuance costs |  |  |  |  |  |  |  |  |  |  |  |  | $ 2,500,000
Prior To First Anniversary of First Amendment Effective Date | Letter of Credit | Credit Agreement |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Prepayment premium | 2.00% |  |  |  |  |  |  |  |  |  |  |  |
Prepayment penalty | 1.00% |  |  |  |  |  |  |  |  |  |  |  |
On Or After First Anniversary of First Amendment Effective Date | Letter of Credit | Credit Agreement |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |
Prepayment premium | 1.00% |  |  |  |  |  |  |  |  |  |  |  |

X
- Definition Debt Instrument, Alternative Credential Segment Revenue + References No definition available. + Details
Name: | twou_DebtInstrumentAlternativeCredentialSegmentRevenue
Namespace Prefix: | twou_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Debt Instrument, Alternative Credential Segment Revenue, Minimum Requirement + References No definition available. + Details
Name: | twou_DebtInstrumentAlternativeCredentialSegmentRevenueMinimumRequirement
Namespace Prefix: | twou_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Debt Instrument, Graduate Program Segment Revenue, Minimum Requirement + References No definition available. + Details
Name: | twou_DebtInstrumentGraduateProgramSegmentRevenueMinimumRequirement
Namespace Prefix: | twou_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Debt Instrument, Minimum Graduate LQAR + References No definition available. + Details
Name: | twou_DebtInstrumentMinimumGraduateLQAR
Namespace Prefix: | twou_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Debt Instrument, Minimum Unrestricted Cash + References No definition available. + Details
Name: | twou_DebtInstrumentMinimumUnrestrictedCash
Namespace Prefix: | twou_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Debt Instrument, Prepayment Penalty + References No definition available. + Details
Name: | twou_DebtInstrumentPrepaymentPenalty
Namespace Prefix: | twou_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Prepayment Premium + References No definition available. + Details
Name: | twou_DebtInstrumentPrepaymentPremium
Namespace Prefix: | twou_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Deferred Government Grant Obligations, Accrued Interest No Longer Subject to Forgiveness + References No definition available. + Details
Name: | twou_DeferredGovernmentGrantObligationsAccruedInterestNoLongerSubjecttoForgiveness
Namespace Prefix: | twou_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of deferred government grant obligations due beyond one year or the operating cycle, whichever is longer. + References No definition available. + Details
Name: | twou_DeferredGovernmentGrantObligationsNoncurrent
Namespace Prefix: | twou_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Deferred Government Grant Obligations, Principal No Longer Subject to Forgiveness + References No definition available. + Details
Name: | twou_DeferredGovernmentGrantObligationsPrincipalNoLongerSubjecttoForgiveness
Namespace Prefix: | twou_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Long-Term Debt, Additional Amount Available + References No definition available. + Details
Name: | twou_LongTermDebtAdditionalAmountAvailable
Namespace Prefix: | twou_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Represents the number of government grants. + References No definition available. + Details
Name: | twou_NumberOfGovernmentGrants
Namespace Prefix: | twou_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage points added to the reference rate to compute the variable rate on the debt instrument. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentBasisSpreadOnVariableRate1
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Face (par) amount of debt instrument at time of issuance. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=114775744&loc=d3e28551-108399 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=114775985&loc=d3e28878-108400 + Details
Name: | us-gaap_DebtInstrumentFaceAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The average effective interest rate during the reporting period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=114775744&loc=d3e28551-108399 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentInterestRateDuringPeriod
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Contractual interest rate for funds borrowed, under the debt agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentInterestRateStatedPercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
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_DebtInstrumentLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, after accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.17) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=114775744&loc=d3e28555-108399 + Details
Name: | us-gaap_DeferredFinanceCostsNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of the cost of borrowed funds accounted for as interest expense. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 20 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6450988&loc=d3e26243-108391 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=114775744&loc=d3e28555-108399 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=115929826&loc=d3e8736-108599 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (210.5-03(11)) -URI http://asc.fasb.org/extlink&oid=116634182&loc=SL114868664-224227 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-04.9) -URI http://asc.fasb.org/extlink&oid=116637391&loc=SL114874048-224260 + Details
Name: | us-gaap_InterestExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of interest payable on debt, including, but not limited to, trade payables. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03.15(5)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03.15(a)) -URI http://asc.fasb.org/extlink&oid=119400593&loc=d3e572229-122910 + Details
Name: | us-gaap_InterestPayableCurrentAndNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(16)) -URI http://asc.fasb.org/extlink&oid=119400593&loc=d3e572229-122910 + Details
Name: | us-gaap_LineOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt, classified as current. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19,20) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_LongTermDebtCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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

X
- Details
Name: | us-gaap_DebtInstrumentAxis=twou_CreditAgreementMember
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_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_LondonInterbankOfferedRateLIBORMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=twou_PrinceGeorgesCountyMarylandMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_StandbyLettersOfCreditMember
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: | twou_PrepaymentDateAxis=twou_PriorToFirstAnniversaryofFirstAmendmentEffectiveDateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | twou_PrepaymentDateAxis=twou_OnOrAfterFirstAnniversaryofFirstAmendmentEffectiveDateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |