v3.20.1

Commitments and contingencies - Narrative (Details) $ in Thousands |  |  | 12 Months Ended
--- | --- | --- | ---
Sep. 06, 2018 lawsuit | Jun. 22, 2018 lawsuit | Jan. 31, 2020 USD ($) | Jan. 31, 2019 USD ($) | Jan. 31, 2018 USD ($)
Commitments and Contingencies Disclosure [Abstract] |  |  |  |  |
Sublease income |  |  | $ 5,500 |  |
Operating Lease, Expense |  |  | 9,100 |  |
Lease expense for office space |  |  |  | $ 5,500 | $ 4,300
Sublease income |  |  | $ 750 |  |
Number of derivative lawsuits | lawsuit | 2 | 2 |  |  |

X
- Definition Loss Contingency Number Of Lawsuits + References No definition available. + Details
Name: | hqy_LossContingencyNumberOfLawsuits
Namespace Prefix: | hqy_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_CommitmentsAndContingenciesDisclosureAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of rent expense incurred for leased assets, including but not limited to, furniture and equipment, that is not directly or indirectly associated with the manufacture, sale or creation of a product or product line. + References No definition available. + Details
Name: | us-gaap_LeaseAndRentalExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of operating lease expense. Excludes sublease income. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 45 -Paragraph 4 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=77888419&loc=SL77918638-209977 + Details
Name: | us-gaap_OperatingLeaseExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The total amount of sublease rental income recognized during the period that reduces the entity's rent expense incurred under operating leases. + References Reference 1: http://fasb.org/us-gaap/role/ref/otherTransitionRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 10 -Section 55 -Paragraph 40 -Subparagraph (Note 3) -URI http://asc.fasb.org/extlink&oid=82846649&loc=d3e38371-112697 + Details
Name: | us-gaap_OperatingLeasesRentExpenseSubleaseRentals1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of sublease income excluding finance and operating lease expense. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 4 -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=77888426&loc=SL77918686-209980 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 55 -Paragraph 53 -URI http://asc.fasb.org/extlink&oid=77888399&loc=SL77918982-209971 + Details
Name: | us-gaap_SubleaseIncome
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration