Credit Agreement | Credit Agreement On February 22, 2017, the Company entered into a $40 million credit card program and a credit agreement consisting of a $100 million secured revolving credit facility (the "Revolver") with Citibank, N.A. ("Citibank"). The Citibank credit facility replaced the Company's existing credit facility with Bank of America, N.A., which was terminated on February 22, 2017 as described below. On September 11, 2017, the Citibank credit agreement was amended with a new letter of credit sublimit and to make clarifying edits to the mandatory prepayment provisions of the credit agreement. On April 12, 2018, the Citibank credit agreement was amended further, including, among other changes: (i) to increase the letter of credit sublimit to $65 million and (ii) to modify certain baskets in the exceptions to the negative covenants, including, without limitation, the restricted payments, investments and indebtedness covenants. As amended, the Revolver has a $65 million letter of credit sublimit and a $10 million swing line sublimit, and a final maturity date of February 21, 2020. Wayfair LLC is the borrower (the "Borrower") under the Citibank credit agreement. Subject to certain conditions, the Borrower has the right to increase the Revolver by $25 million . Borrowings under the Revolver will bear interest through maturity at a variable rate based upon, at the Borrower’s option, either the Eurodollar rate or the base rate (which is the highest of (x) Citibank's prime rate, (y) one-half of 1.00% in excess of the federal funds effective rate, and (z) 1.00% in excess of the one-month Eurodollar rate), plus, in each case an applicable margin. From closing until September 30, 2019, the applicable margin for Eurodollar rate loans is 1.75% per annum and the applicable margin for base rate loans is 0.75% per annum. After September 30, 2019, the applicable margin is subject to specified changes depending on the applicable consolidated leverage ratio. Any amounts outstanding under the Revolver are due at maturity. In addition, subject to the terms and conditions set forth in the credit agreement, the Borrower is required to make certain mandatory prepayments prior to maturity. The Citibank credit agreement contains affirmative and negative covenants customarily applicable to senior secured credit facilities, including covenants that, among other things, will limit or restrict the ability of the Company and its subsidiaries, subject to negotiated exceptions, to incur additional indebtedness and additional liens on their assets, engage in mergers or acquisitions or dispose of assets, pay dividends or make other distributions, voluntarily prepay other indebtedness, enter into transactions with affiliated persons, make investments, and change the nature of their businesses. In addition, the Citibank credit agreement requires the Company to maintain certain financial ratios. As of March 31, 2018 , the Company was in compliance with its covenants under the Revolver. The Company did not borrow any amounts under the Revolver during the three months ended March 31, 2018 and the year ended December 31, 2017 . Convertible Debt On September 15, 2017, the Company issued $431.25 million aggregate principal amount of 0.375% Convertible Senior Notes due 2022 (the "Notes"), which includes the exercise in full of the $56.25 million over-allotment option, to Citigroup Global Markets Inc. and Goldman Sachs & Co. LLC as the initial purchasers of the Notes (the "Initial Purchasers"). The net proceeds from the sale of the Notes were approximately $420.4 million , after deducting the Initial Purchasers’ discounts and the estimated offering expenses payable by the Company. The Company used approximately $44.2 million of the net proceeds from the offering to pay the cost of the capped call transactions, as further described below, with three financial institutions (the "Option Counterparties"). The Company intends to use the remainder of the net proceeds for working capital and general corporate purposes. The Notes were issued pursuant to an indenture, dated September 15, 2017 (the "Indenture"), between the Company and U.S. Bank National Association, as trustee. The Company will pay interest on the Notes semiannually in arrears at a rate of 0.375% per annum on March 1 and September 1 of each year commencing on March 1, 2018. The Notes are convertible based upon an initial conversion rate of 9.61 shares of the Company’s Class A common stock per $1,000 principal amount of Notes (equivalent to a conversion price of approximately $104.06 per share of the Company’s Class A common stock). The conversion rate will be subject to adjustment upon the occurrence of certain specified events, including certain distributions and dividends to all or substantially all of the holders of the Company’s Class A common stock, but will not be adjusted for accrued and unpaid interest. The Company will settle any conversions of the Notes in cash, shares of the Company’s Class A common stock or a combination thereof, with the form of consideration determined at the Company’s election. The Notes will mature on September 1, 2022, unless earlier purchased, redeemed or converted. Prior to June 1, 2022, holders may convert all or a portion of their Notes only under the following circumstances: (1) during any calendar quarter commencing after the calendar quarter ending on December 31, 2017 (and only during such calendar quarter), if the last reported sale price of the Company’s Class A common stock for at least 20 trading days (whether or not consecutive) during a period of 30 consecutive trading days ending on, and including, the last trading day of the immediately preceding calendar quarter is greater than or equal to 130% of the conversion price on each applicable trading day; (2) during the 5 business day period after any 10 consecutive trading day period (the "measurement period") in which the trading price per $1,000 principal amount of Notes for each trading day of the measurement period was less than 98% of the product of the last reported sale price of the Company’s Class A common stock and the conversion rate on each such trading day; (3) with respect to any Notes called for redemption by the Company, at any time prior to the close of business on the second scheduled trading day immediately preceding the redemption date; or (4) upon the occurrence of specified corporate events. On and after June 1, 2022 until the close of business on the second scheduled trading day immediately preceding the maturity date, holders may convert their Notes at any time, regardless of the foregoing circumstances. The Company may not redeem the Notes prior to September 8, 2020. On or after September 8, 2020, the Company may redeem for cash all or part of the Notes if the last reported sale price of the Company’s Class A common stock equals or exceeds 130% of the conversion price then in effect for at least 20 trading days (whether or not consecutive), including at least one of the five trading days immediately preceding the date on which the Company provides notice of redemption, during any 30 consecutive trading days ending on, and including the trading day immediately preceding the date on which the Company provides notice of the redemption. The redemption price will be 100% of the principal amount of the Notes to be redeemed, plus accrued and unpaid interest, if any. Upon the occurrence of a fundamental change (as defined in the Indenture), holders may require the Company to repurchase all or a portion of their Notes for cash at a price equal to 100% of the principal amount of the Notes to be repurchased plus any accrued but unpaid interest to, but excluding, the fundamental change repurchase date. Holders of Notes who convert their Notes in connection with a notice of redemption or a make-whole fundamental change (each as defined in the Indenture) may be entitled to a premium in the form of an increase in the conversion rate of the Notes. The Indenture contains customary terms and covenants, including that upon certain events of default occurring and continuing, either the Trustee or the holders of not less than 25% in aggregate principal amount of the Notes then outstanding may declare the entire principal amount of all the Notes plus accrued interest, if any, to be immediately due and payable. The Notes are general unsecured obligations of the Company. The Notes rank senior in right of payment to any of the Company’s future indebtedness that is expressly subordinated in right of payment to the Notes; rank equal in right of payment to the Company’s existing and future unsecured indebtedness that is not so subordinated; are effectively subordinated in right of payment to any of the Company’s secured indebtedness to the extent of the value of the assets securing such indebtedness; and are structurally subordinated to all existing and future indebtedness and liabilities of the Company’s subsidiaries. In accounting for the issuance of the Notes, the Company separated the Notes into liability and equity components. The carrying amount of the liability component was calculated by measuring the fair value of a similar liability that does not have an associated convertible feature. The carrying amount of the equity component, representing the conversion option, which does not meet the criteria for separate accounting as a derivative as it is indexed to the Company's own stock, was determined by deducting the fair value of the liability component from the par value of the Notes. The difference between the principal amount of the Notes and the liability component represents the debt discount, which is recorded as a direct deduction from the related debt liability in the consolidated and condensed balance sheet and amortized to interest expense using the effective interest method over the term of the Notes. The equity component of the Notes of approximately $95.8 million is included in additional paid-in capital in the consolidated and condensed balance sheet and is not remeasured as long as it continues to meet the conditions for equity classification. The Company allocated transaction costs related to the Notes using the same proportions as the proceeds from the Notes. Transaction costs attributable to the liability component were recorded as a direct deduction from the related debt liability in the consolidated and condensed balance sheet and amortized to interest expense over the term of the Notes, and transaction costs attributable to the equity component were netted with the equity component in shareholders’ equity. Interest expense related to the Notes for the three months ended March 31, 2018 was $5.0 million , which is also comprised of the amortization of debt discount and debt issuance costs and the contractual coupon interest. The estimated fair value of the Notes was $409.5 million as of March 31, 2018 . The estimated fair value of the Notes was determined through consideration of quoted market prices. The fair value is classified as Level 2, as defined in Note 3, Marketable Securities and Fair Value Measurements . On September 11, 2017, the Company entered into privately negotiated capped call transactions (the "Base Capped Call Transactions") with the Option Counterparties and, in connection with the exercise in full of the over-allotment option by the Initial Purchasers, on September 14, 2017 entered into additional capped call transactions (such additional capped call transactions, the "Additional Capped Call Transactions" and, together with the Base Capped Call Transactions, the "Capped Call Transactions") with the Option Counterparties. The Capped Call Transactions are expected generally to reduce the potential dilution and/or offset the cash payments the Company is required to make in excess of the principal amount of the Notes upon conversion of the Notes in the event that the market price per share of the Company’s Class A common stock is greater than the strike price of the Capped Call Transactions (which initially corresponds to the initial conversion price of the Notes and is subject to certain adjustments under the terms of the Capped Call Transactions), with such reduction and/or offset subject to a cap based on the cap price of the Capped Call Transactions. The Capped Call Transactions have an initial cap price of $154.16 per share of the Company’s Class A common stock, which represents a premium of 100% over the last reported sale price of the Company’s Class A common stock on September 11, 2017, and is subject to certain adjustments under the terms of the Capped Call Transactions. Collectively, the Capped Call Transactions cover, initially, the number of shares of the Company’s Class A common stock underlying the Notes, subject to anti-dilution adjustments substantially similar to those applicable to the Notes. The Capped Call Transactions are separate transactions, in each case, entered into by the Company with the Option Counterparties, and are not part of the terms of the Notes and will not affect any holder’s rights under the Notes. Holders of the Notes will not have any rights with respect to the Capped Call Transactions. The Capped Call Transactions do not meet the criteria for separate accounting as a derivative as they are indexed to the Company's stock. The premiums paid for the Capped Call Transactions have been included as a net reduction to additional paid-in capital within shareholders’ equity. |