v3.20.1

Stock-based compensation - Summary of Share Based Compensation recognized (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Jan. 31, 2020 | Jan. 31, 2019 | Jan. 31, 2018
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Share based compensation | $ 45,424 | $ 21,057 | $ 14,310
Stock options |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Share based compensation | 6,612 | 7,581 | 7,826
Performance stock options |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Share based compensation | 0 | 681 | 1,378
Restricted stock units |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Share based compensation | 25,781 | 7,657 | 3,224
Performance restricted stock units |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Share based compensation | 4,862 | 2,419 | 1,882
Restricted stock awards |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Share based compensation | 655 | 570 | 0
Performance restricted stock awards |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Share based compensation | 1,934 | 2,149 | 0
Total non-cash stock-based compensation expense |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Share based compensation | 39,844 | 21,057 | 14,310
Acquisition awards exchanged for cash |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Share based compensation | 5,580 | 0 | 0
Cost of revenue |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Share based compensation | 4,792 | 2,837 | 2,594
Sales and marketing |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Share based compensation | 4,694 | 3,536 | 2,030
Technology and development |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Share based compensation | 7,649 | 5,117 | 3,318
General and administrative |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Share based compensation | 12,972 | 9,567 | 6,368
Merger integration |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Share based compensation | 1,603 | 0 | 0
Other expense, net |  |  |
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] |  |  |
Share based compensation | $ 13,714 | $ 0 | $ 0

X
- Definition Amount of expense for award under share-based payment arrangement. Excludes amount capitalized. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5047-113901 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 14.F) -URI http://asc.fasb.org/extlink&oid=115993241&loc=d3e301413-122809 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (h)(1)(i) -URI http://asc.fasb.org/extlink&oid=116856206&loc=d3e5070-113901 + Details
Name: | us-gaap_AllocatedShareBasedCompensationExpense
Namespace Prefix: | us-gaap_
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_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_EmployeeStockOptionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_PerformanceSharesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_RestrictedStockUnitsRSUMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=hqy_PerformanceRestrictedStockUnitsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=us-gaap_RestrictedStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=hqy_PerformanceRestrictedStockAwardsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=hqy_TotalNonCashShareBasedPaymentArrangementExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AwardTypeAxis=hqy_EquityAwardsExchangedForCashInBusinessCombinationMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_CostOfSalesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=hqy_SalesandMarketingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=hqy_TechnologyandDevelopmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_GeneralAndAdministrativeExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=hqy_MergerIntegrationMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_OtherNonoperatingIncomeExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |