v3.19.3.a.u2

Stock-Based Compensation - Additional Information (Details) $ / shares in Units, $ in Millions | 1 Months Ended | 3 Months Ended | 12 Months Ended |  |  |
--- | --- | --- | --- | --- | --- | ---
Jan. 31, 2020 shares | Dec. 31, 2019 USD ($) plan $ / shares shares | Mar. 31, 2019 shares | Dec. 31, 2019 USD ($) plan $ / shares shares | Dec. 31, 2018 USD ($) $ / shares shares | Dec. 31, 2017 USD ($) $ / shares | Jan. 01, 2020 shares | Jan. 01, 2019 shares | Jan. 30, 2014 shares
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |  |  |  |  |
Number of share-based employee compensation plans (in plans) | plan |  | 2 |  | 2 |  |  |  |  |
Common stock reserved for issuance (in shares) |  | 14,178,107 |  | 14,178,107 |  |  |  |  |
Compensation cost related to the nonvested awards not yet recognized | $ |  | $ 35.5 |  | $ 35.5 |  |  |  |  |
Weighted average period for recognition of compensation cost |  |  |  | 2 years 10 months 24 days |  |  |  |  |
Total unrecognized compensation cost related to unvested RSUs | $ |  | $ 93.5 |  | $ 93.5 |  |  |  |  |
Unrecognized compensation cost period expected to be realized |  |  |  | 2 years 1 month 6 days |  |  |  |  |
Restricted stock units | Maximum |  |  |  |  |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |  |  |  |  |
Vesting period |  |  |  | 4 years |  |  |  |  |
Stock options |  |  |  |  |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |  |  |  |  |
Option to purchase common stock, outstanding (in shares) |  | 4,373,895 |  | 4,373,895 | 4,057,788 |  |  |  |
Weighted average exercise price (in dollars per share) | $ / shares |  | $ 34.24 |  | $ 34.24 | $ 27.23 |  |  |  |
Vesting period |  |  |  | 4 years |  |  |  |  |
Expiration period |  |  |  | 10 years |  |  |  |  |
Weighted average grant date fair value (in dollars per share) | $ / shares |  |  |  | $ 28.49 | $ 39.66 | $ 19.65 |  |  |
Aggregate intrinsic value of employee options exercised | $ |  |  |  | $ 15.4 | $ 54.0 | $ 24.9 |  |  |
Performance Restricted Stock Units |  |  |  |  |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |  |  |  |  |
Vesting period |  | 3 years |  |  |  |  |  |  |
Vested (in shares) |  |  |  | 0 |  |  |  |  |
Granted (in shares) |  | 1,275,955 | 186,433 |  |  |  |  |  |
Performance Restricted Stock Units | Maximum |  |  |  |  |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |  |  |  |  |
Vesting period |  |  | 2 years |  |  |  |  |  |
2008 Equity Incentive Plan |  |  |  |  |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |  |  |  |  |
Number of options or stock awards available for grant under the plan (in shares) |  |  |  |  |  |  |  |  | 0
Option to purchase common stock, outstanding (in shares) |  | 1,124,450 |  | 1,124,450 |  |  |  |  |
Weighted average exercise price (in dollars per share) | $ / shares |  | $ 5.66 |  | $ 5.66 |  |  |  |  |
Equity Incentive Plan 2014 |  |  |  |  |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |  |  |  |  |
Shares authorized under the plan (in shares) |  | 2,800,000 |  | 2,800,000 |  |  |  |  |
Number of shares that may be added to the 2014 Plan (in shares) |  |  |  | 5,943,348 |  |  |  |  |
Period of annual automatic increase in the number of shares authorized |  |  |  | 10 years |  |  |  |  |
Percentage applied on total number of shares of common stock outstanding on previous calendar year for automatic inclusion in the plan |  | 5.00% |  | 5.00% |  |  |  |  |
Common stock reserved for issuance (in shares) |  | 5,296,333 |  | 5,296,333 |  |  | 3,175,011 | 2,896,365 |
Option to purchase common stock, outstanding (in shares) |  | 3,249,445 |  | 3,249,445 |  |  |  |  |
Weighted average exercise price (in dollars per share) | $ / shares |  | $ 44.14 |  | $ 44.14 |  |  |  |  |
Equity Incentive Plan 2014 | Maximum |  |  |  |  |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |  |  |  |  |
Number of options or stock awards available for grant under the plan (in shares) |  | 5,943,348 |  | 5,943,348 |  |  |  |  |
Equity Incentive Plan 2014 | Restricted stock units |  |  |  |  |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |  |  |  |  |
Restricted stock units outstanding (in shares) |  | 3,694,915 |  | 3,694,915 |  |  |  |  |
Subsequent Event | Restricted stock units |  |  |  |  |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |  |  |  |  |
Granted (in shares) | 1,700,000 |  |  |  |  |  |  |  |
Subsequent Event | Performance Restricted Stock Units |  |  |  |  |  |  |  |  |
Stock-based compensation expense included in the unaudited condensed consolidated statements of operations |  |  |  |  |  |  |  |  |
Vesting period | 3 years |  |  |  |  |  |  |  |
Granted (in shares) | 1,900,000 |  |  |  |  |  |  |  |

