Significant Accounting Policies | Significant Accounting Policies Use of Estimates The preparation of financial statements in conformity with generally accepted accounting principles in the United States (U.S. GAAP) requires management to make estimates, judgments, and assumptions that affect the reported amounts of assets and liabilities; the disclosure of contingent liabilities at the date of the financial statements; and the reported amounts of revenues and expenses during the reporting periods. Significant estimates, assumptions, and judgments are used for, but not limited to: revenue recognition, recoverability of accounts receivable, restructuring charges (credits), share-based compensation expense including estimated forfeitures, accounting for income taxes, useful lives assigned to long-lived assets for depreciation and amortization, impairment of goodwill and long-lived assets, and the valuation of acquired intangible assets. We base our estimates on historical experience, knowledge of current business conditions, and various other factors we believe to be reasonable under the circumstances. These estimates are based on management’s knowledge about current events and expectations about actions we may undertake in the future. Actual results could differ from these estimates, and such differences could be material to our financial position and results of operations. Principles of Consolidation The consolidated financial statements include the accounts of Chegg and our wholly owned subsidiaries. All significant intercompany accounts and transactions have been eliminated in consolidation. The consolidated financial statements have been prepared in accordance with U.S. GAAP. Cash and Cash Equivalents and Restricted Cash We consider all highly liquid investments with an original maturity date of three months or less from the date of purchase to be cash equivalents. Cash and cash equivalents, which consist of cash, money market accounts, and commercial paper at financial institutions, are stated at cost, which approximates fair value. We classify certain restricted cash balances within other current assets and other assets on the accompanying consolidated balance sheets based upon the term of the remaining restrictions. As of December 31, 2017 and 2016 , we had approximately $0.5 million and $0.1 million , respectively, of restricted cash that consisted of a security deposits for our corporate offices. As of December 31, 2017 , $0.1 million of restricted cash is classified in other current assets and $0.4 million is classified in other assets in our consolidated balance sheets. As of December 31, 2016 , $0.1 million of restricted cash is classified in other assets in our consolidated balance sheets . Investments We hold investments in commercial paper, corporate securities and U.S. treasury securities. We classify our marketable securities as available-for-sale investments that are either short or long-term based on the nature of each security based on the contractual maturity of the investment when purchased. Our available-for-sale investments are carried at estimated fair value with any unrealized gains and losses, net of taxes, included in accumulated other comprehensive loss in stockholders’ equity. Unrealized losses are charged against other income (expense), net when a decline in fair value is determined to be other-than-temporary. We did not record any such impairment charges in the periods presented. We determined realized gains or losses on the sale of marketable securities on a specific identification method, and recorded such gains or losses as other income (expense), net. For the years ended December 31, 2017 and 2016 , the Company's gross realized gains and losses on short-term investments were not significant. Accounts Receivable Accounts receivable are recorded at the invoiced amount and are non-interest bearing. We generally grant uncollateralized credit terms to our customers, which include textbook wholesalers, and marketing services customers, and maintain an allowance for doubtful accounts to account for potentially uncollectible receivables. Allowance for Doubtful Accounts We assess the creditworthiness of our customers based on multiple sources of information, and analyze such factors as our historical bad debt experience, industry and geographic concentrations of credit risk, economic trends, and customer payment history. This assessment requires significant judgment. Because of this assessment, we maintain an allowance for doubtful accounts for estimated losses resulting from the inability of certain customers to make all of their required payments. In making this estimate, we analyze historical payment performance and current economic trends when evaluating the adequacy of the allowance for doubtful accounts. Accounts receivable are written off as a decrease to the allowance for doubtful accounts when all collection efforts have been exhausted and an account is deemed uncollectible. Concentration of Credit Risk Financial instruments that potentially subject us to concentrations of credit risk consist primarily of cash and cash equivalents, restricted cash, and marketable securities invested in highly liquid instruments in accordance with our investment policy. We place the majority of our cash and cash equivalents and restricted cash with financial institutions in the United States that we believe to be of high credit quality, and accordingly minimal credit risk exists with respect to these instruments. Certain of our cash balances held with financial institutions are in excess of Federal Deposit Insurance Corporation limits. Our investment portfolio consists of investment-grade marketable securities diversified among security types, industries and issuers. Our investments were held and managed by recognized financial institutions that followed our investment policy with the main objective of preserving capital and maintaining liquidity. Concentrations of credit risk with respect to trade receivables exist to the full extent of amounts presented in the financial statements. We had no textbook wholesalers or other customers that represented greater than 10% of our net accounts receivable balance as of December 31, 2017 and 2016 . No customers represented over 10% of net revenues in 2017 , 2016 or 2015 . Property and Equipment Property and equipment are recorded at cost less accumulated depreciation and content amortization. Depreciation and content amortization are computed using the straight-line method over the following estimated useful lives of the assets: Classification Useful Life Computers and equipment 3 years Software 3 years Furniture and fixtures 5 years Leasehold improvements Shorter of the remaining lease term or the estimated useful life of 5 years Content Shorter of the licensed content term or the estimated useful life of 5 years We capitalize content costs related to the purchase or development of Chegg Study and Test Prep content and amortize these costs over a period of five years. Depreciation and content amortization expense are generally classified within the corresponding cost of revenues and operating expenses categories in our consolidated statements of operations. Depreciation and content amortization expense during the years ended December 31, 2017 , 2016 and 2015 were approximately $13.8 million , $9.9 million and $6.8 million , respectively. The cost of maintenance and repairs is expensed as incurred. When assets are retired or otherwise disposed of, the cost and related accumulated depreciation and amortization are removed from their respective accounts, and any gain or loss on such sale or disposal is reflected in loss from operations. Business Combinations We allocate the fair value of purchase consideration to the tangible assets acquired, liabilities assumed and intangible assets acquired based on their estimated fair values. The excess of the fair value of purchase consideration over the fair values of these identifiable assets and liabilities is recorded as goodwill. Such valuations require management to make significant estimates and assumptions, especially with respect to intangible assets. Significant estimates in valuing certain intangible assets include, but are not limited to, future expected cash flows from acquired users, acquired technology, and trade names from a market participant perspective, useful lives and discount rates. Management’s estimates of fair value are based upon assumptions believed to be reasonable, but which are inherently uncertain and unpredictable and, as a result, actual results may differ from estimates. During the measurement period, which is not to exceed one year from the acquisition date, we may record adjustments to the assets acquired and liabilities assumed, with the corresponding offset to goodwill. Upon the conclusion of the measurement period, any subsequent adjustments are recorded to earnings. Goodwill and Indefinite-Lived Intangible Asset Goodwill represents the excess of the fair value of consideration paid over the estimated fair value of assets acquired and liabilities assumed in a business acquisition. Our indefinite-lived intangible asset represents the internships.com trade name. Goodwill and our indefinite-lived intangible asset are not amortized but rather tested for impairment at least annually on October 1, or more frequently if certain events or indicators of impairment occur between annual impairment tests. We first assess qualitative factors to determine whether it is necessary to perform the two-step quantitative impairment test. In our qualitative assessment, we consider factors including economic conditions, industry and market conditions and developments, overall financial performance and other relevant entity-specific events in determining whether it is more likely than not that the fair value of our reporting unit is less than the carrying amount. We completed our annual impairment test on October 1 of 2017 and 2016 , each of which did not result in any impairment as our qualitative assessment did not indicate that it is more likely than not that the fair value of our reporting unit is less than the carrying amount. Acquired Intangible Assets and Other Long-Lived Assets Acquired intangible assets with finite useful lives, which include developed technology, customer lists, trade names, non-compete agreements, and master service agreements, are amortized over their estimated useful lives. We assess the impairment of acquired intangible assets and other long-lived assets when events or changes in circumstances indicate that the carrying amount of such assets may not be recoverable. Revenue Recognition and Deferred Revenue Revenues are recognized when the four basic criteria for revenue recognition have been met as follows: persuasive evidence of an arrangement exists, delivery has occurred and title has transferred, the sale price is fixed or determinable, and collection is reasonably assured. Revenues are presented net of sales tax collected from customers to be remitted to governmental authorities and net of allowances for estimated cancellations and customer returns, which are based on historical data. Customer refunds, from cancellations and returns, or charge backs from our payment processors who process payments from credit cards, debit cards, and PayPal, are recorded as a reduction to revenues. We generate revenues from our Chegg Services product line including our Chegg Study service, our Chegg Writing service, our Chegg Tutors service, Test Prep, through our partnership with Kaplan, Internship services, Brand Partnership services that we offer to brands and Enrollment Marketing services to colleges, through our strategic partnership with NRCCUA. Chegg Services are offered to students through weekly, monthly or annual subscriptions, and we recognize revenues ratably over the respective subscription period. Enrollment Marketing services and Brand Partnership services are offered either on a subscription or on an a la carte basis. Revenues are recognized ratably or as earned over the subscription service period, generally one year. Revenues from Enrollment Marketing services or Brand Partnership services delivered on an a la carte basis, without a subscription, are recognized when delivery of the respective lead or service has occurred. For these services, we bill the customer at the inception, over the term of the customer arrangement or as the services are performed. Upon satisfactory assessment of creditworthiness, we generally grant credit to our Enrollment Marketing and Brand Partnership customers with normal credit terms, typically 30 days. Some of our customer arrangements for Enrollment Marketing and Brand Partnership services include multiple deliverables, which include the delivery of student leads as well as other services to the end customer. We have determined these deliverables qualify as separate units of accounting, as they have value to the customer on a standalone basis and our arrangements do not contain a right of return. For these arrangements that contain multiple deliverables, we allocate the arrangement consideration based on the relative selling price method in accordance with the selling price hierarchy, which includes: (1) vendor-specific objective evidence of fair value (VSOE), when available; (2) third-party evidence of selling price (TPE), if VSOE does not exist; and (3) estimated selling price (ESP), if neither VSOE nor TPE is available. We determine VSOE based on our historical pricing and discounting practices for the specific solution when sold separately and when a substantial majority of the selling prices for these services fall within a narrow range. TPE is determined based on competitor prices for similar deliverables when sold separately. Generally, our go-to-market strategy differs from that of our peers, and our offerings contain a significant level of differentiation such that the comparable pricing of services with similar functionality cannot be obtained. If we have not established VSOE or TPE for our Enrollment Marketing services, we have used ESP in our allocation of arrangement consideration. Additionally, we limit the amount of revenues recognized for delivered elements to the amount that is not contingent on future delivery of services or other future performance obligations. Deferred revenue primarily consists of advanced payments from students related to rentals and subscriptions that have not been recognized, and marketing services that have yet to be performed. Deferred revenue is recognized as revenues ratably over the term or when the services are provided and all other revenue recognition criteria have been met. We historically generated revenues from the rental of print textbooks and to a lesser extent, through the sales of print textbooks through our website on a just-in-time basis. Rental revenues for textbooks that we owned were previously recognized ratably over the term of the rental period, generally two to five months. Commissions earned on rental textbooks owned by Ingram and other partners are recognized immediately when a book ships to the student. We did not recognize any revenues from the rental or sale of our own print textbooks during the year ended December 31, 2017 reflecting our transition of print textbook rentals to Ingram and the increasing growth in our Chegg Services. Revenues from selling textbooks on a just-in-time basis were historically recognized upon shipment. During the year ended December 31, 2017, revenues from selling textbooks on a just-in-time basis are commission based as a result of the transition to Ingram and other partners. Revenues from the rental or sale of eTextbooks is recognized ratably over the contractual period, generally two to five months or at time of the sale, respectively . We evaluate whether we are acting as a principal or an agent in a transaction, and therefore would record the gross sales amount and related costs as revenues or the net amount earned as commissions from the sale of third-party products. Our determination is based on our evaluation of certain indicators including whether we are the principal in the transaction, are subject to inventory risk, have latitude in establishing prices and selecting suppliers, none of which is presumptive or determinative. We generally operate as the principal and so in those instances revenues are recorded at the gross sale price. We generally record the net amounts as commissions earned when such amounts are determined using a fixed percentage of the transaction price, we are not subject to inventory risk or responsible for the fulfillment of the textbooks. We operate as an agent in our strategic partnership with Ingram and agreements with other partners and therefore our revenues include a commission on the total transaction amount that we earn upon Ingram's fulfillment of a rental transaction using print textbooks for which Ingram or the other partner has title and risk of loss, as opposed to the total rental transaction amount. We also present our revenues separately for rental, services and sales. Rental revenues historically included the rental of print textbooks for which we take title and bear the risk of loss, service revenues includes Chegg Study, Chegg Writing, Chegg Tutors, Enrollment Marketing, Brand Partnership, eTextbooks, and commissions we earn from Ingram, other partners, and e-commerce partners; sales revenues includes just-in-time sale of print textbooks and the sale of other required materials. As a result of our strategic partnership with Ingram and other partners, we no longer recognize rental revenues or sales revenues from the rental or sale of a print textbook. Instead, our services revenues includes a commission on the total transaction amount that we earn from Ingram and other partners upon Ingram's fulfillment of a rental transaction using books for which Ingram or other partner has title and risk of loss, as opposed to the total rental transaction amount. Cost of Revenues Our cost of revenues consists primarily of expenses associated with the delivery and distribution of our products and services. Certain cost of revenues, including textbook depreciation expense, the cost of textbooks sold, write-offs and allowances related to the print textbook library, have decreased during 2016 and in to 2017 as we have completely transitioned the shipping and fulfillment activities related to the rental and sale of print textbooks to Ingram. Cost of revenues consists of publisher content fees for eTextbooks, content amortization expense related to content that we develop or license, including publisher agreements for which we pay one-time license fees for published content, payment processing costs, the payments made to tutors through our Chegg Tutors service, Enrollment Marketing services leads purchased from third-party suppliers to fulfill leads that we are unable to fulfill through our internal database, personnel costs and other direct costs related to providing content or services. In addition, cost of revenues includes allocated information technology and facilities costs. Technology and Development Costs Our technology and development expenses consist of salaries, benefits and share-based compensation expense for employees in our product and web design, engineering and technical teams who are responsible for maintaining our website, developing new products and improving existing products. Technology and development costs also include amortization of acquired intangible assets, webhosting costs, third-party development costs, research and development expenses and allocated information technology and facilities expenses. We expense substantially all of our technology and development expenses as they are incurred. Advertising Costs Advertising costs are expensed as incurred and consist primarily of online advertising and marketing promotional expenditures. During years ended December 31, 2017 , 2016 and 2015 , advertising costs were approximately $16.5 million , $18.4 million , and $25.0 million , respectively. Share-based Compensation Share-based compensation expense for stock options, restricted stock units (RSUs), performance-based restricted stock units (PSUs), and employee stock purchase plan (ESPP) are accounted for under the fair value method, which requires us to measure the cost of employee share-based compensation awards based on the grant-date fair value of the award. Share-based compensation expense for stock options and our ESPP is estimated at the date of grant using the Black-Scholes-Merton option pricing model while expense for RSUs and PSUs is measured based on the closing fair market value of the Company’s common stock on the date of grant. We recognize share-based compensation expense over the requisite service period, which is generally the vesting period, on a straight line basis for RSUs and on a graded basis for PSUs, contingent on the achievement of performance conditions. These amounts are reduced by estimated forfeitures, which are estimated at the time of the grant and revised, if necessary, in subsequent periods if actual forfeitures differ from those estimates. Equity awards issued to non-employees are recorded at their fair value on the measurement date and are subject to adjustment each period as the underlying awards vest or consulting services are performed. Income Taxes We account for income taxes under an asset and liability method whereby deferred tax asset and liability account balances are determined based on differences between the financial reporting and the tax basis of assets and liabilities, and are measured using the enacted tax rates and laws that will be in effect when the differences are expected to reverse. Valuation allowances are established, when necessary, to reduce deferred tax assets to an amount that is more likely than not to be realized. We recognize the benefit from a tax position only if it is more likely than not that the position would be sustained upon audit based solely on the technical merits of the tax position. Our policy is to include interest and penalties related to unrecognized tax benefits as a component of income tax expense. Restructuring Charges Restructuring charges are primarily comprised of severance costs, contract and program termination costs, asset impairments and costs of facility consolidation and closure. Restructuring charges are recorded upon approval of a formal management plan and are included in the operating results of the period in which such plan is approved and the expense becomes estimable. To estimate restructuring charges, management utilizes assumptions of the number of employees that would be involuntarily terminated and of future costs to operate and eventually vacate duplicate facilities. Severance and other employee separation costs are accrued when it is probable that benefits will be paid and the amount is reasonably estimable. The rates used in determining severance accruals are based on our policies and practices and negotiated settlements. Restructuring charges for employee workforce reductions are recorded upon employee notification for employees whose required continuing service period is 60 days or less and ratably over the employee’s continuing service period for employees whose required continuing service period is greater than 60 days. Strategic Investment We have entered into an equity investment in a privately-held foreign entity to explore expanding our reach internationally. Our investment is accounted for under the cost method and we periodically review this investment for other-than-temporary declines in fair value based on the specific identification method and write down the value of our investment when an other-than-temporary decline has occurred. Any fair value estimates are made based on consideration of the current cash position, recent operational performance, and forecasts of the investees. During years ended December 31, 2017 , 2016 and 2015 , we did not record any other-than-temporary declines in the value of our investment. Net Loss Per Share Basic net loss per share is computed by dividing the net loss by the weighted-average number of shares of common stock outstanding during the period. Diluted net loss per share is computed by giving effect to all potential shares of common stock, including stock options, warrants, restricted stock units (RSUs), and performance-based restricted stock units (PSUs), to the extent dilutive. Basic and diluted net loss per share was the same for each period presented as the inclusion of all potential common shares outstanding would have been anti-dilutive. The following table sets forth the computation of historical basic and diluted net loss per share (in thousands, except per share amounts): Years Ended December 31, 2017 2016 2015 Numerator: Net loss $ (20,283 ) $ (42,245 ) $ (59,210 ) Denominator: Weighted average shares used to compute net loss per share, basic and diluted 100,022 90,534 86,818 Net loss per share, basic and diluted $ (0.20 ) $ (0.47 ) $ (0.68 ) The following potential weighted-average shares of common stock outstanding were excluded from the computation of diluted net loss per share attributable to common stockholders because including them would have been anti-dilutive (in thousands): Years Ended December 31, 2017 2016 2015 Options to purchase common stock 3,045 10,799 11,446 RSUs and PSUs 153 1,239 200 Employee stock purchase plan 5 15 — Warrants to purchase common stock — 200 299 Total common stock equivalents 3,203 12,253 11,945 Foreign Currency Translation The functional currency of our foreign subsidiaries is the local currency. Adjustments resulting from the translation of foreign currencies into U.S. dollars for balance sheet amounts are based on the exchange rates as of the consolidated balance sheet date. Non-monetary balance sheet items denominated in a currency other than the applicable functional currency are translated using the historical rate. Revenues and expenses are translated at average exchange rates during the period. Foreign currency translation gains or losses are included in accumulated other comprehensive loss as a component of stockholders’ equity on the consolidated balance sheets. Gains or losses resulting from foreign currency transactions, which are denominated in currencies other than the entity’s functional currency, are included in other income (expense), net in the consolidated statements of operations and were not material during 2017 , 2016 or 2015 . Recent Accounting Pronouncements In May 2017, the Financial Accounting Standards Board (FASB) issued Accounting Standards Update (ASU) No. 2017-09, Compensation - Stock Compensation (Topic 718): Scope of Modification Accounting . ASU 2017-09 clarifies when changes to the terms or conditions of a share-based payment award must be accounted for as a modification. The guidance is effective for annual periods beginning after December 15, 2017, with early adoption permitted, and the guidance requires a prospective application to awards modified on or after the adoption date. We elected to early adopt this standard as of July 1, 2017 and will account for any modifications after this date under the new guidance. In January 2017, the FASB issued ASU No. 2017-04, Intangibles - Goodwill and Other (Topic 350): Simplifying the Test for Goodwill Impairment . ASU 2017-04 eliminates step 2 from the annual goodwill impairment test no longer requiring the comparison of the implied fair value of a reporting unit's goodwill with the carrying amount of goodwill. Early adoption is permitted and the guidance requires a prospective application. The guidance is effective for annual periods beginning after December 15, 2019, and we are currently in the process of evaluating the impact of this guidance. In January 2017, the FASB issued ASU No. 2017-01, Business Combinations (Topic 805): Clarifying the Definition of a Business . ASU 2017-01 clarifies the definition of a business to assist entities with evaluating whether a transaction should be accounted for as acquisitions of assets or businesses. We will analyze the clarified definition of a business for potential future transactions to determine whether they should be accounted for as an asset acquisition or business combination under the new guidance. Early adoption is permitted and the guidance requires a prospective application. The guidance is effective for annual periods beginning after December 15, 2017 and we will adopt the guidance on January 1, 2018. In November 2016, the FASB issued ASU 2016-18, Statement of Cash Flows (Topic 230): Restricted Cash . ASU 2016-18 requires an entity to explain the change during a period in restricted cash equivalents on the consolidated statements of cash flows and include such amounts when reconciling beginning-of-period and end-of-period total amounts shown on the consolidated statements of cash flows. Early adoption is permitted, and the guidance requires a retrospective adoption. The guidance is effective for annual periods beginning after December 15, 2017, and we will adopt the guidance on January 1, 2018. In March 2016, the FASB issued ASU No. 2016-09, Compensation - Stock Compensation (Topic 718): Improvements to Employee Share-Based Payment Accounting to provide for simplification involving several aspects of the accounting for share-based payment transactions. The new standard requires excess tax benefits and tax deficiencies to be recorded in our consolidated statements of operations as a component of provision for income taxes when stock awards vest or are settled and an option to recognize gross share-based compensation expense with actual forfeitures recognized as they occur. In addition, it eliminates the requirement to reclassify cash flows related to excess tax benefits from operating activities to financing activities on the consolidated statements of cash flows and clarifies that all cash payments made to tax authorities on an employee’s behalf for withheld shares should be presented as a financing activity on the consolidated statements of cash flows. The standard also allows us to withhold more of an employee’s vesting shares for tax withholding purposes without triggering liability accounting. We adopted this standard in the first quarter of 2017 and the adoption had no impact to our consolidated financial statements. The requirement to record excess tax benefits and deficiencies in our consolidated statements of operations as a component of provision of income taxes when stock awards vest or are settled does not impact our provision of income taxes as we currently have a full valuation allowance recorded against our deferred tax assets related to share-based compensation. Additionally, we have elected to continue to recognize share-based compensation expense net of estimated forfeitures. We have not recorded an adjustment to retained earnings to reflect the modified retrospective adoption of this standard update as neither of these updates change the accounting of the prior period financial results. We have elected to adopt the elimination of the requirement to reclassify cash flows related to excess tax benefits from operating activities to financing activities on the consolidated statements of cash flows prospectively and therefore prior periods have not been adjusted. Further, there was no change related to the requirement that all payments made to tax authorities on an employees' behalf for withheld shares be presented as a financing activity on the consolidated statements of cash flows as we have always recorded such amounts as a financing activity. In February 2016, the FASB issued ASU 2016-02, Leases (Topic 842) . ASU 2016-02 requires an entity to recognize a right-of-use asset and lease liability for all leases with terms of more than 12 months. Recognition, measurement, and presentation of expenses will depend on classification as a finance or operating lease. The amendments in this update also require certain quantitative and qualitative disclosures about leasing arrangements. Early adoption is permitted, and the guidance requires a modified retrospective adoption. The guidance is effective for annual periods beginning after December 15, 2018 and we plan to adopt the guidance on January 1, 2019. We plan to elect the package of transition practical expedients which include not reassessing whether any expired or existing contracts are or contain leases, not reassessing the lease classification of expired or existing leases, and not reassessing initial direct costs for existing leases. We will continu |