Summary of significant accounting policies | Summary of significant accounting policies Basis of presentation and preparation The consolidated financial statements, which include the accounts of Sonos, Inc. and its wholly owned subsidiaries, have been prepared in conformity with accounting principles generally accepted in the United States ("U.S. GAAP"). All intercompany accounts and transactions have been eliminated in consolidation. Certain prior period amounts have been reclassified to conform to the current period presentation. The Company operates on a 52- or 53- week fiscal year ending on the Saturday nearest September 30 each year. The Company’s fiscal year is divided into four quarters of 13 weeks, each beginning on a Sunday and containing two 4-week periods followed by a 5-week period. An additional week is included in the fourth fiscal quarter approximately every five years to realign fiscal quarters with calendar quarters. This occurred last in the fourth quarter of the Company’s fiscal year ended October 3, 2015 and will next reoccur in the fiscal year ended October 3, 2020. References to fiscal 2019 are to the Company’s fiscal year ended September 28, 2019 , references to fiscal 2018 are to the Company’s fiscal year ended September 29, 2018 and references to fiscal 2017 are to the Company’s fiscal year ended September 30, 2017 . Stock split On July 19, 2018, the Company effected a two -for-one stock split of all outstanding shares of the Company’s capital stock, including its common stock and its redeemable convertible preferred stock. All share and per share information presented in the consolidated financial statements have been retroactively adjusted for all periods presented for the effects of the stock split. Use of estimates and judgments The preparation of financial statements in conformity with U.S. GAAP requires management to make estimates and judgments that affect the amounts reported and disclosed in the consolidated financial statements and accompanying notes. Actual results could differ materially from those estimates. For revenue recognition, examples of estimates and judgments include: determining the nature and timing of satisfaction of performance obligations, determining the standalone selling price ("SSP") of performance obligations, estimating variable consideration such as sales incentives, and product returns. Additionally, estimates and judgments are made by management for allowances for doubtful accounts, the market value of and demand for inventory, useful lives associated with property and equipment, valuation allowances with respect to deferred tax assets and uncertain tax positions, impairment of long-lived assets, goodwill impairment, warranty, contingencies and valuation and assumptions underlying stock-based compensation and other equity instruments. On an ongoing basis, the Company evaluates its estimates and judgments compared to historical experience and trends that form the basis for making estimates and judgments about the carrying value of assets and liabilities. Comprehensive loss Comprehensive loss consists of two components: net loss and other comprehensive income (loss) . Other comprehensive income (loss) refers to net gains and losses that are recorded as an element of stockholders’ equity (deficit), but are excluded from net loss . The Company’s other comprehensive income (loss) consists of net unrealized gains and losses on foreign currency translation adjustments from those subsidiaries not using the U.S. dollar as their functional currency. Cash and cash equivalents Cash equivalents consist of short-term, highly liquid financial instruments with insignificant interest rate risk that are readily convertible to cash and have maturities of three months or less from the date of purchase. As of September 28, 2019 and September 29, 2018 , cash equivalents consisted of money market funds, which are recorded at fair value. Restricted cash The Company held $0.2 million in restricted cash as of September 28, 2019 and September 29, 2018 , representing security deposits on real estate leases. Accounts receivable Accounts receivable are recorded at the invoiced amount less allowances for doubtful accounts and sales incentives, do not require collateral and do not bear interest. The allowance for doubtful accounts is established through a provision for net bad debt expense which is recorded in general and administrative expense in the consolidated statements of operations and comprehensive loss. The Company determines the adequacy of the allowance for doubtful accounts by evaluating customer accounts receivable balances as well as the customer’s financial condition, credit history and current economic conditions. This estimate is periodically adjusted as a result of the aforementioned process, or when the Company becomes aware of a specific customer’s inability to meet its financial obligations. Concentration of credit risk Financial instruments that potentially subject the Company to significant concentrations of credit risk consist principally of cash and cash equivalents and accounts receivable. The Company maintains cash and cash equivalents in several high-quality financial institutions. Cash and cash equivalents held at these banks, including those held in foreign branches of global banks, may exceed the amount of insurance provided on such deposits. These deposits may be redeemed upon demand and management believes that the financial institutions that hold the Company’s cash and cash equivalents are financially sound and, accordingly, minimal credit risk exists with respect to cash. The Company has not experienced any losses in such accounts. As of September 28, 2019 and September 29, 2018 , the Company’s customers that accounted for 10% or more of total accounts receivable, net, were as follows: Accounts receivable, net 2019 2018 Customer A 20 % 31 % Customer B 14 % 13 % Customer C * 11 % Customer E 10 % * * Accounts receivable was less than 10%. The Company’s customers that accounted for 10% or more of total revenue were as follows: Revenue Year Ended 2019 2018 2017 Customer A 16 % 17 % 16 % Customer C 10 % 10 % 12 % Inventories Inventories primarily consist of finished goods and to a lesser extent component parts, which are purchased from contract manufacturers and component suppliers. Inventories are stated at lower of cost and net realizable value on a first-in, first-out basis. The Company assesses the valuation of inventory balances including an assessment to determine potential excess and/or obsolete inventory. The Company may be required to write down the value of inventory if estimates of future demand and market conditions indicate estimated excess or obsolete inventory. For the periods presented, the Company has not experienced significant write-downs. Property and equipment, net Property and equipment are stated at historical cost less accumulated depreciation. Depreciation is calculated using the straight-line method over the estimated useful lives of the related assets as follows: Computer hardware and software 2-3 years Furniture and fixtures 3-5 years Tooling and production line test equipment 2-4 years Leasehold improvements 2-10 years Product displays 1-3 years Costs incurred to improve leased office space are capitalized. Leasehold improvements are amortized on a straight-line basis over the shorter of the term of the lease or the estimated useful life of the improvement. Expenditures for major renewals and improvements that extend the useful lives of property and equipment are capitalized. Maintenance, repair costs and gains or losses associated with disposals are charged to expense as incurred. Product displays are deployed at retail locations. Because the product displays facilitate marketing of the Company’s products within the retail stores, depreciation for product displays is recorded in sales and marketing expenses in the consolidated statements of operations and comprehensive loss. Impairment of long-lived assets The Company evaluates the recoverability of its long-lived assets, primarily comprised of property and equipment, for impairment whenever events or changes in circumstances indicate that the carrying amounts may not be recoverable. The Company performs impairment testing at the level that represents the lowest level for which identifiable cash flows are largely independent of the cash flows of other assets and liabilities. Recoverability is measured by comparing the carrying amounts to the expected future undiscounted cash flows attributable to the assets. If it is determined that an asset may not be recoverable, an impairment loss equal to the excess of the asset’s carrying value over its fair value is recorded. Fair value is determined based upon estimated discounted future cash flows. There were no impairment charges identified on the Company’s long-lived assets for each period presented. Product warranties The Company’s products are covered by warranty to be free from defects in material and workmanship for a period of one year , except in the European Union and select other countries where the Company provides a two -year warranty on all its products. At the time of sale, an estimate of future warranty costs is recorded as a component of cost of revenue and a warranty liability is recorded for estimated costs to satisfy the warranty obligation. The Company’s estimate of costs to fulfill its warranty obligations is based on historical experience and expectations of future costs to repair or replace. Legal contingencies If a potential loss from any claim or legal proceeding is considered probable, and the amount can be reasonably estimated, the Company accrues a liability for an estimated loss. Legal fees are expensed as incurred and included in general and administrative expenses in the consolidated statements of operations and comprehensive loss. See Note 11 for additional information regarding legal contingencies. Treasury stock The Company accounts for treasury stock acquisitions using the cost method. The Company accounts for the retirement of treasury stock by deducting its par value from common stock and reflecting any excess of cost over par value as a deduction from additional paid-in capital on the consolidated balance sheets. Fair value accounting Assets and liabilities recorded at fair value on the consolidated balance sheets are categorized based upon the level of judgment associated with the inputs used to measure their fair value. Fair value is estimated by applying the following hierarchy, which prioritizes the inputs used to measure fair value into three levels and bases the categorization within the hierarchy upon the lowest level of input that is available and significant to the fair value measurement: Level Input Input Definition Level 1 Quoted prices for identical assets or liabilities in active markets at the measurement date. Level 2 Inputs, other than quoted prices included in Level 1, such as quoted prices for similar assets or liabilities, in active markets or other inputs that are observable or can be corroborated with market data at the measurement date. Level 3 Unobservable inputs that reflect management's best estimate of what market participants would use in pricing the asset or liability at the measurement date. Foreign currency Certain of the Company’s wholly owned subsidiaries have non-U.S. dollar functional currencies. The Company translates assets and liabilities of non-U.S. dollar functional currency subsidiaries into U.S. dollars using exchange rates in effect at the end of each period and stockholders’ equity at historical rates. Revenue and expenses for these subsidiaries are translated using rates that approximate those in effect during the period. Gains and losses from translation are recognized in foreign currency translation included in accumulated other comprehensive loss . The Company remeasures monetary assets or liabilities denominated in currencies other than the functional currency using exchange rates prevailing on the balance sheet date, and non-monetary assets and liabilities at historical rates. Foreign currency remeasurement and transaction gains and losses are included in other income (expense), net. Foreign currency remeasurement and transaction gains (losses) are recorded in other income (expense), net and were $(8.6) million , $(1.2) million and $3.2 million for fiscal 2019 , 2018 and 2017 , respectively. Revenue recognition Revenue is recognized upon transfer of control of promised products or services to customers in an amount that reflects the consideration the Company expects to receive in exchange for those products or services. The Company generally enters into contracts that include a combination of products and services. Revenue is allocated to distinct performance obligations and is recognized net of allowances for returns, discounts, sales incentives and any taxes collected from customers, which are subsequently remitted to governmental authorities. Shipping and handling costs associated with outbound freight after control over a product has transferred to a customer are accounted for as a fulfillment cost and are included in cost of revenue. As of September 28, 2019 and September 29, 2018 , the Company did not have any material assets related to incremental costs to obtain or fulfill customer contracts. In the prior year, the Company adopted ASC 606 using the full retrospective transition method which resulted in an acceleration of revenue and related costs of revenue and most significantly, a reduction in deferred costs and revenue and deferred revenue at each balance sheet date. Nature of products and services Product revenue includes sales of wireless speakers, home theater speakers and components, which include software that enables the Company’s products to operate over a customer’s wireless network, as well as connect to various third-party services, including music and voice. The Company also generates a small portion of revenue from other revenue sources such as sales of module units and Sonos and third-party accessories, which include speaker stands and wall mounts. Module revenue is comprised of hardware and embedded software that is integrated into final products that are manufactured and sold by the Company's partners. Software primarily consists of firmware embedded in the products and the Sonos app, which is software that can be downloaded to consumer devices at no charge, with or without the purchase of one of the Company’s products. Products and related software are accounted for as a single performance obligation and all intended functionality is available to the customer upon purchase. The revenue allocated to the products and related software is the substantial portion of the total sale price. Product revenue is recognized at the point in time when control is transferred, which is either upon shipment or upon delivery to the customer, depending on delivery terms. Service revenue includes revenue allocated to (i) unspecified software upgrades and (ii) cloud-based services that enable products to access third-party music and voice assistant platforms, which are each distinct performance obligations and are provided to customers at no additional charge. Unspecified software upgrades are provided on a when-and-if-available basis and have historically included updates and enhancements such as bug fixes, feature enhancements and updates to the ability to connect to third-party music or voice assistant platforms. Service revenue is recognized ratably over the estimated service period. Significant judgments The Company’s contracts with customers generally contain promises to transfer products and services as described above. Determining whether products and services are considered distinct performance obligations that should be accounted for separately requires significant judgment. Judgment is required to determine the SSP for each distinct performance obligation. The Company estimates SSP for items that are not sold separately, which include the products and related software, unspecified software upgrades and cloud-based services, using information that may include competitive pricing information, where available, as well as analyses of the cost of providing the products or services plus a reasonable margin. In developing SSP estimates, the Company also considers the nature of the products and services and the expected level of future services. Determining the revenue recognition period for unspecified software upgrades and cloud-based services also requires judgment. The Company recognizes revenue attributable to these performance obligations ratably over the best estimate of the period that the customer is expected to receive the services. In developing the estimated period of providing future services, the Company considers past history, plans to continue to provide services, including plans to continue to support updates and enhancements to prior versions of the Company’s products, expected technological developments, obsolescence, competition and other factors. The estimated service period may change in the future in response to competition, technology developments and the Company’s business strategy. The Company offers sales incentives through various programs consisting primarily of discounts, cooperative advertising and market development fund programs. The Company records cooperative advertising and market development fund programs with customers as a reduction to revenue unless it receives a distinct benefit in exchange for credits claimed by the customer and can reasonably estimate the fair value of the benefit received, in which case the Company records it as an expense. The Company recognizes a liability or a reduction to accounts receivable, and reduces revenue based on the estimated amount of sales incentives that will be claimed by customers. Estimates for sales incentives are developed using the most likely amount and are included in the transaction price to the extent that a significant reversal of revenue would not result once the uncertainty is resolved. In developing its estimate, the Company also considers the susceptibility of the incentive to outside influences, the length of time until the uncertainty is resolved and the Company’s experience with similar contracts. Reductions in revenue related to discounts are allocated to products and services on a relative basis based on their respective SSP. Judgment is required to determine the timing and amount of recognition of marketing funds which the Company estimates based on past practice of providing similar funds. The Company accepts returns from direct customers and from certain resellers. To establish an estimate for returns, the Company uses the expected value method by considering a portfolio of contracts with similar characteristics to calculate the historical returns rate. When determining the expected value of returns, the Company considers future business initiatives and relevant anticipated future events. Supplier concentration The Company relies on third parties for the supply and manufacture of its products, as well as third-party logistics providers. In instances where these parties fail to perform their obligations, the Company may be unable to find alternative suppliers or satisfactorily deliver its products to customers on time, if at all. During fiscal 2019 , 2018 and 2017 , approximately 83% , 98% and 99% , respectively, of the Company’s finished goods purchased during each year were from one vendor. Deferred revenue and payment terms The Company invoices each order upon hardware shipment or delivery and recognizes revenue for each distinct performance obligation when transfer of control has occurred, which in the case of services, may extend over several reporting periods. Amounts invoiced in advance of revenue recognition are recorded as deferred revenue on the consolidated balance sheets. Deferred revenue primarily relates to revenue allocated to unspecified software upgrades and platform services. The Company classifies deferred revenue as noncurrent if amounts are expected to be recognized as revenue after more than one year from the balance sheet date. Payment terms Payment terms and conditions vary among the Company’s distribution channels although terms generally include a requirement of payment within 30 days of product shipment. Sales directly to customers from the Company’s website are paid at the time of product shipment. Prior to providing payment terms to customers, an evaluation of the customer’s credit risk is performed. Contractual allowances are an offset to accounts receivable. Research and development Research and development expenses consist primarily of personnel-related expenses, consulting and outside professional service costs, tooling and prototype materials and overhead costs. Substantially all of the Company’s research and development expenses are related to developing new products and services and improving existing products and services. To date, software development costs have been expensed as incurred because the period between achieving technological feasibility and the release of the software has been short and development costs qualifying for capitalization have been insignificant. Advertising costs Advertising costs are expensed as incurred and included in sales and marketing expenses. Advertising expenses were $48.8 million , $50.2 million and $72.2 million for fiscal 2019 , 2018 and 2017 , respectively. Stock-based compensation The Company measures stock-based compensation cost at fair value on the date of grant. Compensation cost for stock options is recognized, on a straight-line basis, as an expense over the period of vesting as the employee performs the related services, net of estimated forfeitures. The Company estimates the fair value of stock option awards using the Black-Scholes option-pricing model. The fair value of restricted stock units ("RSUs") is based on the Company's closing stock price on the trading day immediately preceding the date of grant and for stock options with graded vesting are recognized, on a straight-line basis, as an expense over the period of vesting as the employee performs the related services, net of estimated forfeitures. The Company estimates forfeitures based on expected future terminations and will revise rates, as necessary, in subsequent periods if actual forfeitures differ from initial estimates. Retirement Plans The Company has a defined contribution 401(k) plan (the "401(k) Plan") for the Company’s U.S.-based employees, as well as various benefit plans, principally defined contribution plans, for its international employees. Eligible U.S. employees may contribute up to 100% of their annual compensation under the 401(k) plan, but are limited to the maximum annual dollar amount allowable under the Internal Revenue Code of 1986, as amended (the "Code"). In the second quarter of fiscal 2019, the Company began making matching contributions towards the 401(k) Plan, as well as towards the international defined contribution plans. Income taxes The Company accounts for income taxes under the asset and liability method, which requires the recognition of deferred tax assets and liabilities for the expected future tax consequences of events that have been included in the financial statements. Under this method, deferred tax assets and liabilities are determined based on the differences between the financial statements and tax basis of assets and liabilities using enacted tax rates in effect for the year in which the differences are expected to reverse. The effect of a change in tax rates on deferred tax assets and liabilities is recognized in income in the period that includes the enactment date. The Company records a valuation allowance to the extent that its deferred tax assets are not more likely than not to be realized. In making such a determination, all available positive and negative evidence is considered, including future reversals of existing taxable temporary differences, projected future taxable income, tax-planning strategies and results of recent operations. If the Company determines that it would be able to realize its deferred tax assets in the future in excess of their net recorded amount, the Company would make an adjustment to the deferred tax asset valuation allowance, which would reduce the provision for income taxes. The Company records uncertain tax positions in accordance with a two-step process whereby (i) the Company determines whether it is more likely than not that the tax positions will be sustained on the basis of the technical merits of the position and (ii) for those tax positions that meet the more likely than not recognition threshold, the Company recognizes the largest amount of tax benefit that is more than 50% likely to be realized upon ultimate settlement with the related tax authority. The Company includes interest and penalties related to unrecognized tax benefits within the provision for income taxes in the consolidated statements of operations and comprehensive loss. The Company has not incurred any interest or penalties related to unrecognized tax benefits in any of the periods presented. The Company’s provision for (benefit from) income taxes, deferred tax assets and liabilities and liabilities for unrecognized tax benefits involves the use of estimates, assumptions and judgments. Although the Company believes its estimates, assumptions and judgments to be reasonable, any changes in tax law or its interpretation of tax laws and the resolutions of potential tax audits could significantly impact the amounts provided for income taxes in the Company’s consolidated financial statements. Actual future operating results and the underlying amount and type of income could differ materially from the Company’s estimates, assumptions and judgments thereby impacting the Company’s financial position and results of operations. Segment information The Company operates as one operating segment as it only reports aggregate financial information on a consolidated basis, accompanied by disaggregated information about revenue by geographic region and product category to its Chief Executive Officer, who is the Company’s chief operating decision maker. Leases The substantial majority of the Company’s leases are for its office spaces and facilities, which are accounted for as operating leases. For leases that contain rent escalation or rent concession provisions, the Company recognizes rent on a straight-line basis over the term of the lease. The Company does not assume renewals in its determination of the lease term unless the renewals are deemed to be reasonably assured at inception. Tenant improvement allowances received from landlords are recorded as a credit to deferred rent, reported as a liability on the consolidated balance sheets and amortized on a straight-line basis over the lease term as a reduction to rent expense in the consolidated statements of operations and comprehensive loss. Recently adopted accounting pronouncements Stock-based compensation In June 2018, the Financial Accounting Standards Board (the “FASB”) issued Accounting Standards Update (“ASU”) No. 2018-07, Compensation—Stock Compensation (Topic 718): Improvements to Nonemployee Share-Based Payment Accounting , which aligns the accounting for share-based payment awards issued to nonemployees with the guidance applicable to grants to employees. Under this new standard, equity-classified share-based payment awards issued to nonemployees will be measured on the grant date, instead of the current requirement to remeasure the awards through the performance completion date. Further, compensation cost for awards with performance conditions will be recognized when it is probable the conditions will be achieved, rather than upon actual achievement of the conditions. In the second quarter of fiscal 2019, the Company early adopted the standard using the prospective approach. There was no cumulative effect entry needed to adjust the opening retained earnings balance upon adoption. The adoption of this guidance did not have a material impact on the Company's consolidated financial statements. Statement of cash flows In November 2016, the FASB issued ASU No. 2016-18, Statement of Cash Flows (Topic 230): Restricted Cash , which enhances and clarifies the classification and presentation of restricted cash in the statement of cash flows. In the first quarter of fiscal 2019, the Company adopted this standard retrospectively to all periods presented. The Company now includes restricted cash and restricted cash equivalents with cash and cash equivalents when reconciling beginning and ending amounts shown on the statement of cash flows. The adoption of this guidance did not have a material impact on the Company's consolidated financial statements. In August 2016, the FASB issued ASU No. 2016-15, Statement of Cash Flows (Topic 230): Classification of Certain Cash Receipts and Cash Payments, which reduces diversity in practice in how certain transactions are classified in the statement of cash flows. In the first quarter of fiscal 2019, the Company retrospectively adopted this standard to all periods presented. The adoption of this guidance did not have a material impact on the Company's consolidated financial statements. Income taxes In October 2016, the FASB issued ASU No. 2016-16, Income Taxes (Topic 740): Intra-Entity Transfers of Assets Other than Inventory . This guidance removes the prohibition in Accounting Standards Codification ("ASC") Topic 740, Income Taxes, against the immediate recognition of the current and deferred income tax effects of intra-entity transfers of assets other than inventory. ASU 2016-16 is intended to reduce the complexity of U.S. GAAP and diversity in practice related to the tax consequences of certain types of intra-entity asset transfers, particularly those involving intellectual property. In the first quarter of fiscal 2019, the Company adopted this standard on a modified retrospective basis. The adoption of this guidance did not have a material impact on the Company's consolidated financial statements. Recent accounting pronouncements pending adoption In February 2016, the FASB issued ASU No. 2016-02, Leases (Topic 842) , and other subsequent amendments, collectively referred to as Topic 842, which modifies lease accounting in order to increase transparency and comparability among entities. The standard requires lessees to recognize on the balance sheet, right-of-use assets and lease liabilities for the rights and obligations created by leases. In July 2018, the FASB issued ASU No. 2018-11, Leases (Topic 842): Targeted improvements, which provides an alternative transition method that entities can elect when adopting this standard. The Company plans to adopt the new standard effective September 29, 2019, using the optional transition method, recognizing a cumulative-effect adjustment to its balance of accumulated deficit at September 29, 2019 without restating comparative periods presented. The Company’s leases primarily include real estate leases and automobile leases. In adopting the new guidance, the Company will elect, amongst other practical expediencies, not to reassess (1) whether any expired or existing contracts contain leases under the new definition of a lease; (2) the lease classification for any expired or existing leases; and (3) whether previously capitalized initial direct costs would qualify for capitalization under Topic 842. Also, for leases with lease terms less than twelve months, an entity is permitted to make an accounting policy election by class of underlying asset not to recognize lease assets and lease liabilities. If a lessee makes this election, it should recognize lease expense for such leases generally on a straight-line basis over the lease term. The Company intends to make this election for all classes of assets. Upon adoption of this standard on September 29, 2019, the Company expects an increase in both total assets and total liabilities of approximately $60.0 million to $65.0 million. The Company does not believe that the adoption of the standard will have a material impact on the Company’s consolidated statements of operations and comprehensive loss or to the consolidated statements of cash flows. The Company continues to finalize the implementation of new processes and the assessment of the impact of this adoption on its consolidated financial statements; therefore, the preliminary estimated impacts disclosed can change and the final impact will be known once the adoption is completed during the |