Description of Business and Summary of Significant Accounting Policies | Description of Business and Summary of Significant Accounting Policies New Relic, Inc. (the “Company” or “New Relic”) was incorporated in Delaware on February 20, 2008, when it converted from a Delaware limited liability company called New Relic Software, LLC, which was formed in Delaware in September 2007. The Company delivers the observability platform for engineers to plan, build, deploy and operate more perfect software. New Relic One is the Company’s purpose-built offering for customers to land all of their telemetry data quickly and affordably in one place, and to translate that data into actionable insights. Basis of Presentation and Consolidation —The consolidated financial statements include the accounts of New Relic and its subsidiaries. These consolidated financial statements have been prepared in accordance with United States generally accepted accounting principles, or GAAP. All intercompany balances and transactions have been eliminated in consolidation. Foreign Currency Translation and Transactions —The functional currency of the Company’s foreign subsidiaries is the U.S. dollar. The Company translates all monetary assets and liabilities denominated in foreign currencies into U.S. dollars using the exchange rates in effect at the balance sheet dates and other assets and liabilities using historical exchange rates. Foreign currency-denominated revenue and expenses have been re-measured using the average exchange rates in effect during each period. Foreign currency re-measurement gains and losses have been included in other income (expense). Use of Estimates —The preparation of the Company’s consolidated financial statements in conformity with GAAP requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities and disclosure of contingent assets and liabilities at the date of the consolidated financial statements and the reported amounts of income and expenses during the reporting period. Significant items subject to such estimates and assumptions include the fair value of share-based awards, fair value of purchased intangible assets and goodwill, fair value of debt and equity components related to the 0.5% convertible senior notes due 2023 (the “Notes”), useful lives of purchased intangible assets, unrecognized tax benefits, expected benefit period for deferred commissions, incremental borrowing rate used for operating lease liabilities, and the capitalization and estimated useful life of the Company’s software development costs. These estimates are based on information available as of the date of the consolidated financial statements; therefore, actual results could differ from management’s estimates. COVID-19 —The COVID-19 pandemic has resulted in a global slowdown of economic activity that is expected to continue and which is likely to decrease demand for a broad variety of goods and services, while also disrupting sales channels and marketing activities for an unknown period of time until the disease is contained. The Company’s revenue and deferred revenue have been negatively impacted by the slowdown in activity associated with the COVID-19 pandemic for the fiscal year ending March 31, 2021, but at this point, the extent of any continuing impact to the Company’s financial condition or results of operations is uncertain, particularly as the COVID-19 pandemic continues to persist for an extended period of time, and as of the date of issuance of these financial statements, management is not aware of any specific event or circumstance that would require an update to estimates and judgments or revising the carrying value of its assets or liabilities. These estimates may change as new events occur and additional information is obtained, and will be recognized in the condensed consolidated financial statements as soon as they become known. Actual results could differ from those estimates and any such differences may be material to the financial statements. Segments —The Company’s chief operating decision maker is the Chief Executive Officer, who reviews financial information presented on a consolidated basis, accompanied by information about revenue by geographic region. Accordingly, the Company has determined that it has a single reportable segment. Cash and Cash Equivalents —The Company considers all highly liquid investments with an original maturity of three months or less at the date of purchase to be cash and cash equivalents. Restricted Cash —The Company has an agreement to maintain cash balances at a financial institution as collateral for letters of credit relating to the Company’s property leases. Short-term Investments —Short-term investments consist of money market funds, certificates of deposit, commercial paper, U.S. treasury securities, U.S. agency securities, and corporate debt securities, and are classified as available-for-sale securities. The Company has classified its investments as current based on the nature of the investments and their availability for use in current operations. Available-for-sale securities are carried at fair value with unrealized gains and losses reported as a component of accumulated other comprehensive income, while realized gains and losses are reported within the statement of operations. The Company reviews its debt securities classified as short-term investments on a regular basis to evaluate whether or not any security has experienced an other-than-temporary decline in fair value. The Company considers factors such as the length of time and extent to which the market value has been less than the cost, the financial position and near-term prospects of the issuer, and the Company’s intent to sell, or whether it is more likely than not the Company will be required to sell the investment before recovery of the investment’s amortized-cost basis. If the Company determines that an other-than-temporary decline exists in one of these securities, the respective investment would be written down to fair value. For debt securities, the portion of the write-down related to credit loss would be recognized to other income, net in the consolidated statement of operations. Any portion not related to credit loss would be included in accumulated other comprehensive income (loss). The Company did not identify any investments as other-than-temporarily impaired as of March 31, 2021 or March 31, 2020. Business Combinations —The Company recognizes identifiable assets acquired and liabilities assumed at their acquisition date fair value. Goodwill as of the acquisition date is measured as the excess of consideration transferred over the net of the acquisition date fair values of the assets acquired and the liabilities assumed. While the Company uses its best estimates and assumptions as a part of the purchase price allocation process to accurately value assets acquired and liabilities assumed at the acquisition date, its estimates are inherently uncertain and subject to refinement. As a result, during the measurement period, which may be up to one year from the acquisition date, the Company records adjustments to the assets acquired and liabilities assumed, with the corresponding offset to goodwill to the extent that the Company identifies adjustments to the preliminary purchase price allocation. Upon the conclusion of the measurement period or final determination of the values of assets acquired or liabilities assumed, whichever comes first, any subsequent adjustments are recorded to the Company’s consolidated statements of operations. There has been no such adjustment as of March 31, 2021. Property and Equipment —Property and equipment are stated at cost. Depreciation is calculated using the straight-line method over the estimated useful lives of the assets. The Company uses an estimated useful life of three years for employee-related computers and software, three years for other office equipment and site-related computer hardware, and five years for furniture. Leasehold improvements are amortized over the shorter of the lease-term or the estimated useful life of the related asset. Down payments for property and equipment are recorded at cost and included in other assets in the accompanying consolidated balance sheet. Once the corresponding property and equipment item has been received, it will be reclassified to property and equipment and depreciated. Revenue Recognition —The Company generates revenue from subscription-based arrangements and usage-based arrangements that allow customers to access its products and/or platform. The Company determines revenue recognition through the following steps: • identification of the contract, or contracts with a customer; • identification of the performance obligations in the contract; • determination of the transaction price; • allocation of the transaction price to the performance obligations in the contract; and • recognition of revenue, when, or as, the Company satisfies a performance obligation. Revenue from subscription-based arrangements is recognized on a ratable basis over the contractual subscription period of the arrangement beginning when or as control of the promised goods or services is transferred to the customer. Beginning in the second quarter of fiscal 2021, the Company started offering usage-based pricing to its customers. Customers have the option to be charged upon their incurred usage in arrears (“Pay as You Go”), or they may commit to a minimum spend over their contracted period (“Annual Pool of Funds”). Revenue related to Pay as You Go contracts are recognized based on the customers’ actual usage. Revenue related to Annual Pool of Funds contracts are recognized on a ratable basis over the contract period including an estimate of the usage above the minimum commitment. The estimated usage-based revenues are constrained to the amount the Company expects to be entitled to receive in exchange for providing access to its platform. Deferred Revenue —Deferred revenue consists of billings or payments received in advance of revenue being recognized. The Company generally invoices its customers monthly, quarterly, or annually. Deferred revenue that will be recognized during the succeeding 12-month period is recorded as current deferred revenue and the remaining portion is recorded as non-current deferred revenue. Cost of Revenue —Cost of revenue consists of expenses relating to data center operations, hosting-related costs, payment processing fees, depreciation and amortization, consulting costs, and salaries and benefits of operations and global customer support personnel. Accounts Receivable and Allowance for Doubtful Accounts —Accounts receivable are recorded at the invoiced amount, net of allowances for doubtful accounts. The allowance for doubtful accounts is based on the Company’s assessment of the collectability of accounts. The Company regularly reviews the adequacy of the allowance for doubtful accounts by considering the age of each outstanding invoice and the collection history of each customer to determine whether a specific allowance is appropriate. Accounts receivable deemed uncollectable are charged against the allowance for doubtful accounts when identified. For all periods presented, the allowance for doubtful accounts activity was not significant. Software Development Costs —The Company capitalizes certain development costs incurred in connection with its internal use software and website. These capitalized costs are primarily related to its software tools that are hosted by the Company and accessed by its customers on a subscription basis. Costs incurred in the preliminary stages of development are expensed as incurred. Once an application has reached the development stage, internal and external costs, if direct and incremental, are capitalized until the software is substantially complete and ready for its intended use. Capitalization ceases when the software is released or made available. The Company also capitalizes costs related to specific upgrades and enhancements when it is probable the expenditures will result in additional features and functionality. Maintenance costs are expensed as incurred. Internal use software is amortized on a straight-line basis over its estimated useful life, generally three years. The Company capitalized $17.6 million, $8.1 million, and $6.0 million in internal use software during the fiscal years ended March 31, 2021, 2020, and 2019, respectively. Included in the capitalized development costs were $4.1 million, $1.5 million, and $0.8 million of stock-based compensation costs for the fiscal years ended March 31, 2021, 2020, and 2019, respectively. Amortization expense totaled $7.0 million, $4.9 million, and $4.1 million during the fiscal years ended March 31, 2021, 2020, and 2019, respectively. The net book value of capitalized internal use software as of March 31, 2021 and 2020, which is recorded in property and equipment on the accompanying consolidated balance sheets, was $23.2 million and $13.5 million, respectively. The Company also capitalizes qualifying implementation costs incurred in a hosting arrangement that is a service contract based on the existing guidance for internally developed software. In accordance with the guidance, (i) capitalized implementation costs are classified in the same balance sheet line item as the amounts prepaid for the related hosting arrangement; (ii) amortization of capitalized implementation costs are presented in the same income statement line item as the service fees for the related hosting arrangement; and (iii) cash flows related to capitalized implementation costs are presented within the same category of cash flow activity as the cash flows for the related hosting arrangement (i.e. operating activity). The Company tests for impairment whenever events or changes in circumstances occur that could impact the recoverability of these assets. The Company amortizes capitalized implementation costs over the expected life of the service contract. The Company capitalized $2.1 million and $2.5 million in implementation costs for software hosting arrangements during the fiscal years ended March 31, 2021 and 2020, respectively. Amortization expense totaled $1.2 million and $0.2 million during the fiscal years ended March 31, 2021 and 2020, respectively. Commissions —The Company capitalizes incremental commissions related to initial contracts and amortizes such costs over the expected period of benefit, which the Company has determined to be three years, because the commissions paid upon renewal are not commensurate with the commissions paid on initial contracts. The Company determined the period of benefit by taking into consideration the length of its customer contracts, their technology lifecycle, and other factors. Amortization expense is recorded in sales and marketing expense within the consolidated statement of operations. The Company expenses incremental commissions related to renewal contracts, as the commission paid on renewals are generally for contract periods of one year or less . Advertising Expenses —Advertising is expensed as incurred and is included in sales and marketing in the consolidated statements of operations. Advertising expense was $24.5 million, $21.8 million, and $19.3 million for the fiscal years ended March 31, 2021, 2020, and 2019, respectively. Operating Leases —The Company leases office space under non-cancelable operating leases which expire from 2021 to 2031. All of its office leases are classified as operating leases with lease expense recognized on a straight-line basis over the lease term. Lease right-of-use assets and liabilities are recognized at the commencement date based on the present value of lease payments over the lease term. As these leases do not provide an implicit rate, the Company uses its incremental borrowing rate based on the information available at commencement date in determining the present value of lease payments. The Company considers information including, but not limited to, the lease term, the Company's credit rating and interest rates of similar debt instruments with comparable credit ratings. The lease right-of-use assets are also increased by any lease prepayments made and reduced by any lease incentives such as tenant improvement allowances. Options to extend the lease term are included in the lease term when it is reasonably certain that the Company will exercise the extension option. The Company’s operating leases typically include nonlease components such as common-area maintenance costs. The Company has elected to include nonlease components with lease payments for the purpose of calculating lease right-of-use assets and liabilities, to the extent that they are fixed. Nonlease components that are not fixed are expensed as incurred as variable lease payments. Leases with a term of one year or less are not recognized on the Company’s consolidated balance sheet. Impairment of Long-Lived Assets —Long-lived assets, such as property and equipment, acquired intangible assets, and capitalized software development costs subject to amortization, are reviewed for impairment whenever events or changes in circumstances indicate that the carrying amount of the asset may not be recoverable. If circumstances require a long-lived asset be tested for possible impairment, the Company first compares undiscounted cash flows expected to be generated by the asset to its carrying value. If the carrying value of the long-lived asset is not recoverable on an undiscounted cash flow basis, an impairment is recognized to the extent that the carrying value exceeds its fair value. Fair value is determined through various valuation techniques, including discounted cash flow models, quoted market values, and third-party independent appraisals, as considered necessary. For the fiscal years presented, the Company had not impaired any of its long-lived assets. Goodwill —Goodwill represents the excess of the purchase price of an acquired business over the fair value of the underlying net tangible and intangible assets. Goodwill is evaluated for impairment annually in the third quarter of the Company’s fiscal year, and whenever events or changes in circumstances indicate the carrying value of goodwill may not be recoverable. Triggering events that may indicate impairment include, but are not limited to, a significant adverse change in customer demand or business climate that could affect the value of goodwill or a significant decrease in expected cash flows. Since inception through March 31, 2021, the Company did not have any goodwill impairment. Intangible Assets —Intangible assets consist of identifiable intangible assets, primarily developed technology, resulting from the Company’s acquisitions. Acquired intangible assets are recorded at cost, net of accumulated amortization. Intangible assets are amortized on a straight-line basis over their estimated useful lives. Stock-Based Compensation —The Company estimates the fair value of share-based awards on the date of grant. The value of the portion of the award that is ultimately expected to vest is recognized as expense over the requisite service periods in the statements of operations. The Company recognizes compensation expense for the majority of its awards over the vesting period of the entire award using the straight-line attribution method. These amounts are reduced by an estimated forfeiture rate. The forfeiture rate is estimated based on actual cancellation experience and is applied to all share-based awards. The rate is estimated at the time of grant and revised, if necessary, in subsequent periods if actual forfeitures differ from those estimates. The Company selected the Black-Scholes option-pricing model as the method for determining the estimated fair value for stock options and shares pursuant to the Company’s 2014 Employee Stock Purchase Plan, or ESPP. The Black-Scholes option-pricing model requires the use of highly subjective and complex assumptions, which determine the fair value of share-based awards, including the option’s expected term and the price volatility of the underlying stock. The Company uses a Monte Carlo simulation model to determine the fair value of its performance stock units, or PSUs, and recognizes expense using the accelerated attribution method over the requisite service period. The authoritative guidance prohibits the recognition of a deferred tax asset for an excess tax benefit that has not yet been included in the Company’s tax return. As a result, the Company will only recognize an excess tax benefit from stock-based compensation in additional paid-in capital in the period in which it is included in the Company’s tax return. Fair Value Measurements —The Company defines fair value as the price that would be received from selling an asset or paid to transfer a liability in an orderly transaction between market participants at the measurement date. When determining the fair value measurements for assets and liabilities that are required to be recorded at fair value, the Company considers the principal or most advantageous market in which to transact and the market-based risk. The Company applies fair value accounting for all financial assets and liabilities that are recognized or disclosed at fair value in the financial statements on a recurring basis. The carrying amounts reported in the consolidated financial statements approximate the fair value for cash and cash equivalents, restricted cash, accounts receivable, accounts payable, and accrued liabilities, due to their short-term nature. Concentration of Risk —Financial instruments that potentially subject the Company to concentrations of credit risk consist primarily of cash and cash equivalents, restricted cash, short-term investments, and trade accounts receivable. The Company invests its excess cash in money market funds, certificates of deposit, commercial paper, U.S. treasury securities, U.S. agency securities, and corporate debt securities with major financial institutions. Management believes that the financial institutions that hold the Company’s investments are financially sound and, accordingly, are subject to minimal credit risk. There were no customers that represented more than 10% of the Company’s accounts receivable balance as of March 31, 2021 and March 31, 2020. In addition, there were no customers that individually exceeded 10% of the Company’s revenue during the fiscal years ended March 31, 2021, 2020, and 2019. Income Taxes —The Company accounts for income taxes using the asset and liability method, which requires the recognition of deferred tax assets and liabilities for the expected future tax consequences of events that have been recognized in the Company’s consolidated financial statements or tax returns. In addition, deferred tax assets are recorded for the future benefit of utilizing net operating losses and research and development credit carryforwards. Valuation allowances are provided when necessary to reduce deferred tax assets to the amount that is more likely than not to be realized. The Company recognizes interest and penalties related to unrecognized tax benefits within the income tax expense line in the consolidated statement of operations Net Loss Per Share —The Company’s basic net loss per share is calculated by dividing the net loss by the weighted-average number of shares of common stock outstanding for the period. The diluted net loss per share is computed by giving effect to all potential dilutive common stock equivalents outstanding for the period. For purposes of this calculation, options to purchase common stock, common stock reserved for issuance, restricted stock units, convertible debt, and shares issuable pursuant to the ESPP are considered common stock equivalents but have been excluded from the calculation of diluted net loss per share as their effect is antidilutive. Recently Issued Accounting Pronouncements Not Yet Adopted In August 2020, the Financial Accounting Standards Board (“FASB”) issued ASU 2020-06, Debt—Debt with Conversion and Other Options (Subtopic 470-20) and Derivatives and Hedging—Contracts in Entity’s Own Equity (Subtopic 815-40) . This ASU simplifies the accounting for convertible instruments by reducing the number of accounting models for convertible debt instruments and convertible preferred stock. This will result in more convertible debt instruments being accounted for as a single liability instrument and more convertible preferred stock being accounted for as a single equity instrument with no separate accounting for embedded conversion features. The ASU also simplifies the diluted earnings per share (“EPS”) calculation in certain areas. This standard will be effective for the Company in the fiscal year beginning April 1, 2022. The Company is currently evaluating the effect the standard will have on its consolidated financial statements. Recently Adopted Accounting Pronouncements In June 2016, the FASB issued ASU 2016-13, Financial Instruments—Credit Losses (Topic 326): Measurement of Credit Losses on Financial Instruments , which amends guidance on reporting credit losses for assets held at amortized cost basis and available-for-sale debt securities. The Company adopted this new standard on April 1, 2020. The adoption of this standard did not have a material impact on its consolidated financial statements. Under the new standard, the Company assesses credit losses on accounts receivable by taking into consideration past collection experience, credit quality of the customer, age of the receivable balance, current economic conditions, and forecasts that affect the collectability of the reported amount. With respect to available-for-sale debt securities, the updated guidance requires that credit losses be presented as an allowance rather than as a write-down. Allowance for credit losses is recorded in other income (expense), net on the consolidated statements of operations, limited by the amount that fair value is less than the amortized cost basis. Non-credit related impairment losses are reported as a separate component on the consolidated statements of comprehensive loss. In January 2017, the FASB issued ASU 2017-04, Intangibles-Goodwill and Other (Topic 350): Simplifying the Test for Goodwill Impairment , which eliminates Step 2 from the goodwill impairment test. The Company adopted this standard on April 1, 2020. The adoption of this standard did not have a material impact on its consolidated financial statements or disclosures. In August 2018, the FASB issued ASU 2018-13, Disclosure Framework - Changes to the Disclosure Requirements for Fair Value Measurement (“ASU 2018-13”), which amends ASC 820, Fair Value Measurement. ASU 2018-13 modifies the disclosure requirements for fair value measurements by removing, modifying, or adding certain disclosures. The removed and modified disclosures will be adopted on a retrospective basis and the new disclosures will be adopted on a prospective basis. The Company adopted this standard on April 1, 2020. The adoption of this standard did not have a material impact on its consolidated financial statements. In December 2019, the FASB issued ASU 2019-12, Income Taxes (Topic 740) |