X
- Definition Maximum period over which unrecognized compensation is expected to be recognized for equity-based compensation plans, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | twou_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedMaximumPeriodForRecognition1
Namespace Prefix: | twou_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Represents the percentage applied on the total number of shares of common stock outstanding on previous calendar year end for automatic inclusion in the share based compensation plan. + References No definition available. + Details
Name: | twou_ShareBasedCompensationArrangementByShareBasedPaymentAwardPercentageAppliedOnOutstandingSharesOfCommonStockForAutomaticInclusionInPlan
Namespace Prefix: | twou_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Period during which the number of authorized shares available for issuance under the 2014 Plan will automatically increase on an annual basis. + References No definition available. + Details
Name: | twou_ShareBasedCompensationArrangementByShareBasedPaymentAwardPeriodOfAnnualAutomaticIncreaseInSharesAuthorized
Namespace Prefix: | twou_
Data Type: | xbrli:durationItemType
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 Aggregate number of common shares reserved for future issuance. + 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.29) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_CommonStockCapitalSharesReservedForFutureIssuance
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
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_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cost not yet recognized for nonvested award under share-based payment arrangement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (i) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Weighted-average period over which cost not yet recognized is expected to be recognized for award under share-based payment arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (i) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of cost to be recognized for nonvested award under share-based payment arrangement. Excludes share and unit options. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (i) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 + Details
Name: | us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Period over which grantee's right to exercise award under share-based payment arrangement is no longer contingent on satisfaction of service or performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, combination of market, performance or service condition. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(2)(iii)(2) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Net number of non-option equity instruments granted to participants. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(1)(iv)(1) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsGranted
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of equity instruments other than options outstanding, including both vested and non-vested instruments. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(1)(ii) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(1)(i) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsOutstandingNumber
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of additional shares authorized for issuance under share-based payment arrangement. + References No definition available. + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares authorized for issuance under share-based payment arrangement. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The difference between the maximum number of shares (or other type of equity) authorized for issuance under the plan (including the effects of amendments and adjustments), and the sum of: 1) the number of shares (or other type of equity) already issued upon exercise of options or other equity-based awards under the plan; and 2) shares (or other type of equity) reserved for issuance on granting of outstanding awards, net of cancellations and forfeitures, if applicable. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of accumulated difference between fair value of underlying shares on dates of exercise and exercise price on options exercised (or share units converted) into shares. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (d)(2) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The weighted average grant-date fair value of options granted during the reporting period as calculated by applying the disclosed option pricing methodology. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (d)(1) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageGrantDateFairValue
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of options outstanding, including both vested and non-vested options. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(1)(i)-(ii) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Weighted average price at which grantees can acquire the shares reserved for issuance under the stock option plan. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c)(1)(i) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 + Details
Name: | us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Period from grant date that an equity-based award expires, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a)(2) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 + Details
Name: | us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_RestrictedStockUnitsRSUMember
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_AwardTypeAxis=us-gaap_EmployeeStockOptionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=twou_PerformanceRestrictedStockUnitsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PlanNameAxis=twou_EquityIncentivePlan2008Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_PlanNameAxis=twou_EquityIncentivePlan2014Member
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: |