Summary of Significant Accounting Policies | Summary of Significant Accounting Policies Basis of Presentation and Significant Accounting Policies The accompanying Consolidated Financial Statements were prepared in accordance with accounting principles generally accepted in the United States of America (“GAAP”). Principles of Consolidation The accompanying Consolidated Financial Statements include the operations of AppFolio, Inc. and its wholly owned subsidiaries. All intercompany balances and transactions have been eliminated in consolidation. Our investment in SecureDocs, Inc. (“SecureDocs”) is accounted for under the equity method of accounting as we have the ability to exert significant influence, but do not control and are not the primary beneficiary of the entity. Our investment in SecureDocs is not material and any income (loss) activity is not material individually or in the aggregate to our Consolidated Financial Statements for any period presented. Use of Estimates The preparation of financial statements in conformity with GAAP requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities and the disclosure of contingent assets and liabilities at the dates of the financial statements, and the reported amounts of revenue and expenses during the reporting period. Actual results could differ materially from those estimates. Assets and liabilities which are subject to judgment and use of estimates include the fair value of assets and liabilities assumed in business combinations, fair value of financial instruments, capitalized software costs, period of benefit associated with deferred costs, incremental borrowing rate used to measure operating lease liabilities, the recoverability of goodwill and long-lived assets, income taxes, useful lives associated with property and equipment and intangible assets, contingencies, and valuation and assumptions underlying stock-based compensation and other equity instruments. On an ongoing basis, management evaluates its estimates based on historical data and experience, as well as various other factors that management believes to be reasonable under the circumstances, the results of which form the basis for making judgments about the carrying value of assets and liabilities that are not readily apparent from other sources. Segment Information Our chief operating decision maker reviews financial information presented on an aggregated and consolidated basis, together with revenue information for our core solutions, Value+ and other service offerings, principally to make decisions about how to allocate resources and to measure our performance. Accordingly, management has determined that we have one reportable and operating segment. Concentrations of Credit Risk Financial instruments that potentially subject us to credit risk consist principally of cash, accounts receivable, investment securities and notes receivable. We maintain cash balances at financial institutions in excess of amounts insured by United States government agencies or payable by the United States government directly. We place our cash with high credit, quality financial institutions. We invest in investment securities with a minimum rating of A by Standard & Poor's or A-1 by Moody's and regularly monitor our investment security portfolio for changes in credit ratings. Concentrations of credit risk with respect to accounts receivable and revenue are limited due to a large, diverse customer base. No individual customer represented 10% or more of accounts receivable at December 31, 2019 and 2018 or revenue for the years ended December 31, 2019 , 2018 and 2017 . Fair Value Measurements Fair value is defined as the exchange price that would be received for an asset or paid to transfer a liability (an exit price) in the principal or most advantageous market for the asset or liability in an orderly transaction between market participants on the measurement date. Valuation techniques used to measure fair value must maximize the use of observable inputs and minimize the use of unobservable inputs. Accounting Standard Codification (“ASC”) 820, Fair Value Measurements and Disclosures (“ASC 820”), describes a fair value hierarchy based on three levels of inputs, of which the first two are considered observable and the last unobservable, that may be used to measure fair value, which are the following: Level 1 - Quoted prices in active markets for identical assets or liabilities or funds. Level 2 - Inputs other than Level 1 that are observable, either directly or indirectly, such as quoted prices for similar assets or liabilities; quoted prices 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 assets or liabilities. Level 3 - Unobservable inputs that are supported by little or no market activity and that are significant to the fair value of the assets or liabilities. Cash, Cash Equivalents and Restricted Cash We consider all highly liquid investments, readily convertible to cash, and which have a remaining maturity date of three months or less at the date of purchase, to be cash equivalents. Cash and cash equivalents are recorded at fair value and consist primarily of bank deposits and money market funds. Restricted cash of $0.4 million at December 31, 2019 and 2018 , is comprised of certificates of deposits relating to collateral requirements for customer automated clearing house and credit card chargebacks and minimum collateral requirements for our insurance services, which are recorded in other long-term assets. Investment Securities Our investment securities currently consist of corporate bonds, United States government agency securities ("Agency Securities") and treasury securities. We classify investment securities as available-for-sale at the time of purchase and reevaluate such classification at each balance sheet date. All investments are recorded at estimated fair value. Unrealized gains and losses for available-for-sale investment securities are included in accumulated other comprehensive income (loss), a component of stockholders’ equity. We classify our investments as current when the period of time between the reporting date and the contractual maturity is twelve months or less and as noncurrent when the period of time between the reporting date and the contractual maturity is more than twelve months. We evaluate our investments to assess whether those with unrealized loss positions are other than temporarily impaired. We consider impairments to be other than temporary if they are related to deterioration in credit risk or if it is likely we will sell the securities before the recovery of their cost basis. Declines in value judged to be other than temporary are determined based on the specific identification method and are reported in other income (expense), net in the Consolidated Statements of Operations. Accounts Receivable Accounts receivable are recorded at the invoiced amount, net of an allowance for doubtful accounts. The allowance for doubtful accounts is based on historical loss experience, the number of days that receivables are past due, and an evaluation of the potential risk of loss associated with delinquent accounts. Accounts receivable considered uncollectible are charged against the allowance for doubtful accounts when identified. We do not have any off-balance sheet credit exposure related to our customers. At December 31, 2019 and 2018 , our allowance for doubtful accounts was not material. Property and Equipment Property and equipment is stated at cost, less accumulated depreciation. Depreciation is calculated using the straight-line method over the estimated useful lives of assets. The estimated useful lives of our property and equipment are as follows: Asset Type Depreciation Period Data center and computer equipment 3 years Furniture and fixtures 7 years Office equipment 2 to 5 years Leasehold improvements Shorter of remaining life of lease or asset life Repair and maintenance costs are expensed as incurred. Renewals and improvements are capitalized. Assets disposed of or retired are removed from the cost and accumulated depreciation accounts and any resulting gain or loss is reflected in our results of operations. Leases We determine if an arrangement is a lease at inception. Operating leases are included in prepaid expenses and other current assets, operating lease right-of-use (“ROU”) assets, other current liabilities, and operating lease liabilities on our Consolidated Balance Sheets. Operating lease ROU assets and operating lease liabilities are recognized based on the present value of the future minimum lease payments, over the lease term at commencement date. As none of our leases provide an implicit rate, we use our incremental borrowing rate based on the information available at commencement date in determining the present value of future payments. The operating lease ROU assets also include any lease payments made and excludes lease incentives received and initial direct costs incurred. Our lease terms may include options to extend or terminate the lease when it is reasonably certain that we will exercise that option. Lease expense for minimum lease payments is recognized on a straight-line basis over the lease term. We have lease arrangements with lease and non-lease components, which are generally accounted for as a single lease component. Leases with an initial term of twelve months or less are not recorded on the balance sheet; we recognize lease expense for these leases on a straight-line basis over the lease term. Capitalized Software Development Costs Software development cost consist of certain payroll and stock compensation costs incurred to develop functionality of our internal-use software solutions. We capitalize certain software development costs for new offerings as well as significant upgrades and enhancements to our existing software solutions. Capitalized software development costs are amortized using the straight-line method over an estimated useful life of three years . We do not transfer ownership of our software, or lease our software, to third parties. We believe there are two key estimates within the capitalized software balance, which are the determination of the useful life of the software and the determination of the amounts to be capitalized. We determined that a three year life is appropriate for our internal-use software based on our best estimate of the useful life of the internally developed software after considering factors such as continuous developments in the technology, obsolescence and anticipated life of the service offering before significant upgrades. Based on our prior experience, internally generated software will generally remain in use for a minimum of three years before being significantly replaced or modified to keep up with evolving customer and company needs. While we do not anticipate any significant changes to this three year estimate, a change in this estimate could produce a material impact on our financial statements. We determine the amount of internal software costs to be capitalized based on the amount of time spent by our software engineers on projects. Costs associated with building or significantly enhancing our software solutions and new internally built software solutions are capitalized, while costs associated with planning new developments and maintaining our software solutions are expensed as incurred. There is judgment involved in estimating the stage of development as well as estimating time allocated to a particular project. A significant change in the time spent on each project could have a material impact on the amount capitalized and related amortization expense in subsequent periods. Goodwill and Intangible Assets Goodwill represents the excess of the purchase price over the estimated fair value of the net tangible and identifiable intangible assets acquired in business combinations. Goodwill is tested for impairment at least annually at the reporting unit level or at other times if an event occurs or circumstances change that would more likely than not reduce the fair value of a reporting unit below its carrying amount. We have the option to assess goodwill for possible impairment by performing a qualitative analysis to determine whether the existence of events or circumstances leads to a determination that it is more likely than not that the fair value of a reporting unit is less than its carrying amount. A quantitative assessment is performed if the qualitative assessment results in a more-likely-than-not determination or if a qualitative assessment is not performed. The quantitative assessment considers whether the carrying amount of a reporting unit exceeds its fair value, in which case an impairment charge is recorded to the extent that the reporting unit’s carrying value exceeds its fair value. We have one reporting unit and we test for goodwill impairment annually during the fourth quarter of the calendar year. Based on the assessment performed November 1, 2019 , we determined it was unlikely that our reporting unit fair value was less than its carrying value and no quantitative impairment test assessment was required. There were no indicators that our goodwill has become impaired since that date, and as such, there was no impairment of goodwill as of November 1, 2019 or December 31, 2019 . No impairment losses were recorded for goodwill during the years ended December 31, 2019 , 2018 and 2017 . Intangible assets primarily consist of acquired database and technology, non-compete agreements, customer and partner relationships, trademarks, domain names and patents, which are recorded at cost, less accumulated amortization. We determine the appropriate useful life of our intangible assets by performing an analysis of expected cash flows of the acquired assets. Intangible assets are amortized over their estimated useful lives on a straight-line basis, which approximates the pattern in which the economic benefits of the assets are consumed. Impairment of Long-Lived Assets We assess the recoverability of our long-lived assets when events or changes in circumstances indicate that the carrying value of an asset may not be recoverable or that the useful lives of those assets are no longer appropriate. An impairment charge would be recognized when the carrying amount of a long-lived asset or asset group is not recoverable and exceeds its fair value. The carrying amount of a long-lived asset or asset group is not recoverable if it exceeds the sum of the undiscounted cash flows expected to result from the use and eventual disposition of the asset or asset group. There were no impairment charges related to the identified long-lived assets for the years ended December 31, 2019 , 2018 and 2017 . Business Combinations The results of a business acquired in a business combination are included in our Consolidated Financial Statements from the date of acquisition. We allocate the purchase price, including the fair value of contingent consideration, to the identifiable assets and liabilities of the acquired business at their acquisition date fair values. The excess of the purchase price over the amount allocated to the identifiable assets and liabilities, if any, is recorded as goodwill. Determining the fair value of assets acquired and liabilities assumed requires management to make significant judgments and estimates, including the selection of valuation methodologies, estimates of future revenue and cash flows, discount rates and selection of comparable companies. The Company engages the assistance of valuation specialists in concluding on fair value measurements in connection with determining fair values of assets acquired and liabilities assumed in a business combination. Acquisition-related transaction costs are not included as a component of consideration transferred, but are accounted for as an operating expense in the period in which the costs are incurred. Revenue Recognition We generate revenue from our customers primarily for subscriptions to access our core solutions and Value+ services for our cloud-based software solutions. Revenue is recognized upon transfer of control of promised services in an amount that reflects the consideration we expect to receive in exchange for those services. We enter into contracts that can include various combinations of services, which are generally capable of being distinct, distinct within the context of the contract, and accounted for as separate performance obligations. Revenue is recognized net of any taxes collected from customers, which are subsequently remitted to governmental authorities. Refer to Note 14, Revenue and Other Information for the disaggregated breakdown of revenue between core solutions, Value+ services and other revenue. Core Solutions We charge our customers on a subscription basis for our core solutions. Our subscription fees are designed to scale to the size of our customers' businesses. Subscription fees for our core solutions are charged on a per-unit per-month basis for our property management software solution and on a per-user per-month basis for our legal software solution. Our customers do not have rights to the underlying software code of our solutions, and, accordingly, we recognize subscription revenue over time on a straight-line basis over the contract term beginning on the date that our service is made available to the customer. The term of our core solutions subscription agreements typically ranges from one month to one year. We typically invoice our customers for subscription services in monthly or annual installments, in advance of the subscription period. Value+ Services We charge our customers on a subscription or usage basis for our Value+ services. Subscription-based fees are charged on a per-unit basis. We typically invoice our customers for subscription-based services in monthly installments, in advance of the subscription period. We recognize revenue for subscription-based services over time on a straight-line basis over the contract term beginning on the date that our service is made available to the customer. Usage-based fees are charged on a flat rate per transaction basis with no minimum usage commitments. We recognize revenue for usage-based services in the period the service is rendered. We generally invoice our customers for usage-based services on a monthly basis for services rendered in the preceding month. In addition, some subscription or usage-based Value+ services, such as fees for electronic payment services, are paid by either our customers or clients of our customers at the time the services are rendered. We work with third-party partners to provide certain of our Value+ services. For these Value+ services, we evaluate whether we are the principal, and report revenue on a gross basis, or the agent, and report revenue on a net basis. In this assessment we consider if we obtain control of the specified services before they are transferred to the customer, as well as other indicators such as whether we are the party primarily responsible for fulfillment, and whether we have discretion in establishing price. Other Revenue Other revenue include fees from one-time services related to the implementation of our software solutions and other recurring or one-time fees related to our customers who are not otherwise using our core solutions. This includes legacy customers of businesses we have acquired where the customers haven't migrated to our core solutions. The fees for implementation and data migration services are billed upon signing our core subscription contract and are not recognized until the core solution is accessible and fully functional for our customer's use. Other services are billed when the services rendered are completed and delivered to the customer or billed in advance and deferred over the subscription period. Contracts with Multiple Performance Obligations Many of our contracts with customers contain multiple performance obligations. Determining whether products and services are considered distinct performance obligations that should be accounted for separately versus together may require judgment. We account for individual performance obligations separately if they are distinct. The performance obligations for these contracts include access and use of our core solutions, implementation services, and customer support. Access and use of our core solutions and implementation services are considered distinct. The transaction price is allocated to each performance obligation on a relative standalone selling price basis. Judgment is required to determine the standalone selling price for each distinct performance obligation. We typically have more than one standalone selling price for individual products and services due to the stratification of those products and services by customers and circumstances. In these instances, we determine the standalone selling price based on our overall pricing objectives, taking into consideration customer demographics and other factors. Fees are fixed based on rates specified in the subscription agreements, which do not provide for any refunds or adjustments. Deferred Revenue We record deferred revenue when cash payments are received in advance of our performance. During the twelve months ended December 31, 2019 and 2018 , we recognized $3.4 million and $7.1 million , respectively, that were included in the deferred revenue balances at December 31, 2018 and 2017 , respectively. Our payment terms vary by the type of our customer and the products or services offered. The time between invoicing and when payment is due is not significant. In instances where the timing of revenue recognition differs from the timing of invoicing, we have determined that our contracts do not include a significant financing component. Practical Expedients In determining the transaction price, we have applied the practical expedient which allows us not to adjust the consideration for the effects of the time value of money as long as the time between when we transfer the promised service to a customer and when a customer pays is one year or less. We do not disclose the value of unsatisfied performance obligations for contracts with an original expected term of one year or less. We recognize revenue in proportion to the amount we have the right to invoice for certain core solutions and Value+ services revenue, as that amount corresponds directly with our performance completed to date. Deferred Costs Deferred costs, which primarily consist of sales commissions, are considered incremental and recoverable costs of obtaining a contract with a customer. These costs are deferred and then amortized on a straight-line basis over a period of benefit that we have determined to be three years. We typically do not pay commissions for contract renewals. We determined the period of benefit by taking into consideration our customer contract term, the useful life of our internal-use software, average customer life, and other factors. Amortization expense for the deferred costs is allocated based on the employee's department and included within sales and marketing expense in the accompanying Consolidated Statements of Operations. Prior to the adoption of Accounting Standards Update ("ASU") No. 2014-09, Revenue from Contracts with Customers ("ASU 2014-09" or the "New Revenue Standard") ASU 2014-09, our commissions were expensed as incurred. Deferred costs were $9.5 million and $7.2 million at December 31, 2019 and 2018 , respectively, of which $4.8 million and $3.2 million , respectively, are included in prepaid expenses and other current assets and $4.6 million and $4.0 million , respectively, are included in other assets in the accompanying Consolidated Balance Sheets. Amortization expense for deferred costs was $4.2 million and $2.0 million for the years ended December 31, 2019 and 2018 , respectively. For the years ended December 31, 2019 and 2018 , no impairments were identified in relation to the costs capitalized for the periods presented. Cost of Revenue Cost of revenue consists of fees paid to third-party service providers associated with delivering certain of our Value+ services (including legal fees and costs associated with the delivery and provision of those services, as well as loss reserves and other costs associated with our legal liability to landlord insurance services), personnel-related costs (including salaries, incentive-based compensation, benefits, and stock-based compensation) for our employees focused on customer service and the support of our operations, platform infrastructure costs (such as data center operations and hosting-related costs), payment processing fees, and allocated shared costs. We typically allocate shared costs across our organization based on headcount within the applicable part of our organization. Cost of revenue excludes depreciation of property and equipment, and amortization of capitalized software development costs and intangible assets. Sales and Marketing Sales and marketing expense consists of personnel-related costs (including salaries, sales commissions, incentive-based compensation, benefits, and stock-based compensation) for our employees focused on sales and marketing, costs associated with sales and marketing activities, and allocated shared costs. Marketing activities include advertising, online lead generation, lead nurturing, customer and industry events, and the creation of industry-related content and collateral. Sales commissions and other incremental costs to acquire customers and grow adoption and utilization of our Value+ services by our new and existing customers are deferred and then amortized on a straight-line basis over a period of benefit that we have determined to be three years. We focus our sales and marketing efforts on generating awareness of our software solutions, creating sales leads, establishing and promoting our brands, and cultivating an educated community of successful and vocal customers. Advertising expenses were $5.8 million , $4.5 million and $3.6 million for each of the years ended December 31, 2019 , 2018 and 2017 , respectively, and are expensed as incurred. Research and Product Development Research and product development expense consists of personnel-related costs (including salaries, incentive-based compensation, benefits, and stock-based compensation) for our employees focused on research and product development, fees for third-party development resources, and allocated shared costs. Our research and product development efforts are focused on enhancing the ease of use and functionality of our existing software solutions by adding new core functionality, Value+ services and other improvements, as well as developing new products and services for new and existing markets. We capitalize the portion of our software development costs that meets the criteria for capitalization. Amortization of capitalized software development costs is included in depreciation and amortization expense. General and Administrative General and administrative expense consists of personnel-related costs (including salaries, a majority of total incentive-based compensation, benefits, and stock-based compensation) for employees in our executive, finance, information technology, human resources, corporate development, legal and administrative organizations. In addition, general and administrative expense includes fees for third-party professional services (including audit, legal, tax, and consulting services), transaction costs related to business combinations, other corporate expenses, and allocated shared costs. Depreciation and Amortization Depreciation and amortization expense includes depreciation of property and equipment, amortization of capitalized software development costs and amortization of intangible assets. We depreciate or amortize property and equipment, software development costs and intangible assets over their expected useful lives on a straight-line basis, which approximates the pattern in which the economic benefits of the assets are consumed. Stock-Based Compensation We recognize stock-based compensation expense for stock-based awards granted to employees and directors that can be settled in shares of our common stock. We estimate the fair value of stock options and performance-based stock options ("PSOs"), using the Black-Scholes option-pricing model. We estimate the fair value of RSAs, RSUs and performance-based RSUs or PSU's based on the fair value of our common stock on the date of grant. Stock Options For the years ended December 31, 2019 and 2018, we did not grant time-based stock options or PSOs. For the year ended December 31, 2017, we determined the fair value of awards using the Black-Scholes option-pricing model which requires the use of subjective assumptions. Key assumptions used in this model were (1) the fair value of the underlying ordinary shares, (2) the time period for which we expect the options will be outstanding (the expected term), (3) the expected volatility of our stock price, (4) the risk-free interest rate, and (5) the expected dividend yield. Expected term and expected volatility are the judgments that we believe are subjective in estimating fair value (and related share-based compensation expense) of our option awards. For the year ended December 31, 2017, the expected term was determined using the simplified method, which is calculated as the midpoint of the stock option vesting term and the expiration date of the stock option. We considered historical average volatilities of publicly traded industry peers, in estimating expected volatility for options. Other assumptions used include risk-free interest rate and expected dividend yield. The risk-free interest rate is based on the yield for a U.S. Treasury security having a maturity similar to the expected term of the related option grant. This assumption was dependent on the assumed expected term. The dividend yield of 0% is based on us not paying or anticipating paying any cash dividends in the foreseeable future. Restricted Stock Units RSUs vest in equal tranches over four annual periods and are expensed on a straight-line basis over the vesting period. The shares underlying the RSU grants are not issued and outstanding until the applicable vesting date. Performance-Based Equity Awards Our PSOs and PSUs, include performance conditions that require us to estimate the probable outcome of the performance condition. This assessment is based on management's judgment using internally developed forecasts and assessed at each reporting period. Compensation cost is recorded if it is probable that the performance condition will be achieved. Adjustments to compensation expense are made each period based on changes in our estimate of the number of PSOs and PSUs that are probable of vesting. PSOs and PSUs will vest upon achievement of the relevant performance metric once such calculation is reviewed and approved by our Board of Directors. Forfeiture Rate We estimate a forfeiture rate to calculate our stock-based compensation expense for our stock-based awards. The forfeiture rate is based on an analysis of actual forfeitures. We will continue to evaluate the appropriateness of the forfeiture rate based on actual forfeiture experience, analysis of employee turnover, and other factors. Changes in the estimated forfeiture rate can have a significant impact on our stock-based compensation expense as the cumulative effect of adjusting the rate is recognized in the period the estimated forfeiture rate is changed. If a revised forfeiture rate is higher than the previously-estimated forfeiture rate, an adjustment is made that will result in a decrease to our stock-based compensation expense recognized in our Consolidated Financial Statements. If a revised forfeiture rate is lower than the previously-estimated forfeiture rate, an adjustment is made that will result in an increase to our stock-based compensation expense recognized in our Consolidated Financial Statements. Income Taxes We recognize deferred tax liabilities and assets for the expected future tax consequences of temporary differences between the carrying amounts and the tax bases of assets and liabilities. Deferred income tax assets and liabilities are measured using enacted tax rates expected to apply to taxable income in the years in which those temporary differences are expected to be recovered or settled. The effect of a change in tax rates on deferred tax assets and liabilities is recognized in the Conso |