v3.8.0.1

Stockholders' Equity (Details) - USD ($) $ in Thousands |  |  | 12 Months Ended |  |  |
--- | --- | --- | --- | --- | --- | ---
Sep. 11, 2017 | Sep. 30, 2015 | Dec. 31, 2017 | Dec. 31, 2017 | Dec. 31, 2015 | Jan. 01, 2018 | Jan. 01, 2017 | Dec. 31, 2016
Stockholders' Equity |  |  |  |  |  |  |  |
Proceeds from issuance of common stock, net of offering costs |  |  |  | $ 189,463 | $ 117,112 |  |  |
Authorized shares of capital stock |  |  | 205,000,000 | 205,000,000 |  |  |  |
Authorized shares of common stock |  |  | 200,000,000 | 200,000,000 |  |  |  | 200,000,000
Authorized shares of preferred stock |  |  | 5,000,000 | 5,000,000 |  |  |  | 5,000,000
Shares of common stock reserved for future issuance |  |  |  |  |  |  |  |
Outstanding stock options |  |  | 4,559,176 | 4,559,176 |  |  |  |
Possible future issuance under 2014 Equity Incentive Plan |  |  | 4,415,593 | 4,415,593 |  |  |  |
Outstanding restricted stock units |  |  | 1,413,423 | 1,413,423 |  |  |  |
Available for future issuance under employee stock purchase plan |  |  | 1,000,000 | 1,000,000 |  |  |  |
Total shares of common stock reserved for future issuance |  |  | 11,388,192 | 11,388,192 |  |  |  |
Equity Incentive Plan 2014 |  |  |  |  |  |  |  |
Shares of common stock reserved for future issuance |  |  |  |  |  |  |  |
Total shares of common stock reserved for future issuance |  |  | 4,415,593 | 4,415,593 |  | 2,625,292 | 2,357,579 |
Common Stock |  |  |  |  |  |  |  |
Stockholders' Equity |  |  |  |  |  |  |  |
Shares issued | 4,047,500 | 3,625,000 | 4,047,500 |  | 3,625,000 |  |  |
Proceeds from issuance of common stock, net of offering costs | $ 189,500 | $ 117,100 |  |  |  |  |  |
Common Stock | Underwriters' over-allotment option |  |  |  |  |  |  |  |
Stockholders' Equity |  |  |  |  |  |  |  |
Shares issued | 547,500 | 525,000 |  |  |  |  |  |

X
- Definition The maximum number of shares of capital stock permitted to be issued by the entity's charter and bylaws. + References No definition available. + Details
Name: | twou_CapitalStockSharesAuthorized
Namespace Prefix: | twou_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- References No definition available. + Details
Name: | twou_CommonStockCapitalSharesReservedForFutureIssuanceAbstract
Namespace Prefix: | twou_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of common shares reserved for future issuance pertaining to available for future issuance under employee stock purchase plan. + References No definition available. + Details
Name: | twou_CommonStockCapitalSharesReservedForFutureIssuanceAvailableForFutureIssuanceUnderStockPurchasePlan
Namespace Prefix: | twou_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of outstanding restricted stock units reserved for future issuance pertaining to possible future issuance under stock option plans. + References No definition available. + Details
Name: | twou_CommonStockCapitalSharesReservedForFutureIssuanceOutstandingRestrictedStockUnits
Namespace Prefix: | twou_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of common shares reserved for future issuance pertaining to outstanding stock options. + References No definition available. + Details
Name: | twou_CommonStockCapitalSharesReservedForFutureIssuanceOutstandingStockOptions
Namespace Prefix: | twou_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of common shares reserved for future issuance pertaining to possible future issuance under stock option plans. + References No definition available. + Details
Name: | twou_CommonStockCapitalSharesReservedForFutureIssuancePossibleFutureIssuanceUnderStockOptionPlans
Namespace Prefix: | twou_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Aggregate number of common shares reserved for future issuance. + References Reference 1: 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 + Details
Name: | us-gaap_CommonStockCapitalSharesReservedForFutureIssuance
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of common shares permitted to be issued by an entity's charter and bylaws. + References Reference 1: 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 + Details
Name: | us-gaap_CommonStockSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) permitted to be issued by an entity's charter and bylaws. + References Reference 1: 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 + Details
Name: | us-gaap_PreferredStockSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The cash inflow from the additional capital contribution to the entity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromIssuanceOfCommonStock
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Number of new stock issued during the period. + References Reference 1: 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 2: 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 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_StockIssuedDuringPeriodSharesNewIssues
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
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_SubsidiarySaleOfStockLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_CommonStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_SubsidiarySaleOfStockAxis=us-gaap_OverAllotmentOptionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |