v3.8.0.1

Stock-Based Compensation - Employee Stock Purchase Plan (Details) | Jun. 05, 2017 USD ($) shares
--- | ---
Employee Stock Purchase Plan |
Percentage of purchase price to fair market value | 85.00%
Maximum payroll deduction amount per calendar year | $ | $ 25,000
Minimum |
Employee Stock Purchase Plan |
Percentage of payroll deduction | 1.00%
Maximum |
Employee Stock Purchase Plan |
Percentage of payroll deduction | 15.00%
Maximum shares of common stock issued under ESPP | shares | 1,000,000

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 n/a + References No definition available. + Details
Name: | twou_EmployeeStockPurchasePlanAbstract
Namespace Prefix: | twou_
Data Type: | xbrli:stringItemType
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 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 Number of shares issued during the period as a result of an employee stock purchase plan. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=84159872&loc=d3e21463-112644 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187085-122770 + Details
Name: | us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

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: |