v3.20.1

Employee benefits (Details) - USD ($) | 12 Months Ended
--- | ---
Jan. 31, 2020 | Jan. 31, 2019 | Jan. 31, 2018
Defined Contribution Plan Disclosure [Line Items] |  |  |
Maximum coverage per incident under self-insurance | $ 200,000 |  |
Accrued compensation |  |  |
Defined Contribution Plan Disclosure [Line Items] |  |  |
Liability for self-insured medical claims | $ 3,700,000 | $ 1,400,000 |
Supplemental Employee Retirement Plan | 401(k) |  |  |
Defined Contribution Plan Disclosure [Line Items] |  |  |
Percent of employees eligible earnings | 3.50% |  |
Employer matching contribution expense | $ 3,700,000 | $ 1,800,000 | $ 1,400,000

X
- Definition Self Insurance, Maximum Coverage Per Incident + References No definition available. + Details
Name: | hqy_SelfInsuranceMaximumCoveragePerIncident
Namespace Prefix: | hqy_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanDisclosureLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of discretionary contributions made by an employer to a defined contribution plan. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanEmployerDiscretionaryContributionAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Percentage of employees' gross pay for which the employer contributes a matching contribution to a defined contribution plan. + References No definition available. + Details
Name: | us-gaap_DefinedContributionPlanEmployerMatchingContributionPercent
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Carrying amount of accrued known and estimated losses incurred as of the balance sheet date for which no insurance coverage exists, and for which a claim has been made or is probable of being asserted, typically arising from workmen's compensation-type of incidents and personal injury to nonemployees from accidents on the entity's property that are expected to be paid within one year (or the normal operating cycle, if longer). + References No definition available. + Details
Name: | us-gaap_SelfInsuranceReserveCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_BalanceSheetLocationAxis=hqy_EmployeeRelatedLiabilitiesCurrentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RetirementPlanTypeAxis=us-gaap_SupplementalEmployeeRetirementPlanDefinedBenefitMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RetirementPlanNameAxis=hqy_A401kMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |