<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.24.1.1.u2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>137</ContextCount>
  <ElementCount>253</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>53</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Statement - Condensed consolidated balance sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/Condensedconsolidatedbalancesheets</Role>
      <ShortName>Condensed consolidated balance sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>0000003 - Statement - Condensed consolidated balance sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/CondensedconsolidatedbalancesheetsParenthetical</Role>
      <ShortName>Condensed consolidated balance sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>0000004 - Statement - Condensed consolidated statements of operations and comprehensive income (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/Condensedconsolidatedstatementsofoperationsandcomprehensiveincomeunaudited</Role>
      <ShortName>Condensed consolidated statements of operations and comprehensive income (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>0000005 - Statement - Condensed consolidated statements of stockholders' equity (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/Condensedconsolidatedstatementsofstockholdersequityunaudited</Role>
      <ShortName>Condensed consolidated statements of stockholders' equity (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>0000006 - Statement - Condensed consolidated statements of cash flows (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/Condensedconsolidatedstatementsofcashflowsunaudited</Role>
      <ShortName>Condensed consolidated statements of cash flows (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>0000007 - Disclosure - Summary of business and significant accounting policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/Summaryofbusinessandsignificantaccountingpolicies</Role>
      <ShortName>Summary of business and significant accounting policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>0000008 - Disclosure - Net income per share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/Netincomepershare</Role>
      <ShortName>Net income per share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>0000009 - Disclosure - Supplemental financial statement information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/Supplementalfinancialstatementinformation</Role>
      <ShortName>Supplemental financial statement information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>0000010 - Disclosure - Intangible assets and goodwill</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/Intangibleassetsandgoodwill</Role>
      <ShortName>Intangible assets and goodwill</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>0000011 - Disclosure - Commitments and contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/Commitmentsandcontingencies</Role>
      <ShortName>Commitments and contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>0000012 - Disclosure - Indebtedness</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/Indebtedness</Role>
      <ShortName>Indebtedness</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>0000013 - Disclosure - Income taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/Incometaxes</Role>
      <ShortName>Income taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>0000014 - Disclosure - Stock-based compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/Stockbasedcompensation</Role>
      <ShortName>Stock-based compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>0000015 - Disclosure - Fair value</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/Fairvalue</Role>
      <ShortName>Fair value</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>0000016 - Disclosure - Subsequent events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/Subsequentevents</Role>
      <ShortName>Subsequent events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9954471 - Disclosure - Summary of business and significant accounting policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/SummaryofbusinessandsignificantaccountingpoliciesPolicies</Role>
      <ShortName>Summary of business and significant accounting policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9954472 - Disclosure - Summary of business and significant accounting policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/SummaryofbusinessandsignificantaccountingpoliciesTables</Role>
      <ShortName>Summary of business and significant accounting policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://healthequity.com/role/Summaryofbusinessandsignificantaccountingpolicies</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9954473 - Disclosure - Net income per share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/NetincomepershareTables</Role>
      <ShortName>Net income per share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://healthequity.com/role/Netincomepershare</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9954474 - Disclosure - Supplemental financial statement information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/SupplementalfinancialstatementinformationTables</Role>
      <ShortName>Supplemental financial statement information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://healthequity.com/role/Supplementalfinancialstatementinformation</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9954475 - Disclosure - Intangible assets and goodwill (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/IntangibleassetsandgoodwillTables</Role>
      <ShortName>Intangible assets and goodwill (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://healthequity.com/role/Intangibleassetsandgoodwill</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9954476 - Disclosure - Commitments and contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/CommitmentsandcontingenciesTables</Role>
      <ShortName>Commitments and contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://healthequity.com/role/Commitmentsandcontingencies</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9954477 - Disclosure - Indebtedness (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/IndebtednessTables</Role>
      <ShortName>Indebtedness (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://healthequity.com/role/Indebtedness</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9954478 - Disclosure - Stock-based compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/StockbasedcompensationTables</Role>
      <ShortName>Stock-based compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://healthequity.com/role/Stockbasedcompensation</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9954479 - Disclosure - Summary of business and significant accounting policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/SummaryofbusinessandsignificantaccountingpoliciesDetails</Role>
      <ShortName>Summary of business and significant accounting policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://healthequity.com/role/SummaryofbusinessandsignificantaccountingpoliciesTables</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9954480 - Disclosure - Net income per share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/NetincomepershareDetails</Role>
      <ShortName>Net income per share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://healthequity.com/role/NetincomepershareTables</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9954481 - Disclosure - Supplemental financial statement information - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/SupplementalfinancialstatementinformationNarrativeDetails</Role>
      <ShortName>Supplemental financial statement information - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9954482 - Disclosure - Supplemental financial statement information - Schedule of Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/SupplementalfinancialstatementinformationScheduleofPropertyandEquipmentDetails</Role>
      <ShortName>Supplemental financial statement information - Schedule of Property and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9954483 - Disclosure - Supplemental financial statement information - Schedule of Components of Operating Lease Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/SupplementalfinancialstatementinformationScheduleofComponentsofOperatingLeaseCostsDetails</Role>
      <ShortName>Supplemental financial statement information - Schedule of Components of Operating Lease Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9954484 - Disclosure - Supplemental financial statement information - Schedule of Other Income, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/SupplementalfinancialstatementinformationScheduleofOtherIncomeNetDetails</Role>
      <ShortName>Supplemental financial statement information - Schedule of Other Income, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9954485 - Disclosure - Supplemental financial statement information - Schedule of Supplemental Cash Flow Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/SupplementalfinancialstatementinformationScheduleofSupplementalCashFlowInformationDetails</Role>
      <ShortName>Supplemental financial statement information - Schedule of Supplemental Cash Flow Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9954486 - Disclosure - Intangible assets and goodwill - Schedule of Gross Carrying Amount and Associated Accumulated Amortization of Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/IntangibleassetsandgoodwillScheduleofGrossCarryingAmountandAssociatedAccumulatedAmortizationofIntangibleAssetsDetails</Role>
      <ShortName>Intangible assets and goodwill - Schedule of Gross Carrying Amount and Associated Accumulated Amortization of Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9954487 - Disclosure - Intangible assets and goodwill - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/IntangibleassetsandgoodwillNarrativeDetails</Role>
      <ShortName>Intangible assets and goodwill - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9954488 - Disclosure - Commitments and contingencies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/CommitmentsandcontingenciesNarrativeDetails</Role>
      <ShortName>Commitments and contingencies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9954489 - Disclosure - Commitments and contingencies - Schedule of Transfers to HealthEquity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/CommitmentsandcontingenciesScheduleofTransferstoHealthEquityDetails</Role>
      <ShortName>Commitments and contingencies - Schedule of Transfers to HealthEquity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9954490 - Disclosure - Indebtedness - Schedule of Long-Term Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/IndebtednessScheduleofLongTermDebtDetails</Role>
      <ShortName>Indebtedness - Schedule of Long-Term Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9954491 - Disclosure - Indebtedness - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/IndebtednessNarrativeDetails</Role>
      <ShortName>Indebtedness - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9954492 - Disclosure - Income taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/IncometaxesDetails</Role>
      <ShortName>Income taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://healthequity.com/role/Incometaxes</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9954493 - Disclosure - Stock-based compensation - Schedule of Stock-Based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/StockbasedcompensationScheduleofStockBasedCompensationDetails</Role>
      <ShortName>Stock-based compensation - Schedule of Stock-Based Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9954494 - Disclosure - Stock-based compensation - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/StockbasedcompensationNarrativeDetails</Role>
      <ShortName>Stock-based compensation - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9954495 - Disclosure - Stock-based compensation - Schedule of Stock Option Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/StockbasedcompensationScheduleofStockOptionActivityDetails</Role>
      <ShortName>Stock-based compensation - Schedule of Stock Option Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9954496 - Disclosure - Stock-based compensation - Schedule of Restricted Stock Unit Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/StockbasedcompensationScheduleofRestrictedStockUnitActivityDetails</Role>
      <ShortName>Stock-based compensation - Schedule of Restricted Stock Unit Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="hqy-20240430.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9954497 - Disclosure - Fair value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://healthequity.com/role/FairvalueDetails</Role>
      <ShortName>Fair value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://healthequity.com/role/Fairvalue</ParentRole>
      <Position>45</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[ix-0514-Hidden-Fact-Eligible-For-Transform] WARN: 1 fact(s) appearing in ix:hidden were eligible for transformation: ecd:TrdArrDuration -  hqy-20240430.htm 4</Log>
    <Log type="Warning">[ix-0514-Hidden-Fact-Not-Referenced] WARN: 1 fact(s) appearing in ix:hidden were not referenced by any -sec-ix-hidden style property: us-gaap:RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1 -  hqy-20240430.htm 4</Log>
  </Logs>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="hqy-20240430.htm">hqy-20240430.htm</File>
    <File>hqy-20240430.xsd</File>
    <File>hqy-20240430_cal.xml</File>
    <File>hqy-20240430_def.xml</File>
    <File>hqy-20240430_lab.xml</File>
    <File>hqy-20240430_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="464">http://fasb.org/us-gaap/2024</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2024</BaseTaxonomy>
    <BaseTaxonomy items="10">http://xbrl.sec.gov/ecd/2024</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
