Summary of Significant Accounting Policies | Summary of Significant Accounting Policies Basis of Presentation and Principles of Consolidation The accompanying consolidated financial statements have been prepared in accordance with U.S. generally accepted accounting principles (“GAAP”) and reflect the accounts and operations of the Company and those of its subsidiaries, including Funds, in which the Company has a controlling financial interest. Beginning October 8, 2020, the Company’s consolidated subsidiaries also included Vivint Solar, Inc. ("Vivint Solar"). The typical condition for a controlling financial interest ownership is holding a majority of the voting interests of an entity. However, a controlling financial interest may also exist in entities, such as variable interest entities (“VIEs”), through arrangements that do not involve controlling voting interests. In accordance with the provisions of Financial Accounting Standards Board (“FASB”) Accounting Standards Codification Topic 810 (“ASC 810”) Consolidation , the Company consolidates any VIE of which it is the primary beneficiary. The primary beneficiary, as defined in ASC 810, is the party that has (1) the power to direct the activities of a VIE that most significantly impact the VIE’s economic performance and (2) the obligation to absorb the losses of the VIE or the right to receive benefits from the VIE that could potentially be significant to the VIE. The Company evaluates its relationships with its VIEs on an ongoing basis to determine whether it continues to be the primary beneficiary. The consolidated financial statements reflect the assets and liabilities of VIEs that are consolidated. All intercompany transactions and balances have been eliminated in consolidation. Reclassifications Certain prior period amounts have been reclassified to conform to current period presentation. Use of Estimates The preparation of the consolidated financial statements requires management to make estimates and assumptions that affect the amounts reported in the consolidated financial statements and accompanying notes. The Company regularly makes estimates and assumptions, including, but not limited to, revenue recognition constraints that result in variable consideration, the discount rate used to adjust the promised amount of consideration for the effects of a significant financing component, the estimates that affect the collectability of accounts receivable, the valuation of inventories, the useful lives of solar energy systems, the useful lives of property and equipment, the valuation and useful lives of intangible assets, the effective interest rate used to amortize pass-through financing obligations, the discount rate uses for operating and financing leases, the valuation of stock-based compensation, the determination of valuation allowances associated with deferred tax assets, the fair value of debt instruments disclosed and the redemption value of redeemable noncontrolling interests. The Company bases its estimates on historical experience and on various other assumptions believed to be reasonable. Actual results may differ from such estimates. Segment Information The Company has one operating segment with one business activity, providing solar energy services and products to customers. The Company’s chief operating decision maker (“CODM”) is its Chief Executive Officer, who manages operations on a consolidated basis for purposes of allocating resources. When evaluating performance and allocating resources, the CODM reviews financial information presented on a consolidated basis. Revenue from external customers (including, but not limited to homeowners) for each group of similar products and services is as follows (in thousands): Year Ended December 31, 2022 2021 2020 Customer agreements $ 872,298 $ 725,220 $ 432,527 Incentives 110,749 101,344 51,633 Customer agreements and incentives 983,047 826,564 484,160 Solar energy systems 913,904 471,283 269,866 Products 424,471 312,107 168,165 Solar energy systems and product sales 1,338,375 783,390 438,031 Total revenue $ 2,321,422 $ 1,609,954 $ 922,191 Revenue from Customer Agreements includes payments by customers for the use of the system as well as utility and other rebates assigned by the customer to the Company in the Customer Agreement. Revenue from incentives includes revenue from the sale of commercial investment tax credits ("Commercial ITCs") and solar renewable energy credits (“SRECs”). Cash and Restricted Cash Cash consists of bank deposits held in checking and savings accounts. The Company considers all highly liquid investments purchased with an original maturity of three months or less to be cash equivalents. The Company has exposure to credit risk to the extent cash balances exceed amounts covered by federal deposit insurance. The Company believes that its credit risk is not significant. Restricted cash represents amounts related to obligations under certain financing transactions and future replacement of solar energy system components. The following table provides a reconciliation of cash and restricted cash reported within the consolidated balance sheets that sum to the total of the same such amounts shown in the consolidated statement of cash flows. Cash and restricted cash consists of the following (in thousands): December 31, 2022 2021 2020 Cash $ 740,508 $ 617,634 $ 519,965 Restricted cash, current and long-term 212,515 232,797 188,243 Total $ 953,023 $ 850,431 $ 708,208 Accounts Receivable Accounts receivable consist of amounts due from customers as well as state and utility rebates due from government agencies and utility companies. Under Customer Agreements, the customers typically assign incentive rebates to the Company. Accounts receivable are recorded at net realizable value. The Company maintains allowances for the applicable portion of receivables using the expected credit loss model. The Company estimates expected credit losses from doubtful accounts based upon the expected collectability of all accounts receivables, which takes into account the number of days past due, collection history, identification of specific customer exposure, current economic trends, and management’s expectation of future economic conditions. Once a receivable is deemed to be uncollectible, it is written off. In 2022, 2021 and 2020, the Company recorded provisions for credit losses of $17.0 million, $11.7 million and $7.2 million, respectively, and wrote-off uncollectible receivables of $10.3 million, $5.6 million and $5.4 million, respectively. Accounts receivable, net consists of the following (in thousands): December 31, 2022 2021 Customer receivables $ 218,712 $ 147,371 Other receivables 8,924 9,701 Allowance for credit losses (13,381) (11,035) Total $ 214,255 $ 146,037 Inventories Inventories are stated at the lower of cost or net realizable value on a first-in, first-out basis. Inventories consist of raw materials such as photovoltaic panels, inverters and mounting hardware as well as miscellaneous electrical components that are sold as-is by the distribution operations and used in installations and work-in-process. Work-in-process primarily relates to solar energy systems that will be sold to customers, which are partially installed and have yet to meet the criteria for revenue recognition. For solar energy systems where the Company performs the installation, the Company commences transferring component parts from inventories to construction-in-progress, a component of solar energy systems, once a lease contract with a lease customer has been executed and the component parts have been assigned to a specific project. Additional costs incurred including labor and overhead are recorded within construction in progress. The Company periodically reviews inventories for unusable and obsolete items based on assumptions about future demand and market conditions. Based on this evaluation, provisions are made to write inventories down to their market value. Solar Energy Systems, net The Company records solar energy systems subject to signed Customer Agreements and solar energy systems that are under installation as solar energy systems, net on its consolidated balance sheet. Solar energy systems, net is comprised of system equipment costs related to solar energy systems, less accumulated depreciation and amortization. Depreciation on solar energy systems is calculated on a straight-line basis over the estimated useful lives of the systems of 35 years. The Company periodically reviews its estimated useful life and recognizes changes in estimates by prospectively adjusting depreciation expense. Inverters and batteries are depreciated over their estimated useful life of 10 to 13 years. Solar energy systems under construction will be depreciated as solar energy systems subject to signed Customer Agreements when the respective systems are completed and interconnected. Property and Equipment, net Property and equipment, net consists of leasehold improvements, furniture, computer hardware and software, machinery and equipment and automobiles. All property and equipment are stated at historical cost net of accumulated depreciation. Repairs and maintenance are expensed as incurred. Property and equipment is depreciated on a straight-line basis over the following periods: Leasehold improvements Lesser of 6 years or lease term Furniture 5 years Computer hardware and software 3 years Machinery and equipment 5 years or lease term Automobiles Lease term Capitalization of Software Costs For costs incurred in the development of internal use software, the Company capitalizes costs incurred during the application development stage. Costs related to preliminary project activities and post implementation activities are expensed as incurred. Internal use software is amortized on a straight-line basis over its estimated useful life of 3 years. Costs of $10.0 million, $6.2 million and $2.0 million were capitalized in 2022, 2021 and 2020, respectively. Intangible Assets, net Finite-lived intangible assets are initially recorded at fair value and are subsequently presented net of accumulated amortization. Intangible assets are amortized on a straight-line basis over their estimated useful lives as follows: Customer relationships 5 -10 years Trade names 5 - 8 years Impairment of Long-Lived Assets The carrying amounts of the Company’s long-lived assets, including solar energy systems and intangible assets subject to depreciation and amortization, are periodically reviewed for impairment whenever events or changes in circumstances indicate that the carrying value of these assets may not be recoverable or that the useful life is shorter than originally estimated. Factors that are considered in deciding when to perform an impairment review would include significant negative industry or economic trends and significant changes or planned changes in the use of the assets. Recoverability of these assets is measured by comparison of the carrying amount of each asset group to the future undiscounted cash flows the asset group is expected to generate over its remaining life. If the asset group is considered to be impaired, the amount of any impairment is measured as the difference between the carrying value and the fair value of the impaired asset group. If the useful life is shorter than originally estimated, the Company amortizes the remaining carrying value over the new shorter useful life. The Company has recognized no material impairments of its long-lived assets in any of the periods presented. Goodwill Goodwill represents the excess of the purchase price over the fair value of assets acquired and liabilities assumed. Goodwill is reviewed for impairment at least annually or whenever events or changes in circumstances indicate that the carrying amount may be impaired. The Company has determined that it operates as one reporting unit and the Company’s goodwill is recorded at the enterprise level. The Company performs its annual impairment test of goodwill on October 1 of each fiscal year or whenever events or circumstances change or occur that would indicate that goodwill might be impaired. When assessing goodwill for impairment, the Company uses qualitative and if necessary, quantitative methods in accordance with FASB ASC Topic 350, Goodwill . The Company also considers its enterprise value and if necessary, discounted cash flow model, which involves assumptions and estimates, including the Company’s future financial performance, weighted average cost of capital and interpretation of currently enacted tax laws. Circumstances that could indicate impairment and require the Company to perform a quantitative impairment test include significant declines in the Company’s financial results or enterprise value relative to its net book value or a sustained decline in the Company's stock price below its book value, coupled with declines in valuations for comparable public companies or acquisition premiums. As of October 1, 2022, the Company concluded that the fair value of the Company exceeded its carrying value. Since December 31, 2021, the trading price of the Company’s common stock has generally declined. A sustained decrease in the Company’s stock price is one of the qualitative factors to be considered as part of an impairment test when evaluating whether events or changes in circumstances may indicate that it is more likely than not that a potential goodwill impairment exists. The Company will continue monitoring the analysis of the qualitative and quantitative factors used as a basis for the goodwill impairment test during fiscal year 2023. Deferred Revenue When the Company receives consideration, or when such consideration is unconditionally due, from a customer prior to delivering goods or services to the customer under the terms of a Customer Agreement, the Company records deferred revenue. Such deferred revenue consists of amounts for which the criteria for revenue recognition have not yet been met and includes amounts that are collected or assigned from customers, including upfront deposits and prepayments, and rebates. Deferred revenue relating to financing components represents the cumulative excess of interest expense recorded on financing component elements over the related revenue recognized to date and will eventually net to zero by the end of the initial term. Amounts received related to the sales of SRECs which have not yet been delivered to the counterparty are recorded as deferred revenue. The opening balance of deferred revenue was $799.3 million as of December 31, 2020. Deferred revenue consists of the following (in thousands): December 31, 2022 2021 Under Customer Agreements: Payments received, net $ 840,771 $ 645,439 Financing component balance 65,326 58,517 906,097 703,956 Under SREC contracts: Payments received, net 179,416 161,575 Financing component balance 10,460 8,080 189,876 169,655 Total $ 1,095,973 $ 873,611 During the years ended December 31, 2022, 2021 and 2020, the Company recognized revenue of $99.0 million, $86.3 million and $80.3 million, respectively, from amounts included in deferred revenue at the beginning of the respective periods. Revenue allocated to remaining performance obligations represents contracted revenue that has not yet been recognized and includes deferred revenue as well as amounts that will be invoiced and recognized as revenue in future periods. Contracted but not yet recognized revenue was approximately $19.1 billion as of December 31, 2022, of which the Company expects to recognize approximately 5% over the next 12 months. The annual recognition is not expected to vary significantly over the next 10 years as the vast majority of existing Customer Agreements have at least 10 years remaining, given that the average age of the Company's fleet of residential solar energy systems under Customer Agreements is less than five years due to the Company being formed in 2007 and having experienced significant growth in the last few years. The annual recognition on these existing contracts will gradually decline over the midpoint of the Customer Agreements over the following 10 years as the typical 20- or 25-year initial term expires on individual Customer Agreements. Deferred Grants Deferred grants consist of U.S. Treasury grants and state tax credits. The Company applied for a renewable energy technologies income tax credit offered by one of the states in the form of a cash payment and deferred the tax credit as a grant on the consolidated balance sheets. The Company records the grants as deferred grants and recognizes the benefit on a straight-line basis over the estimated depreciable life of the associated assets as a reduction in Cost of customer agreements and incentives. Warranty Accrual The Company accrues warranty costs when revenue is recognized for solar energy systems sales, based on the estimated future costs of meeting its warranty obligations. Warranty costs primarily consist of replacement costs for supplies and labor costs for service personnel since warranties for equipment and materials are covered by the original manufacturer’s warranty (other than a small deductible in certain cases). As such, the warranty reserve is immaterial in all periods presented. The Company makes and revises these estimates based on the number of solar energy systems under warranty, the Company’s historical experience with warranty claims, assumptions on warranty claims to occur over a systems’ warranty period and the Company’s estimated replacement costs. A warranty is provided for solar systems sold and leased. However, for the solar energy systems under Customer Agreements, the Company does not accrue a warranty liability because those systems are owned by consolidated subsidiaries of the Company. Instead, any repair costs on those solar energy systems are expensed when they are incurred as a component of customer agreements and incentives costs of revenue. Solar Energy Performance Guarantees The Company guarantees to customers certain specified minimum solar energy production output for solar facilities over the initial term of the Customer Agreements. The Company monitors the solar energy systems to determine whether these specified minimum outputs are being achieved. Annually or every two years, depending on the terms of the Customer Agreement, the Company will refund a portion of electricity payments to a customer if his or her solar energy production output was less than the performance guarantee. The Company considers this a variable component that offsets the transaction price. Derivative Financial Instruments The Company recognizes all derivative instruments on the balance sheet at their fair value. Changes in the fair value of derivatives are recorded each period in current earnings or other comprehensive income if a derivative is designated as part of a hedge transaction. The ineffective portion of the hedge, if any, is immediately recognized in earnings and are included in other income (expenses), net in the consolidated statements of operations. The Company uses derivative financial instruments, primarily interest rate swaps, to manage its exposure to interest rate risks on its syndicated term loans, which are recognized on the balance sheet at their fair values. On the date that the Company enters into a derivative contract, the Company formally documents all relationships between the hedging instruments and the hedged items, as well as its risk management objective and strategy for undertaking each hedge transaction. Derivative instruments designated in a hedge relationship to mitigate exposure to variability in expected future cash flows, or other types of forecasted transactions, are considered cash flow hedges. Cash flow hedges are accounted for by recording the fair value of the derivative instrument on the balance sheet as either a freestanding asset or liability. Changes in the fair value of a derivative that is designated and qualifies as an effective cash flow hedge are recorded in accumulated other comprehensive loss, net of tax, until earnings are affected by the variability of cash flows of the hedged item. Any derivative gains and losses that are not effective in hedging the variability of expected cash flows of the hedged item or that do not qualify for hedge accounting treatment are recognized directly into income. At the hedge’s inception and at least quarterly thereafter, a formal assessment is performed to determine whether changes in cash flows of the derivative instrument have been highly effective in offsetting changes in the cash flows of the hedged items and whether they are expected to be highly effective in the future. The Company discontinues hedge accounting prospectively when (i) it determines that the derivative is no longer effective in offsetting changes in the cash flows of a hedged item; (ii) the derivative expires or is sold, terminated, or exercised; or (iii) management determines that designating the derivative as a hedging instrument is no longer appropriate. In all situations in which hedge accounting is discontinued and the derivative remains outstanding, the derivative instrument is carried at its fair market value on the balance sheet with the changes in fair value recognized in current period earnings. The remaining balance in accumulated other comprehensive income associated with the derivative that has been discontinued is not recognized in the income statement unless it is probable that the forecasted transaction will not occur. Such amounts are recognized in earnings when earnings are affected by the hedged transaction. Fair Value of Financial Instruments The Company defines fair value as the exchange price that would be received for an asset or an exit price that would be paid to transfer a liability in the principal or most advantageous market for the asset or liability in an orderly transaction between market participants on the measurement date. The Company uses valuation approaches to measure fair value that maximize the use of observable inputs and minimize the use of unobservable inputs. The FASB establishes a three-tier fair value hierarchy for disclosure of fair value measurements as follows: • Level 1—Inputs are unadjusted, quoted prices in active markets for identical assets or liabilities at the measurement date; • Level 2—Inputs are observable, unadjusted quoted prices in active markets for similar assets or liabilities, unadjusted quoted prices for identical or similar assets or liabilities in markets that are not active, or other inputs that are observable or can be corroborated by observable market data for substantially the full term of the related assets or liabilities; and • Level 3—Inputs that are unobservable, significant to the measurement of the fair value of the assets or liabilities and are supported by little or no market data. The Company’s financial instruments include cash, receivables, accounts payable, accrued expenses, distributions payable to noncontrolling interests, derivatives, contingent consideration, and recourse and non-recourse debt. Revenue Recognition The Company recognizes revenue when control of goods or services is transferred to its customers, in an amount that reflects the consideration it expects to be entitled to in exchange for those goods or services. Customer agreements and incentives Customer agreements and incentives revenue is primarily comprised of revenue from Customer Agreements in which the Company provides continuous access to a functioning solar energy system and revenue from the sales of SRECs generated by the Company’s solar energy systems to third parties. The Company begins to recognize revenue on Customer Agreements when permission to operate ("PTO") is given by the local utility company or on the date daily operation commences if utility approval is not required. Revenue recognition does not necessarily follow the receipt of cash. For Customer Agreements that include a fixed fee per month which entitles the customer to any and all electricity generated by the system, and for which the Company’s obligation is to provide continuous access to a functioning solar energy system, the Company recognizes revenue evenly over the time that it satisfies its performance obligations, which is over the initial term of the Customer Agreements. For Customer Agreements that charge a fixed price per kilowatt hour, and for which the Company’s obligation is the provision of electricity from a solar energy system, revenue is recognized based on the actual amount of power generated at rates specified under the contracts. Customer Agreements typically have an initial term of 20 or 25 years. After the initial contract term, Customer Agreements typically automatically renew annually or for five years. SREC revenue arises from the sale of environmental credits generated by solar energy systems and is generally recognized upon delivery of the SRECs to the counterparty or upon reporting of the electricity generation. For pass-through financing obligation Funds, the value attributable to the monetization of Commercial ITCs are recognized in the period a solar energy system is granted PTO - see Note 13, Pass-through Financing Obligations . In determining the transaction price, the Company adjusts the promised amount of consideration for the effects of the time value of money when the timing of payments provides it with a significant benefit of financing the transfer of goods or services to the customer. In those circumstances, the contract contains a significant financing component. When adjusting the promised amount of consideration for a significant financing component, the Company uses the discount rate that would be reflected in a separate financing transaction between the entity and its customer at contract inception and recognizes the revenue amount on a straight-line basis over the term of the Customer Agreement, and interest expense using the effective interest rate method. Consideration from customers is considered variable due to the performance guarantee under Customer Agreements and liquidating damage provisions under SREC contracts in the event minimum deliveries are not achieved. Performance guarantees provide a credit to the customer if the system's cumulative production, as measured on various PTO anniversary dates, is below the Company's guarantee of a specified minimum. Revenue is recognized to the extent it is probable that a significant reversal of such revenue will not occur. The Company capitalizes incremental costs incurred to obtain a contract in Other Assets in the consolidated balance sheets. These amounts are amortized on a straight-line basis over the term of the Customer Agreements, and are included in Sales and marketing in the consolidated statements of operations. Solar energy systems and product sales For solar energy systems sold to customers, revenue is recognized when the solar energy system passes inspection by the authority having jurisdiction, which inspection generally occurs after installation but prior to PTO, at which time the Company has met the performance obligation in the contract. For solar energy system sales that include delivery obligations up until interconnection to the local power grid with permission to operate, the Company recognizes revenue at PTO. Certain solar energy systems sold to customers include fees for extended warranty and maintenance services. These fees are recognized over the life of the service agreement. The Company’s installation Projects are typically completed in less than twelve months. Product sales consist of solar panels, racking systems, inverters, other solar energy products sold to resellers, roofing repair, and customer leads. Product sales revenue is recognized at the time when control is transferred, upon shipment, or as services are delivered. Customer lead revenue, included in product sales, is recognized at the time the lead is delivered. Taxes assessed by government authorities that are directly imposed on revenue producing transactions are excluded from solar energy systems and product sales. Cost of Revenue Customer agreements and incentives Cost of revenue for customer agreements and incentives is primarily comprised of (1) the depreciation of the cost of the solar energy systems, as reduced by amortization of deferred grants, (2) solar energy system operations, monitoring and maintenance costs including associated personnel costs, and (3) allocated corporate overhead costs. Solar energy systems and product sales Cost of revenue for solar energy systems and non-lead generation product sales consist of direct and indirect material and labor costs for solar energy systems installations and product sales. Also included are engineering and design costs, estimated warranty costs, freight costs, allocated corporate overhead costs, vehicle depreciation costs and personnel costs associated with supply chain, logistics, operations management, safety and quality control. Cost of revenue for lead generations consists of costs related to direct-response advertising activities associated with generating customer leads. Research and Development Expense Research and development expenses include personnel costs, allocated overhead costs, and other costs related to the development of the Company’s proprietary technology. Stock-Based Compensation The Company grants stock options and restricted stock units (“RSUs”) for its equity incentive plan and employee stock purchase plan. Stock-based compensation to employees is measured based on the grant date fair value of the awards and recognized over the period during which the employee is required to perform services in exchange for the award (generally the vesting period of the award). When determining the grant date fair value of stock-based compensation, the Company utilizes the observable closing share price of its stock on the grant date. The Company considers whether any adjustments are needed to the share price to reflect fair value, including in instances where the observable market price does not reflect certain material non-public information known to the Company, but unavailable to marketplace participants at the time the market price is observed. No such adjustments were made during the years ended December 31, 2022, 2021, and 2020. The Company estimates the fair value of stock options and employee stock purchase plans awards granted using the Black-Scholes option-valuation model. Upon completion of the acquisition of Vivint Solar, all outstanding equity awards under Vivint Solar's equity incentive plans were automatically converted to Sunrun equity awards with the number of shares underlying such awards (and, in the case of stock options, the applicable exercise price) adjusted based on the exchange ratio of 0.55 shares of Sunrun common stock per share of Vivint Solar common stock and the fair value was also updated in accordance with ASC 718, Stock Compensation. Compensation cost is recognized over the vesting period of the applicable award using the straight-line method for those options expected to vest. For performance-based equity compensation awards, the Company generally recognizes compensation expense for each vesting tranche over the related performance period. The Company also grants RSUs to non-employees that vest upon the satisfaction of both performance and service conditions. For RSUs granted to non-employees that vest upon the satisfaction of a performance condition, the Company starts recognizing expense on the RSUs when the performance condition is met. Net Income (Loss) Per Share Basic net income (loss) per share is computed by dividing net income (loss) attributable to common stockholders by the weighted-average number of common shares outstanding during the period. Diluted net income (loss) per share is computed by dividing net income (loss) attributable to common stockholders by the weighted-average number of common shares outstanding during the period adjusted to include the effect of potentially dilutive securities. Potentially dilutive securities are excluded from the computation of dilutive EPS in periods in which the effect would be antidilutive. Noncontrolling Interests and Redeemable Noncontrolling Interests Noncontrolling interests represent investors’ interests in the net assets of the Funds that the Company has created to finance the cost of its solar energy systems subject to the Company’s Customer Agreements. The Company has determined that the contractual provisions in the funding arrangements represent substantive profit sharing arrangements. The Company has further determined that the appropriate method |