v3.20.1

Income taxes - Unrecognized Tax Benefits (Details) - USD ($) $ in Thousands | 12 Months Ended |  |
--- | --- | --- | ---
Jan. 31, 2020 | Jan. 31, 2019 | Jan. 31, 2020 | Jan. 31, 2019
Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward] |  |  |  |
Gross unrecognized tax benefits at beginning of year | $ 1,693 | $ 889 |  |
Increases as a result of tax positions taken during a prior period | 6,888 | 0 |  |
Decreases as a result of tax positions taken during a prior period | (1) | (1) |  |
Increases as a result of tax positions taken during the current period | 790 | 805 |  |
Decreases as a result of tax positions taken during the current period | 0 | 0 |  |
Decreases resulting from the lapse of the applicable statute of limitations | 0 | 0 |  |
Gross unrecognized tax benefits at end of year | 9,370 | 1,693 |  |
Total gross unrecognized tax benefits | $ 9,370 | $ 889 | $ 9,370 | $ 1,693
Amounts netted against related deferred tax assets |  |  | (8,914) | (1,693)
Unrecognized tax benefits recorded on the consolidated balance sheet |  |  | $ 456 | $ 0

X
- Definition Unrecognized Tax Benefit, Net + References No definition available. + Details
Name: | hqy_UnrecognizedTaxBenefitNet
Namespace Prefix: | hqy_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Unrecognized Tax Benefits, Amount Netted Against Deferred Tax Assets + References No definition available. + Details
Name: | hqy_UnrecognizedTaxBenefitsAmountNettedAgainstDeferredTaxAssets
Namespace Prefix: | hqy_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period. + References No definition available. + Details
Name: | us-gaap_ReconciliationOfUnrecognizedTaxBenefitsExcludingAmountsPertainingToExaminedTaxReturnsRollForward
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of unrecognized tax benefits. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 45 -Paragraph 10B -URI http://asc.fasb.org/extlink&oid=116821951&loc=SL37586934-109318 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15A -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=84230637&loc=SL6600010-109319 + Details
Name: | us-gaap_UnrecognizedTaxBenefits
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of decrease in unrecognized tax benefits resulting from tax positions that have been or will be taken in current period tax return. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15A -Subparagraph (a)(2) -URI http://asc.fasb.org/extlink&oid=84230637&loc=SL6600010-109319 + Details
Name: | us-gaap_UnrecognizedTaxBenefitsDecreasesResultingFromCurrentPeriodTaxPositions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of decrease in unrecognized tax benefits resulting from tax positions taken in prior period tax returns. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15A -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=84230637&loc=SL6600010-109319 + Details
Name: | us-gaap_UnrecognizedTaxBenefitsDecreasesResultingFromPriorPeriodTaxPositions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of increase in unrecognized tax benefits resulting from tax positions that have been or will be taken in current period tax return. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15A -Subparagraph (a)(2) -URI http://asc.fasb.org/extlink&oid=84230637&loc=SL6600010-109319 + Details
Name: | us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of increase in unrecognized tax benefits resulting from tax positions taken in prior period tax returns. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15A -Subparagraph (a)(1) -URI http://asc.fasb.org/extlink&oid=84230637&loc=SL6600010-109319 + Details
Name: | us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromPriorPeriodTaxPositions
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of decrease in unrecognized tax benefits resulting from lapses of applicable statutes of limitations. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 15A -Subparagraph (a)(4) -URI http://asc.fasb.org/extlink&oid=84230637&loc=SL6600010-109319 + Details
Name: | us-gaap_UnrecognizedTaxBenefitsReductionsResultingFromLapseOfApplicableStatuteOfLimitations
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration