v3.10.0.1

Stock-Based Compensation - Expense (Details) |  | 3 Months Ended | 6 Months Ended
--- | --- | --- | ---
Jun. 05, 2017 USD ($) | Jun. 30, 2018 USD ($) item | Jun. 30, 2017 USD ($) | Jun. 30, 2018 USD ($) item | Jun. 30, 2017 USD ($)
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |
Number of share-based employee compensation plans | item |  | 2 |  | 2 |
Percentage of purchase price to fair market value | 90.00% |  |  |  |
Maximum payroll deduction amount per calendar year | $ 25,000 |  |  |  |
Stock-based compensation expense |  | $ 9,009,000 | $ 5,495,000 | $ 16,131,000 | $ 9,390,000
Curriculum and teaching |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |
Stock-based compensation expense |  | 5,000 |  | 7,000 |
Servicing and support |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |
Stock-based compensation expense |  | 1,320,000 | 1,161,000 | 2,192,000 | 1,856,000
Technology and content development |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |
Stock-based compensation expense |  | 1,075,000 | 897,000 | 1,786,000 | 1,543,000
Marketing and sales |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |
Stock-based compensation expense |  | 718,000 | 430,000 | 1,207,000 | 772,000
General and administrative |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |
Stock-based compensation expense |  | $ 5,891,000 | $ 3,007,000 | $ 10,939,000 | $ 5,219,000
Minimum |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |
Percentage of payroll deduction | 1.00% |  |  |  |
Maximum |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |
Percentage of payroll deduction | 15.00% |  |  |  |

X
- Definition The percentage of employee gross pay the employee may contribute to a defined contribution plan. + References No definition available. + Details
Name: | twou_DefinedContributionPlanAnnualContributionsPerEmployeePercent
Namespace Prefix: | twou_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Represents the least amount of percentage difference from purchase price to fair value. + References No definition available. + Details
Name: | twou_PercentagePurchasePriceFairMarketValue
Namespace Prefix: | twou_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Represents the number of employee compensation plans under the share-based arrangements. + References No definition available. + Details
Name: | twou_ShareBasedCompensationArrangementsByShareBasedPaymentAwardNumberOfEmployeeCompensationPlans
Namespace Prefix: | twou_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Represents the expense recognized during the period arising from equity-based compensation arrangements (for example, shares of stock, unit, stock options or other equity instruments) with employees, directors and certain consultants qualifying for treatment as employees. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 14.F) -URI http://asc.fasb.org/extlink&oid=27013229&loc=d3e301413-122809 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=96867065&loc=d3e5047-113901 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (h)(1)(i) -URI http://asc.fasb.org/extlink&oid=96867065&loc=d3e5070-113901 + Details
Name: | us-gaap_AllocatedShareBasedCompensationExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Maximum amount the employee may contribute to a defined contribution plan. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanMaximumAnnualContributionsPerEmployeeAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
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_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=twou_CurriculumAndTeachingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=twou_ServicingAndSupportMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=twou_TechnologyAndContentDevelopmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_SellingAndMarketingExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_GeneralAndAdministrativeExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RangeAxis=us-gaap_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RangeAxis=us-gaap_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |