Credit Agreement | 14. Credit Agreement On February 21, 2019 (the "Closing Date"), the Company, as guarantor, and Wayfair LLC, a wholly-owned subsidiary of the Company, as borrower (the “Borrower”) entered into an Amended and Restated Credit Agreement (the “Amended Credit Agreement”) with Citibank, in its capacity as administrative agent, swing line lender and letter of credit issuer, and certain other lenders party thereto. The Amended Credit Agreement replaced the Company's existing credit facility with Citibank. The Amended Credit Agreement consists of: • A secured revolving credit facility under which the Borrower may borrow up to $165 million , subject to certain sublimits, with a final maturity date of February 21, 2022 (the “Revolver”). • The Borrower also has the right, subject to certain customary conditions, to increase the Revolver by $50 million . • The Revolver has the following sublimits: ◦ a $100 million letter of credit sublimit; and ◦ a $15 million swing line sublimit. The Borrower’s obligations under the Amended Credit Agreement are guaranteed by the Company and certain of its subsidiaries (together, the “Guarantors”). The obligations of the Borrower and the Guarantors are secured by first-priority liens on substantially all of the assets of the Borrower and the Guarantors, including, with certain exceptions, all of the capital stock of the Company’s domestic subsidiaries and 65% of the capital stock of the Company’s first-tier foreign subsidiaries. The proceeds of the Revolver may be used to finance working capital, to refinance certain existing indebtedness and to provide funds for permitted acquisitions, repurchases of equity interests and other general corporate purposes. 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. As of the Closing Date, the applicable margin for Eurodollar rate loans was 1.75% per annum and the applicable margin for base rate loans was 0.75% per annum. The applicable margin is subject to specified changes depending on the Liquidity (as defined in the Amended Credit Agreement) of the Company. Any amounts outstanding under the Revolver are due at maturity. In addition, subject to the terms and conditions set forth in the Amended Credit Agreement, the Borrower is required to make certain mandatory prepayments prior to maturity. The Amended 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 Borrower and the Guarantors, 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. The Amended Credit Agreement also contains customary events of default, subject to thresholds and grace periods, including, among others, payment default, covenant default, cross default to other material indebtedness, and judgment default. In addition, the Amended Credit Agreement requires the Company to maintain certain levels of Free Cash Flow (as defined in the Amended Credit Agreement). The Company did not borrow any amounts under the Amended Credit Agreement during the years ended December 31, 2019 and 2018 . 15. Convertible Debt On September 15, 2017, the Company issued $431.25 million aggregate principal amount of 0.375% Convertible Senior Notes due 2022 (the "2017 Notes"), which includes the exercise in full of a $56.25 million over-allotment option, to certain financial institutions as the initial purchasers of the 2017 Notes (the "2017 Initial Purchasers"). On September 11, 2017, in connection with the pricing of the 2017 Notes, the Company entered into privately negotiated capped call transactions (the "2017 Base Capped Call Transactions") with two of the 2017 Initial Purchasers and certain other financial institutions (the "2017 Option Counterparties") and, in connection with the exercise in full of the over-allotment option by the 2017 Initial Purchasers, on September 14, 2017, entered into additional capped call transactions (such additional capped call transactions, the "2017 Additional Capped Call Transactions” and, together with the 2017 Base Capped Call Transactions, the "2017 Capped Call Transactions") with the 2017 Option Counterparties. Collectively, the 2017 Capped Call Transactions covered, initially, the number of shares of the Company’s Class A common stock underlying the 2017 Notes, subject to anti-dilution adjustments substantially similar to those applicable to the 2017 Notes. On November 15, 2018, the Company amended and restated the 2017 Capped Call Transactions (the "Restated 2017 Capped Call Transactions") with each of the 2017 Option Counterparties in order to, among other things, provide that the options underlying the Restated 2017 Capped Call Transactions can, at the Company’s option, remain outstanding until September 1, 2022, which is the maturity date for the 2017 Notes, even if all or a portion of the 2017 Notes are converted, repurchased or redeemed prior to such date. In November 2018, the Company issued $575.0 million aggregate principal amount of 1.125% Convertible Senior Notes due 2024 (the "2018 Notes"), which includes the exercise in full of a $75.0 million option granted to the initial purchasers, to certain financial institutions as the initial purchasers of the 2018 Notes (the "2018 Initial Purchasers"). The issuance of $500.0 million of 2018 Notes closed on November 19, 2018 and the additional $75.0 million of additional 2018 Notes, which were issued pursuant to the exercise of the 2018 Initial Purchasers' option to purchase such additional 2018 Notes, closed on November 29, 2018. On November 14, 2018, in connection with the pricing of the 2018 Notes, the Company entered into privately negotiated capped call transactions (the "2018 Base Capped Call Transactions") with one of the 2018 Initial Purchasers and certain other financial institutions (the "2018 Option Counterparties") and, in connection with the exercise in full of the 2018 Initial Purchasers option to purchase such additional 2018 Notes, on November 27, 2018, entered into additional capped call transactions (such additional capped call transactions, the "2018 Additional Capped Call Transactions" and, together with the 2018 Base Capped Call Transactions, the "2018 Capped Call Transactions") with the 2018 Option Counterparties. Collectively, the 2018 Capped Call Transactions cover, initially, the number of shares of the Company’s Class A common stock underlying the 2018 Notes, subject to anti-dilution adjustments substantially similar to those applicable to the 2018 Notes. On August 19, 2019, the Company issued $ 948.75 million aggregate principal amount of 1.00% Convertible Senior Notes due 2026 (the "2019 Notes" and together with the 2017 Notes and 2018 Notes, the "Notes"), which includes the exercise in full of a $123.75 million option granted to the initial purchasers, to certain financial institutions as the initial purchasers of the 2019 Notes (the "2019 Initial Purchasers"). On August 14, 2019, in connection with the pricing of the 2019 Notes, the Company entered into privately negotiated capped call transactions (the "2019 Base Capped Call Transactions") with certain of the 2019 Initial Purchasers or their affiliates and another financial institution (the "2019 Option Counterparties") and, in connection with the exercise in full of the 2019 Initial Purchasers' option to purchase such additional 2019 Notes, on August 16, 2019, entered into additional capped call transactions (such additional capped call transactions, the "2019 Additional Capped Call Transactions" and, together with the 2019 Base Capped Call Transactions, the "2019 Capped Call Transactions") with the 2019 Option Counterparties. Collectively, the 2019 Capped Call Transactions cover, initially, the number of shares of the Company’s Class A common stock underlying the 2019 Notes, subject to anti-dilution adjustments substantially similar to those applicable to the 2019 Notes. The net proceeds from the sale of the 2017 Notes, 2018 Notes, and 2019 Notes were approximately $420.4 million , $562.0 million , and $935.1 million , respectively, after deducting the initial purchasers’ discounts and the offering expenses payable by the Company. The Company used approximately $44.2 million , $93.4 million and $145.7 million , respectively, of the net proceeds from the 2017 Notes, 2018 Notes, and 2019 Notes to pay the cost of the 2017 Capped Call Transactions, the 2018 Capped Call Transactions, and the 2019 Capped Call Transactions, respectively. The Company intends to use the remainder of the net proceeds from the Notes for working capital and general corporate purposes. The Company may also use a portion of the net proceeds to finance acquisitions, strategic transactions, investments or the repayment, purchase or exchange of indebtedness (including its existing convertible notes). 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 Balance Sheets and amortized to interest expense using the effective interest method over the term of the Notes. The effective interest rate of the 2017 Notes, 2018 Notes, and 2019 Notes is 6.0% , 8.1% , and 6.4% , respectively. The equity component of the 2017 Notes, 2018 Notes, and 2019 Notes of approximately $95.8 million , $181.5 million , and $280.3 million , respectively, is included in additional paid-in capital in the Consolidated Balance Sheets 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 Balance Sheets 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. The following table presents the outstanding principal amount and carrying value of the Notes as of the date presented: December 31, 2019 December 31, 2018 2017 Notes 2018 Notes 2019 Notes 2017 Notes 2018 Notes (in thousands) Principal amounts: Principal $ 431,250 $ 575,000 $ 948,750 $ 431,250 $ 575,000 Unamortized debt discount (59,830 ) (161,275 ) (277,700 ) (79,911 ) (187,435 ) Net carrying amount $ 371,420 $ 413,725 $ 671,050 $ 351,339 $ 387,565 The following table presents total interest expense recognized related to the Notes: December 31, 2019 December 31, 2018 December 31, 2017 2017 Notes 2018 Notes 2019 Notes 2017 Notes 2018 Notes 2017 Notes (in thousands) Contractual interest expense $ 1,617 $ 6,469 $ 3,342 $ 1,617 $ 1,455 $ 1,491 Interest cost related to amortization of the debt discount 20,080 26,161 12,205 18,910 2,207 4,338 Total interest expense $ 21,697 $ 32,630 $ 15,547 $ 20,527 $ 3,662 $ 5,829 The estimated fair value of the 2017 Notes was $469.5 million and $465.0 million as of December 31, 2019 and 2018 , respectively. The estimated fair value of the 2018 Notes was $597.0 million and $580.2 million as of December 31, 2019 and 2018 , respectively. The estimated fair value of the 2019 Notes was $834.0 million as of December 31, 2019 . 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 . The if-converted value of the 2017, 2018 and 2019 Notes did not exceed their respective principal value as of December 31, 2019 . 2017 Notes The 2017 Notes were issued pursuant to an indenture, dated September 15, 2017 (the "2017 Indenture"), between the Company and U.S. Bank National Association, as trustee. The Company pays interest on the 2017 Notes semiannually in arrears at a rate of 0.375% per annum on March 1 and September 1 of each year. The 2017 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 2017 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 2017 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 2017 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 2017 Notes only under the following circumstances: (1) during any calendar quarter (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 "2017 Notes measurement period") in which the trading price per $1,000 principal amount of 2017 Notes for each trading day of the 2017 Notes 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 2017 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 2017 Notes at any time, regardless of the foregoing circumstances. Holders of 2017 Notes who convert their 2017 Notes in connection with a notice of a redemption or a make-whole fundamental change (each as defined in the 2017 Indenture) may be entitled to a premium in the form of an increase in the conversion rate of the 2017 Notes. The 2017 Notes are not convertible during the first quarter of 2020 and none of the 2017 Notes has been converted to date. The Company may not redeem the 2017 Notes prior to September 8, 2020. On or after September 8, 2020, the Company may redeem for cash all or part of the 2017 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 2017 Notes to be redeemed, plus accrued and unpaid interest, if any. Upon the occurrence of a fundamental change (as defined in the 2017 Indenture), holders may require the Company to repurchase all or a portion of their 2017 Notes for cash at a price equal to 100% of the principal amount of the 2017 Notes to be repurchased plus any accrued but unpaid interest to, but excluding, the fundamental change repurchase date. The 2017 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 2017 Notes then outstanding may declare the entire principal amount of all the 2017 Notes plus accrued interest, if any, to be immediately due and payable. 2018 Notes The 2018 Notes were issued pursuant to an indenture, dated November 19, 2018 (the "2018 Indenture"), between the Company and U.S. Bank National Association, as trustee. The Company will pay interest on the 2018 Notes semiannually in arrears at a rate of 1.125% per annum on May 1 and November 1 of each year commencing on May 1, 2019. The 2018 Notes are convertible based upon an initial conversion rate of 8.5910 shares of the Company’s Class A common stock per $1,000 principal amount of 2018 Notes (equivalent to a conversion price of approximately $116.40 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 2018 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 2018 Notes will mature on November 1, 2024, unless earlier purchased, redeemed or converted. Prior to August 1, 2024, holders may convert all or a portion of their 2018 Notes only under the following circumstances: (1) during any calendar quarter (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 five business day period after any ten consecutive trading day period (the "2018 Notes measurement period") in which the trading price per $1,000 principal amount of 2018 Notes for each trading day of the 2018 Notes 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 2018 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 August 1, 2024 until the close of business on the second scheduled trading day immediately preceding the maturity date, holders may convert their 2018 Notes at any time, regardless of the foregoing circumstances. Holders of 2018 Notes who convert their 2018 Notes in connection with a make-whole fundamental change or a notice of redemption (each as defined in the 2018 Indenture) may be entitled to a premium in the form of an increase in the conversion rate of the 2018 Notes. The 2018 Notes are not convertible during the first quarter of 2020 and none of the 2018 Notes has been converted to date. The Company may not redeem the 2018 Notes prior to May 8, 2022. On or after May 8, 2022, the Company may redeem for cash all or part of the 2018 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 2018 Notes to be redeemed, plus accrued and unpaid interest, if any. Upon the occurrence of a fundamental change (as defined in the 2018 Indenture), holders may require the Company to repurchase all or a portion of their 2018 Notes for cash at a price equal to 100% of the principal amount of the 2018 Notes to be repurchased plus any accrued but unpaid interest to, but excluding, the fundamental change repurchase date. The 2018 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 2018 Notes then outstanding may declare the entire principal amount of all the 2018 Notes plus accrued interest, if any, to be immediately due and payable. 2019 Notes The 2019 Notes were issued pursuant to an indenture, dated August 19, 2019 (the "2019 Indenture"), between the Company and U.S. Bank National Association, as trustee. The Company will pay interest on the 2019 Notes semiannually in arrears at a rate of 1.00% per annum on February 15 and August 15 of each year commencing on February 15, 2020. The 2019 Notes are convertible based upon an initial conversion rate of 6.7349 shares of the Company’s Class A common stock per $1,000 principal amount of 2019 Notes (equivalent to a conversion price of approximately $148.48 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 2019 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 2019 Notes will mature on August 15, 2026, unless earlier purchased, redeemed or converted. Prior to May 15, 2026, holders may convert all or a portion of their 2019 Notes only under the following circumstances: (1) during any calendar quarter commencing after the calendar quarter ending on December 31, 2019 (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 five business day period after any ten consecutive trading day period (the “2019 Notes measurement period”) in which the trading price per $1,000 principal amount of 2019 Notes for each trading day of the 2019 Notes 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 2019 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 May 15, 2026 until the close of business on the second scheduled trading day immediately preceding the maturity date, holders may convert their 2019 Notes at any time, regardless of the foregoing circumstances. Holders of 2019 Notes who convert their 2019 Notes in connection with a make-whole fundamental change or a notice of redemption (each as defined in the 2019 Indenture) may be entitled to a premium in the form of an increase in the conversion rate of the 2019 Notes. The 2019 Notes are not convertible during the first quarter of 2020 and none of the 2019 Notes has been converted to date. The Company may not redeem the 2019 Notes prior to August 20, 2023. On or after August 20, 2023, the Company may redeem for cash all or part of the 2019 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 2019 Notes to be redeemed, plus accrued and unpaid interest, if any. Upon the occurrence of a fundamental change (as defined in the 2019 Indenture), holders may require the Company to repurchase all or a portion of their 2019 Notes for cash at a price equal to 100% of the principal amount of the 2019 Notes to be repurchased plus any accrued but unpaid interest to, but excluding, the fundamental change repurchase date. The 2019 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 2019 Notes then outstanding may declare the entire principal amount of all the 2019 Notes plus accrued interest, if any, to be immediately due and payable. Capped Call Transactions The Restated 2017 Capped Call Transactions, 2018 Capped Call Transactions and 2019 Capped Call Transactions (collectively, 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 Restated 2017 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, which is the date the 2017 Notes priced, and is subject to certain adjustments under the terms of the Restated 2017 Capped Call Transactions. The 2018 Capped Call Transactions have an initial cap price of $219.63 per share of the Company’s Class A common stock, which represents a premium of 150% over the last reported sale price of the Company’s Class A common stock on November 14, 2018, which is the day the 2018 Notes priced, and is subject to certain adjustments under the terms of the 2018 Capped Call Transactions. The 2019 Capped Call Transactions have an initial cap price of $280.15 per share of the Company's Class A common stock, which represents a premium of 150% over the last reported sale price of the Company's Class A common stock on August 14, 2019, which is the day the 2019 Notes priced, and is subject to certain adjustments under the terms of the 2019 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 2017 Option Counterparties, the 2018 Option Counterparties, and 2019 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 stockholders' equity (deficit). |