Summary of business and significant accounting policies | Summary of business and significant accounting policies HealthEquity, Inc. was incorporated in the state of Delaware on September 18, 2002, and was organized to offer a full range of innovative solutions for managing health care accounts (Health Savings Accounts ("HSAs"), Health Reimbursement Arrangements ("HRAs"), and Flexible Spending Accounts ("FSAs")) for health plans, insurance companies, and third-party administrators. In February 2006, HealthEquity, Inc. received designation by the U.S. Department of Treasury to act as a passive non-bank custodian, which allows HealthEquity, Inc. to hold custodial assets for individual account holders. On July 24, 2017, HealthEquity, Inc. received designation by the U.S. Department of Treasury to act as both a passive and non-passive non-bank custodian, which allows HealthEquity, Inc. to hold custodial assets for individual account holders and use discretion to direct investment of such assets held. As a passive and non-passive non-bank custodian according to Treasury Regulations section 1.408-2(e)(5)(ii)(B), the Company must maintain net worth (assets minus liabilities) greater than 2% of passive custodial funds held at each calendar year-end and 4% of the non-passive custodial funds held at each calendar year-end in order to take on additional custodial assets. The accompanying financial statements have been prepared in conformity with accounting principles generally accepted in the United States of America, or GAAP, which contemplates the realization of assets and satisfaction of liabilities in the normal course of business. The financial statements and notes are representations of the Company's management, which is responsible for their integrity and objectivity. These accounting policies conform to accounting principles generally accepted in the United States of America and have been consistently applied in the preparation of the consolidated financial statements, except for the new accounting pronouncements, which were adopted during the year ended January 31, 2018 as described below. Certain reclassifications have been made to prior year amounts to conform to the current year presentation. Principles of consolidation —The consolidated financial statements include the accounts of HealthEquity, Inc. and its wholly owned subsidiaries, HealthEquity Trust Company, HEQ Insurance Services, Inc., HealthEquity Advisors, LLC and HealthEquity Retirement Services, LLC (collectively referred to as the "Company"). During the year ended January 31, 2015 , the Company and an unrelated company formed a limited partnership for investment in and the management of early stage companies in the healthcare industry. The Company has a 22% ownership interest in such partnership that is accounted for using the equity method of accounting. The investment was approximately $206,000 as of January 31, 2018 and is included in other assets on the accompanying consolidated balance sheets. During the year ended January 31, 2016 , the Company purchased an approximate 2% ownership interest in a limited partnership that engages in the development of technology-based financial healthcare products. The Company determined there was no significant influence and therefore the investment was accounted for using the cost method of accounting. Under the cost method of accounting, the fair value of an investment is not estimated if there are no identified events or changes in circumstances that may have a significant adverse effect on the fair value of the investment. The investment was $500,000 as of January 31, 2018 and is included in other assets on the accompanying consolidated balance sheet. During the year ended January 31, 2017 , the Company formed HealthEquity Trust Company, a Wyoming corporation and non-depository trust company, to act as the master custodian of all investment assets held in HSAs administered by the Company. During the year ended January 31, 2018 , the Company formed HealthEquity Retirement Services, LLC, a Delaware limited liability company, to acquire and own the assets of BenefitGuard LLC and provide ERISA plan fiduciary services. All significant intercompany balances and transactions have been eliminated. Segments —The Company operates in one segment. Management uses one measurement of profitability and does not segregate its business for internal reporting. All long-lived assets are maintained in the United States of America. Cash, cash equivalents —The Company considers all highly liquid investments purchased with an original maturity of three months or less to be cash equivalents. The Company’s cash and cash equivalents were held in institutions in the U.S. and include deposits in a money market account that was unrestricted as to withdrawal or use. Marketable securities —Marketable securities consist primarily of mutual funds invested in corporate bonds, U.S. government agency securities, U.S. treasury bills, commercial paper, certificates of deposit, municipal notes, and bonds with original maturities beyond three months at the time of purchase. Marketable securities are classified as available-for-sale, held-to-maturity, or trading at the date of purchase. As of January 31, 2018 , all marketable securities have been classified as available-for-sale. The Company may sell these securities at any time for use in current operations or for other purposes even if they have not yet reached maturity. As a result, the Company classifies its marketable securities, including securities with maturities beyond twelve months, as current assets in the accompanying consolidated balance sheets. All marketable securities are recorded at their estimated fair value. Unrealized gains and losses for available-for-sale securities are recorded in other comprehensive income, net of the related tax effect. The Company evaluates its marketable securities to assess whether those with unrealized loss positions are other-than-temporarily impaired. The Company considers impairments to be other than temporary if they are related to deterioration in credit risk or if it is likely it will sell the securities before the recovery of their cost basis. Realized gains and losses and declines in value judged to be other-than-temporary are determined based on the specific identification method and are reported in other expense, net in the consolidated statements of operations and comprehensive income. Accounts receivable —Accounts receivable represent monies due to the Company for monthly service revenue, custodial revenue and interchange revenue. As of January 31, 2018 , accounts receivable consisted of $7.9 million of service revenue, $9.0 million of custodial revenue, and $4.7 million of interchange revenue. The Company maintains an allowance for doubtful accounts to reserve for potentially uncollectible receivable amounts. In evaluating the Company’s ability to collect outstanding receivable balances, the Company considers various factors including the age of the balance, the creditworthiness of the customer, which is assessed based on ongoing credit evaluations and payment history, and the customer’s current financial condition. As of January 31, 2018 and 2017 , the Company had allowance for doubtful accounts of $208,000 and $75,000 , respectively. Inventories —Inventories consist of new member and participant supplies and are recorded at the lower of cost or market using an average cost basis. Other assets —Other assets consist primarily of prepaid expenditures, income tax receivables, and various other assets. Amounts expected to be recouped or recognized over a period of twelve months or less have been classified as current in the accompanying consolidated balance sheets. Property and equipment —Property and equipment, including leasehold improvements, are stated at cost less accumulated depreciation. Depreciation is determined using the straight-line method over the estimated useful lives of individual assets. The useful life for leasehold improvements is the shorter of the estimated useful life or the term of the lease ranging from 3 - 5 years . The useful life used for computing depreciation for all other asset classes is described below: Computer Equipment 3-5 years Furniture and Fixtures 5 years Maintenance and repairs are expensed when incurred, and improvements that extend the economic useful life of an asset are capitalized. Gains and losses on the disposal of property and equipment are reflected in operating expenses. Capitalized software development costs —We account for the costs of computer software developed or obtained for internal use in accordance with Accounting Standards Codification (“ASC”) 350-40, “Internal-Use Software.” Costs incurred during operation and post-implementation stages are charged to expense. Costs incurred that are directly attributable to developing or obtaining software for internal use incurred in the application development stage are capitalized. Management’s judgment is required in determining the point when various projects enter the stages at which costs may be capitalized, in assessing the ongoing value of the capitalized costs and in determining the estimated useful lives over which the costs are amortized. See Note 5—Intangible Assets and Goodwill for additional information. Intangible assets, net —Intangible assets are carried at cost and amortized, typically, on a straight-line basis over their estimated useful lives, which is 3 - 5 years for capitalized software development costs and acquired technology rights, 10 years for 401(k) customer relationships, or other intangible assets, and 15 years for certain acquired HSA intangible member assets. The acquired intangible member assets are the result of various acquisitions of HSA portfolios. A significant portion of the purchase price from each acquisition has been allocated to the acquired HSA assets, which consists of the contractual rights to administer the activities related to the individual health savings accounts acquired. The Company analyzed the historical attrition and depletion rates of member accounts and determined that an average useful life of 15 years and the use of a straight-line amortization method are appropriate to reflect the pattern over which the economic benefits of existing member assets are realized. The Company reviews identifiable amortizable intangible assets to be held and used for impairment whenever events or changes in circumstances indicate that the carrying value of the assets may not be recoverable. Determination of recoverability is based on the lowest level of identifiable estimated undiscounted cash flows resulting from use of the asset and its eventual disposition. Measurement of any impairment loss is based on the excess of the carrying value of the asset over its fair value. There have been no impairment charges recorded in any of the periods presented in the accompanying consolidated financial statements. See Note 5—Intangible Assets and Goodwill for additional information. Goodwill —Goodwill represents the excess of the purchase price over the fair value of the net tangible and intangible assets acquired in a business combination. Goodwill is not amortized, but is tested for impairment annually on January 31 or more frequently if events or changes in circumstances indicate that the asset may be impaired. The Company’s impairment tests are based on a single operating segment and reporting unit structure. The goodwill impairment test involves a two-step process. The first step involves comparing the Company's market capitalization to the carrying value of the reporting unit, including goodwill. If the carrying value of the reporting unit exceeds its fair value, the second step of the test is performed by comparing the carrying value of the goodwill in the reporting unit to its implied fair value. An impairment charge is recognized for the excess of the carrying value of goodwill over its implied fair value. The Company’s annual goodwill impairment test resulted in no impairment charges in any of the periods presented in the accompanying consolidated financial statements. Self insurance —The Company is self-insured for medical insurance up to certain annual stop-loss limits. The Company establishes a liability as of the balance sheet date for claims, both reported and incurred but not reported, using currently available information as well as historical claims experience, and as determined by an independent third party. Other long-term liabilities —The Company recognizes rental expense for its office lease on a straight-line basis over the lease term. Other long-term liabilities includes deferred rent, which represents the difference between actual operating lease payments due and straight-line rent expense. The excess is recorded as a deferred credit in the early periods of the lease, when cash payments are generally lower than straight-line rent expense, and is reduced in the later periods of the lease when payments begin to exceed the straight-line expense. Follow-on offering —On May 11, 2015, the Company closed its follow-on public offering and sold 972,500 shares of common stock at a public offering price of $25.90 per share, less the underwriters' discount. Certain selling stockholders sold 3,455,000 shares of common stock in the offering, including 380,000 shares of common stock which were issued upon the exercise of outstanding options. The Company received net proceeds of approximately $23.5 million after deducting underwriting discounts and commissions of approximately $1.0 million and other offering expenses payable by the Company of approximately $688,000 . The Company did not receive any proceeds from the sale of shares by the selling stockholders other than $222,000 representing the exercise price of the options that were exercised in connection with the offering. Capital structure —On July 14, 2014, the Company's board of directors approved an amended and restated certificate of incorporation, pursuant to which the total number of shares of all classes of capital stock that the Company is authorized to issue is 1,000,000,000 shares, including 900,000,000 shares of common stock and 100,000,000 shares of preferred stock, par value $0.0001 per share. The amended and restated certificate of incorporation was filed with the Secretary of State of the State of Delaware and became effective on August 5, 2014 in connection with the completion of the initial public offering. Revenue recognition —The Company recognizes revenue when persuasive evidence of an arrangement exists, services have been provided, the price of services is fixed or determinable, and collection is reasonably assured. The Company earns revenue primarily from service revenue, custodial revenue, interchange revenue. The Company earns service revenue from the fees paid by health plan partners, employer partners or individual members for administration services provided in connection with the tax-advantaged HSAs, HRAs and FSAs the Company administers. These fees are generally based on a tiered structure fixed for the duration of the contract agreement with health plan or employer partners, which is typically three to five years . The fees are paid on a monthly basis and revenue is recognized monthly as services are rendered under the Company’s written service agreements. In addition, the Company earns service revenue from fees paid by employer partners and plan participants in connection with plan administrator and named fiduciary services for 401(k) employer sponsors. The fees are paid on a quarterly basis and revenue is recognized in the month in which it is earned. The Company earns custodial revenue from HSA custodial assets on behalf of its customers. As a non-bank custodian, the Company deposits HSA cash with various custodial financial institutions having contract terms from three to five years and either a fixed or variable interest rate. These deposits are eligible for FDIC insurance for each individual HSA. The Company also invests HSA cash in an annuity contract with a insurance company partner. HSA investment balances are deposited with the custodial investment partner from whom the Company receives an administrative and recordkeeping fee. The Company recognizes this revenue in the month in which it is earned. The Company earns interchange revenue from card transactions when members are paying their healthcare claims using a card issued by the Company. The Company recognizes this revenue in the month in which it is earned. Amounts collected in excess of revenue recognized for the period are recorded as deferred revenue and reported as accrued liabilities and other long-term liabilities on the consolidated balance sheet. Cost of revenue —The Company incurs cost of revenue related to servicing member accounts, managing customer and partner relationships, and processing reimbursement claims. Expenditures include personnel-related costs, depreciation, amortization, stock-based compensation, common expense allocations, new member and participant supplies and other operating costs of the Company’s related member account servicing departments. Other components of the Company’s cost of revenue sold include interest retained by members on custodial assets held and interchange costs incurred in connection with processing card transactions initiated by members. Stock-based compensation —For stock options granted to team members, the Company recognizes compensation expense for all stock-based awards based on the grant date estimated fair value. The value of the portion of the award that is ultimately expected to vest is recognized as expense ratably over the requisite service period. The fair value of stock options is determined using the Black-Scholes option pricing model. The determination of fair value for stock-based awards on the date of grant using an option pricing model requires management to make certain assumptions regarding a number of complex and subjective variables. Stock-based compensation expense related to stock options granted to non-team members is recognized based on the fair value of the stock options, determined using the Black-Scholes option pricing model, as they are earned. The awards generally vest over the time period the Company expects to receive services from the non-employee. For awards with performance conditions, we evaluate the probability of achieving the performance criteria and of the number of shares that are expected to vest, and compensation expense is then adjusted to reflect the number of shares expected to vest and the requisite service period. For awards with performance conditions, compensation expense is recognized using the graded-vesting attribution method in accordance with the provisions of FASB ASC Topic 718, Compensation—Stock Compensation ("Topic 718") . Upon the exercise of a stock option, common shares are issued from authorized, but not outstanding, common stock. Stock-based compensation expense related to restricted stock units is recognized based on the current value of the Company's closing stock price on the date of grant less the present value of future expected dividends discounted at the risk-free interest rate. Expense for restricted stock units is recognized on a straight-line basis over the requisite service period. Income tax provision —The Company accounts for income taxes and the related accounts under the liability method as set forth in the authoritative guidance for accounting for income taxes. Under this method, current tax liabilities and assets are recognized for the estimated taxes payable or refundable on the tax returns for the current fiscal year. Deferred tax assets and liabilities are recognized for the future tax consequences attributable to differences between the financial statement carrying amounts of existing assets and liabilities and their respective tax bases, for net operating losses, and for tax credit carryforwards. Deferred tax assets and liabilities are measured using enacted statutory tax rates expected to apply to taxable income in the years in which those temporary differences are expected to be realized or settled. The effect on deferred tax assets and liabilities of changes in tax rates is recognized in income in the period that includes the enactment date. A valuation allowance is provided for when it is more likely than not that some or all of the deferred tax assets may not be realized in future years. After weighing both the positive and negative evidence, the Company believes that it is more likely than not that all deferred tax assets will be realized as of January 31, 2018 . The Company uses the tax law ordering approach of intraperiod allocation in determining when excess tax benefits have been realized for provisions of the tax law that identify the sequence in which those amounts are utilized for tax purposes.The Company has also elected to exclude the indirect tax effects of share-based compensation deductions in computing the income tax provision recorded within the Consolidated Statement of Operations and Comprehensive Income. Also, we use the portfolio approach in releasing income tax effects from accumulated other comprehensive income. The Company recognizes the tax benefit from an uncertain tax position taken or expected to be taken in a tax return using a two-step approach. The first step is to evaluate the tax position taken or expected to be taken in a tax return by determining if the weight of available evidence indicates that it is more likely than not that the tax position will be sustained upon examination by the relevant taxing authorities, based on the technical merits of the position. For tax positions that are more likely than not to be sustained upon audit, the second step is to measure the tax benefit in the financial statements as the largest benefit that has a greater than 50% likelihood of being sustained upon settlement. The Company recognizes interest and penalties, if any, related to unrecognized tax benefits as a component of other expense in the Consolidated Statements of Operations and Comprehensive Income. Significant judgment is required to evaluate uncertain tax positions. Changes in facts and circumstances could have a material impact on the Company’s effective tax rate and results of operations. Comprehensive income —Comprehensive income is defined as a change in equity of a business enterprise during a period, resulting from transactions from non-owner sources, including unrealized gains and losses on marketable securities. Asset acquisitions —During the years ended January 31, 2018 , the Company acquired the rights to be the custodian of two HSA portfolios and rights to act as sole administrator of one portfolio. During the year ended January 31, 2016 , the Company acquired the rights to be the custodian of two HSA portfolios. The purchased group of assets for the transactions did not include workforce or any processes and therefore did not constitute a business. Accordingly, the acquisitions were accounted for under the asset acquisition method of accounting in accordance with ASC 805-50, Business Combinations—Related Issues. Under the asset acquisition method of accounting, the Company is required to fair value the assets transferred. The cost of the assets acquired is allocated to the individual assets acquired based on their relative fair values and does not give rise to goodwill. The purchase price was allocated to acquired intangible member assets. Furthermore, transaction costs that are incurred in conjunction with an asset acquisition are allocated to the acquired intangible member assets. Business combinations —Acquisition-related expenses incurred in conjunction with the acquisition of a business as defined by ASC 805-10 are recognized in earnings in the period in which they are incurred and are included in other expense, net on the consolidated statement of operations. During the years ended January 31, 2018 , 2017 and 2016 , the Company incurred an expense of $2.2 million , $631,000 , and $471,000 , respectively, for acquisition-related activity. There were no such business combinations during the years ended January 31, 2017 and 2016 . Concentration of market risk —The Company derives a substantial portion of its revenue from providing services for healthcare accounts. A significant downturn in this market or changes in state and/or federal laws impacting the preferential tax treatment of healthcare accounts could have a material adverse effect on the Company’s results of operations. For the years ended January 31, 2018 , 2017 and 2016 , no one customer accounted for greater than 10% of revenue or accounts receivable. Concentration of credit risk —Financial instruments, which potentially subject the Company to concentrations of credit risk, consist primarily of cash. The Company maintains its cash and cash equivalents in bank and other depository accounts, which, at times, may exceed federally insured limits. The Company’s cash and cash equivalents held in banks as of January 31, 2018 was $199.5 million , of which $750,000 was covered by federal depository insurance. The Company has not experienced any losses in such accounts and believes it is not exposed to any significant credit risk on cash. The Company’s accounts receivable balance as of January 31, 2018 was $21.6 million . The Company has not experienced any significant write-offs to accounts receivable and believes that it is not exposed to significant credit risk with respect to accounts receivable. Interest rate risk —The Company has entered into depository agreements with financial institutions for its custodial cash deposits. The contracted interest rates were negotiated at the time the depository agreements were executed. A significant reduction in prevailing interest rates may make it difficult for the Company to continue to place custodial deposits at the current contracted rates. Use of estimates —The preparation of financial statements in conformity with generally accepted accounting principles 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 financial statements and the reported amounts of revenues and expenses during the reporting period. Management has made estimates for the allowance for doubtful accounts, capitalized software development costs, evaluating goodwill and long-lived assets for impairment, useful lives of property and equipment and intangible assets, accrued compensation, accrued liabilities, grant date fair value of stock options and income taxes. Actual results could differ from those estimates. Recent adopted accounting pronouncements —In February 2018, the Financial Accounting Standards Board (the "FASB") issued Accounting Standards Update ("ASU") 2018-02, Reclassification of Certain Tax Effects from Accumulated Other Comprehensive Income, which gives companies the option to reclassify between accumulated other comprehensive income ("AOCI") and retained earnings the income tax rate differential that has become stranded in AOCI as a result of the enactment of the Tax Cuts and Jobs Act and the revaluation of certain deferred tax assets and liabilities at the new federal income tax rate of 21%. This ASU is effective for fiscal years beginning after December 15, 2018, and interim periods within those fiscal years. Early adoption is permitted. The Company has elected to early adopt this ASU in the fourth quarter of fiscal year 2018. As a result of adopting this standard, the reclassification of the income tax effects of this tax reform resulted in an increase to retained earnings and a decrease to AOCI in the amount of $45,000 related to the decrease in the federal corporate tax rate. The Company's policy is to use the portfolio approach in releasing income tax effects from AOCI. In March 2016, the FASB issued ASU 2016-09, Improvements to Employee Share-Based Payment Accounting . This ASU requires excess tax benefits and tax deficiencies to be recognized in the Statement of Operations and Comprehensive Income, which were previously presented as a component of stockholders' equity, on a prospective basis. In addition, any excess tax benefits that were not previously recognized because the related tax deduction had not reduced current taxes payable are to be recorded on a modified retrospective basis through a cumulative-effect adjustment to retained earnings. This ASU also requires cash flows related to excess tax benefits to be classified as an operating activity on the statement of cash flows prospectively. Finally, this ASU no longer allows tax benefits to be included in the assumed proceeds when applying the treasury stock method for computing diluted weighted-average common shares outstanding, which results in share-based awards having a more dilutive effect on net income per diluted share. The Company adopted this ASU during the three months ended April 30, 2017. As required by the standard, excess tax benefits recognized on stock-based compensation expense are reflected in our consolidated statements of operations and comprehensive income as a component of the provision for income taxes rather than additional paid-in capital on a prospective basis. For the year ended January 31, 2018 , the Company recorded excess tax benefits of $14.1 million within our provision for income taxes in the consolidated statements of operations and comprehensive income. In addition, any excess tax benefits that were not previously recognized because the related tax deduction had not reduced current taxes payable are to be recorded on a modified retrospective basis through a cumulative-effect adjustment to retained earnings as of the beginning of the period of adoption, which resulted in an increase of $8.1 million to our retained earnings as of February 1, 2017. For presentation requirements, the Company elected to prospectively apply the change in the presentation of excess tax benefits wherein excess tax benefits recognized on stock-based compensation are classified as operating activities on the consolidated statements of cash flows for year ended January 31, 2018 . Prior period classification of cash flows related to excess tax benefits were not adjusted. Further, the Company elected to adopt the forfeiture provisions of this ASU, which allows the Company to account for forfeitures as they occur. The adoption of the forfeiture provisions had no material impact on the consolidated financial statements. In January 2017, the FASB issued ASU 2017-01, Business Combinations: Clarifying the Definition of a Business , which provides a more robust framework to use in determining when a set of assets and activities is a business. This ASU is effective for fiscal years beginning after December 15, 2017, and interim periods within those fiscal years. Early adoption is permitted. The new guidance is required to be applied on a prospective basis. The Company adopted this ASU during the three months ended July 31, 2017. The adoption had no material impact on the Company's consolidated financial statements. Recent issued accounting pronouncements —On May 28, 2014, the FASB issued ASU 2014-09 and related subsequent amendments, Revenue from Contracts with Customers , which requires an entity to recognize the amount of revenue to which it expects to be entitled for the transfer of promised goods or services to customers. This ASU will replace most existing revenue recognition guidance in GAAP when it becomes effective. In July 2015, the FASB voted to defer the effective date to fiscal years, and interim periods within those fiscal years, beginning after December 15, 2017. The standard permits the use of either the retrospective or cumulative effect transition method. The adoption of the preceding standard is not expected to have a material impact on the Company's revenue. The Company expects to capitalize incremental contract acquisition costs, such as sales commissions included in sales and marketing expenses in the consolidated statement of operations, and amortize these costs over the average economic life of an HSA Member. The Company's current practice is to expense sales commissions when the member is added to the Company's platform. The Company expects the adoption to have a significant impact on its consolidated financial statements. The Company will use the cumulative effect transition method and does not plan to early adopt these pronouncements. In January 2016, the FASB issued ASU 2016-01, Recognition and Measurement of Financial Assets and Liabilities . The amendment |