<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>293</ContextCount>
  <ElementCount>537</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>91</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_StatementConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100030 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100040 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_StatementConsolidatedStatementsOfOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100050 - Statement - Consolidated Statements of Comprehensive Income (Loss)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLoss</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Loss)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100060 - Statement - Consolidated Statements of Comprehensive Income (Loss) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveIncomeLossParenthetical</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Loss) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100070 - Statement - Consolidated Statements of Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_StatementConsolidatedStatementsOfStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100090 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.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>9</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.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>10</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>995447 - Disclosure - Insider Trading Policies and Procedures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc</Role>
      <ShortName>Insider Trading Policies and Procedures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995457 - Disclosure - Cybersecurity Risk Management, Strategy, and Governance</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureCybersecurityRiskManagementStrategyAndGovernance</Role>
      <ShortName>Cybersecurity Risk Management, Strategy, and Governance</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>995467 - Disclosure - Organization and Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureOrganizationAndOperations</Role>
      <ShortName>Organization and Operations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>995477 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995487 - Disclosure - Revenues</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureRevenues</Role>
      <ShortName>Revenues</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995497 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995507 - Disclosure - Fair Value of Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureFairValueOfFinancialInstruments</Role>
      <ShortName>Fair Value of Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995517 - Disclosure - Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureInvestments</Role>
      <ShortName>Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995527 - Disclosure - Property and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosurePropertyAndEquipment</Role>
      <ShortName>Property and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995537 - Disclosure - Business Acquisitions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureBusinessAcquisitions</Role>
      <ShortName>Business Acquisitions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995547 - Disclosure - Intangible Assets and Goodwill</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureIntangibleAssetsAndGoodwill</Role>
      <ShortName>Intangible Assets and Goodwill</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995557 - Disclosure - Convertible Senior Notes</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureConvertibleSeniorNotes</Role>
      <ShortName>Convertible Senior Notes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>995567 - Disclosure - Segment Information and Geographic Data</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureSegmentInformationAndGeographicData</Role>
      <ShortName>Segment Information and Geographic Data</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>995577 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995597 - Disclosure - Changes in Accumulated Other Comprehensive Income (Loss)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureChangesInAccumulatedOtherComprehensiveIncomeLoss</Role>
      <ShortName>Changes in Accumulated Other Comprehensive Income (Loss)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995607 - Disclosure - Stockholders' Equity and Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureStockholdersEquityAndStockBasedCompensation</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>995617 - Disclosure - Derivatives</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureDerivatives</Role>
      <ShortName>Derivatives</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>995627 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>995637 - Disclosure - Employee Benefit Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureEmployeeBenefitPlan</Role>
      <ShortName>Employee Benefit Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>995647 - Disclosure - Restructuring Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureRestructuringPlan1</Role>
      <ShortName>Restructuring Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>995657 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureSubsequentEvents1</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>995667 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>995677 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>995687 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureLeases</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>995697 - Disclosure - Fair Value of Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureFairValueOfFinancialInstrumentsTables</Role>
      <ShortName>Fair Value of Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureFairValueOfFinancialInstruments</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>995707 - Disclosure - Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureInvestmentsTables</Role>
      <ShortName>Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20241231/taxonomy/role/DisclosureInvestments</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>995717 - Disclosure - Property and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosurePropertyAndEquipmentTables</Role>
      <ShortName>Property and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosurePropertyAndEquipment</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>995727 - Disclosure - Business Acquisitions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureBusinessAcquisitionsTables</Role>
      <ShortName>Business Acquisitions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureBusinessAcquisitions</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>995737 - Disclosure - Intangible Assets and Goodwill (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureIntangibleAssetsAndGoodwillTables</Role>
      <ShortName>Intangible Assets and Goodwill (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureIntangibleAssetsAndGoodwill</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>995747 - Disclosure - Convertible Senior Notes (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureConvertibleSeniorNotesTables</Role>
      <ShortName>Convertible Senior Notes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureConvertibleSeniorNotes</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>995757 - Disclosure - Segment Information and Geographic Data (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureSegmentInformationAndGeographicDataTables</Role>
      <ShortName>Segment Information and Geographic Data (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureSegmentInformationAndGeographicData</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>995767 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>995777 - Disclosure - Changes in Accumulated Other Comprehensive Income (Loss) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureChangesInAccumulatedOtherComprehensiveIncomeLossTables</Role>
      <ShortName>Changes in Accumulated Other Comprehensive Income (Loss) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20241231/taxonomy/role/DisclosureChangesInAccumulatedOtherComprehensiveIncomeLoss</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>995787 - Disclosure - Stockholders' Equity and Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureStockholdersEquityAndStockBasedCompensationTables</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureStockholdersEquityAndStockBasedCompensation</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>995797 - Disclosure - Derivatives (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureDerivativesTables</Role>
      <ShortName>Derivatives (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20241231/taxonomy/role/DisclosureDerivatives</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>995807 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureIncomeTaxes</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>995817 - Disclosure - Summary of Significant Accounting Policies - Summary of Impact to the Consolidated Statements of Stockholders' Equity Isolated to Net Income and Accumulated Deficit as Revised in the Other Statements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfImpactToTheConsolidatedStatementsOfStockholdersEquityIsolatedToNetIncomeAndAccum</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Impact to the Consolidated Statements of Stockholders' Equity Isolated to Net Income and Accumulated Deficit as Revised in the Other Statements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>995827 - Disclosure - Summary of Significant Accounting Policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>995837 - Disclosure - Summary of Significant Accounting Policies - Summary of Reconciliation of Denominator Used in Calculation of Basic and Diluted Income (Loss) Per Share (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfReconciliationOfDenominatorUsedInCalculationOfBasicAndDilutedIncomeLossPerShare</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Reconciliation of Denominator Used in Calculation of Basic and Diluted Income (Loss) Per Share (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>995847 - Disclosure - Summary of Significant Accounting Policies - Schedule of Potentially Dilutive Common Stock Equivalents (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfPotentiallyDilutiveCommonStockEquivalentsDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Potentially Dilutive Common Stock Equivalents (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>995857 - Disclosure - Summary of Significant Accounting Policies - Schedule of Roll Forward of Company's Allowance for Doubtful Accounts (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfRollForwardOfCompanySAllowanceForDoubtfulAccountsDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Roll Forward of Company's Allowance for Doubtful Accounts (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>995867 - Disclosure - Summary of Significant Accounting Policies - Summary of Reconciliation of Cash, Cash Equivalents and Restricted Cash (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfReconciliationOfCashCashEquivalentsAndRestrictedCashDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Reconciliation of Cash, Cash Equivalents and Restricted Cash (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>995877 - Disclosure - Summary of Significant Accounting Policies - Schedule of Property Plant and Equipment Useful Life (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfPropertyPlantAndEquipmentUsefulLifeDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Property Plant and Equipment Useful Life (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>995887 - Disclosure - Summary of Significant Accounting Policies - Summary of Capitalized Software Development Costs, Exclusive of those Costs Recorded within Property and Equipment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfCapitalizedSoftwareDevelopmentCostsExclusiveOfThoseCostsRecordedWithinPropertyAndEquipmentDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Capitalized Software Development Costs, Exclusive of those Costs Recorded within Property and Equipment (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>995897 - Disclosure - Revenues - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureRevenuesAdditionalInformationDetail</Role>
      <ShortName>Revenues - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>995907 - Disclosure - Revenues - Additional Information1 (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureRevenuesAdditionalInformation1Detail</Role>
      <ShortName>Revenues - Additional Information1 (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>995917 - Disclosure - Leases - Summary of Weighted Average Remaining Lease Terms and Weighted Average Discount Rate for Operating Leases (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureLeasesSummaryOfWeightedAverageRemainingLeaseTermsAndWeightedAverageDiscountRateForOperatingLeasesDetail</Role>
      <ShortName>Leases - Summary of Weighted Average Remaining Lease Terms and Weighted Average Discount Rate for Operating Leases (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>995927 - Disclosure - Leases - Schedule of Operating Lease Expense, Variable Lease Expense and Cash Payments Related to Operating Lease Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureLeasesScheduleOfOperatingLeaseExpenseVariableLeaseExpenseAndCashPaymentsRelatedToOperatingLeaseLiabilitiesDetail</Role>
      <ShortName>Leases - Schedule of Operating Lease Expense, Variable Lease Expense and Cash Payments Related to Operating Lease Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>995937 - Disclosure - Leases - Summary of Reconciliation between Non-cancelable Lease Commitments and Lease Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureLeasesSummaryOfReconciliationBetweenNonCancelableLeaseCommitmentsAndLeaseLiabilitiesDetail</Role>
      <ShortName>Leases - Summary of Reconciliation between Non-cancelable Lease Commitments and Lease Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>995947 - Disclosure - Leases - Schedule of Operating Sublease Income Generated under Operating Lease Agreements (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureLeasesScheduleOfOperatingSubleaseIncomeGeneratedUnderOperatingLeaseAgreementsDetail</Role>
      <ShortName>Leases - Schedule of Operating Sublease Income Generated under Operating Lease Agreements (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>995957 - Disclosure - Fair Value of Financial Instruments - Schedule of Fair Value of Financial Assets and Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureFairValueOfFinancialInstrumentsScheduleOfFairValueOfFinancialAssetsAndLiabilitiesDetail</Role>
      <ShortName>Fair Value of Financial Instruments - Schedule of Fair Value of Financial Assets and Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>995967 - Disclosure - Fair Value of Financial Instruments - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureFairValueOfFinancialInstrumentsAdditionalInformationDetail</Role>
      <ShortName>Fair Value of Financial Instruments - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>995977 - Disclosure - Investments - Summary of Composition of Short and Long-term Investments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureInvestmentsSummaryOfCompositionOfShortAndLongtermInvestmentsDetail</Role>
      <ShortName>Investments - Summary of Composition of Short and Long-term Investments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>995987 - Disclosure - Investments - Summary of Contractual Maturities of Short-Term and Long-Term Investments Held (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureInvestmentsSummaryOfContractualMaturitiesOfShorttermAndLongtermInvestmentsHeldDetail</Role>
      <ShortName>Investments - Summary of Contractual Maturities of Short-Term and Long-Term Investments Held (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>995997 - Disclosure - Investments - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureInvestmentsAdditionalInformationDetail</Role>
      <ShortName>Investments - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>996007 - Disclosure - Property and Equipment - Schedule of Property and Equipment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosurePropertyAndEquipmentScheduleOfPropertyAndEquipmentDetail</Role>
      <ShortName>Property and Equipment - Schedule of Property and Equipment (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>996017 - Disclosure - Property and Equipment - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosurePropertyAndEquipmentAdditionalInformationDetail</Role>
      <ShortName>Property and Equipment - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>996027 - Disclosure - Property and Equipment - Schedule of Changes in Asset Retirement Obligations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosurePropertyAndEquipmentScheduleOfChangesInAssetRetirementObligationsDetail</Role>
      <ShortName>Property and Equipment - Schedule of Changes in Asset Retirement Obligations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>996037 - Disclosure - Business Acquisitions - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureBusinessAcquisitionsAdditionalInformationDetail</Role>
      <ShortName>Business Acquisitions - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>996047 - Disclosure - Business Acquisitions - Summary of Preliminary Fair Value of Assets Acquired and Liabilities Assumed (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureBusinessAcquisitionsSummaryOfPreliminaryFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetail</Role>
      <ShortName>Business Acquisitions - Summary of Preliminary Fair Value of Assets Acquired and Liabilities Assumed (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>996057 - Disclosure - Intangible Assets and Goodwill - Schedule of Intangible Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureIntangibleAssetsAndGoodwillScheduleOfIntangibleAssetsDetail</Role>
      <ShortName>Intangible Assets and Goodwill - Schedule of Intangible Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>996067 - Disclosure - Intangible Assets and Goodwill - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureIntangibleAssetsAndGoodwillAdditionalInformationDetail</Role>
      <ShortName>Intangible Assets and Goodwill - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>996077 - Disclosure - Intangible Assets and Goodwill - Estimated Future Amortization Expense for Intangible Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureIntangibleAssetsAndGoodwillEstimatedFutureAmortizationExpenseForIntangibleAssetsDetail</Role>
      <ShortName>Intangible Assets and Goodwill - Estimated Future Amortization Expense for Intangible Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>996087 - Disclosure - Intangible Assets and Goodwill - Schedule of Changes in Carrying Amounts of Goodwill (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureIntangibleAssetsAndGoodwillScheduleOfChangesInCarryingAmountsOfGoodwillDetail</Role>
      <ShortName>Intangible Assets and Goodwill - Schedule of Changes in Carrying Amounts of Goodwill (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>996097 - Disclosure - Convertible Senior Notes - Additional Information (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureConvertibleSeniorNotesAdditionalInformationDetail</Role>
      <ShortName>Convertible Senior Notes - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>996107 - Disclosure - Convertible Senior Notes - Schedule of Net Carrying Amount of Liability Component (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureConvertibleSeniorNotesScheduleOfNetCarryingAmountOfLiabilityComponentDetail</Role>
      <ShortName>Convertible Senior Notes - Schedule of Net Carrying Amount of Liability Component (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>996127 - Disclosure - Convertible Senior Notes - Schedule of Interest Expense (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureConvertibleSeniorNotesScheduleOfInterestExpenseDetail</Role>
      <ShortName>Convertible Senior Notes - Schedule of Interest Expense (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>996137 - Disclosure - Segment Information and Geographic Data - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureSegmentInformationAndGeographicDataAdditionalInformationDetail</Role>
      <ShortName>Segment Information and Geographic Data - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>996147 - Disclosure - Segment Information and Geographic Data - Revenues by Geographic Region (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureSegmentInformationAndGeographicDataRevenuesByGeographicRegionDetail</Role>
      <ShortName>Segment Information and Geographic Data - Revenues by Geographic Region (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>996157 - Disclosure - Segment Information and Geographic Data - Long Lived Assets by Geographic Region (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureSegmentInformationAndGeographicDataLongLivedAssetsByGeographicRegionDetail</Role>
      <ShortName>Segment Information and Geographic Data - Long Lived Assets by Geographic Region (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>996167 - Disclosure - Commitments and Contingencies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesAdditionalInformationDetail</Role>
      <ShortName>Commitments and Contingencies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>996177 - Disclosure - Commitments and Contingencies - Schedule of Future Minimum Payments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsDetail</Role>
      <ShortName>Commitments and Contingencies - Schedule of Future Minimum Payments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>996187 - Disclosure - Commitments and Contingencies - Schedule of Future Minimum Payments Under Non-Cancelable Arrangements (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsUnderNoncancelableArrangementsDetail</Role>
      <ShortName>Commitments and Contingencies - Schedule of Future Minimum Payments Under Non-Cancelable Arrangements (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>996197 - Disclosure - Equity Method Investment - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureEquityMethodInvestmentAdditionalInformationDetail</Role>
      <ShortName>Equity Method Investment - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>996207 - Disclosure - Changes in Accumulated Other Comprehensive Income (Loss) - Changes in Accumulated Other Comprehensive Income (Loss) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureChangesInAccumulatedOtherComprehensiveIncomeLossChangesInAccumulatedOtherComprehensiveIncomeLossDetail</Role>
      <ShortName>Changes in Accumulated Other Comprehensive Income (Loss) - Changes in Accumulated Other Comprehensive Income (Loss) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hubspot.com/20241231/taxonomy/role/DisclosureChangesInAccumulatedOtherComprehensiveIncomeLossTables</ParentRole>
      <Position>85</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>996217 - Disclosure - Stockholders' Equity and Stock-Based Compensation - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureStockholdersEquityAndStockBasedCompensationAdditionalInformationDetail</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>996227 - Disclosure - Stockholders' Equity and Stock-Based Compensation - Summary of Number of Shares of Common Stock Reserved (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureStockholdersEquityAndStockBasedCompensationSummaryOfNumberOfSharesOfCommonStockReservedDetail</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation - Summary of Number of Shares of Common Stock Reserved (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>996237 - Disclosure - Stockholders' Equity and Stock-Based Compensation - Schedule of Stock Compensation Expense by Award Type (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureStockholdersEquityAndStockBasedCompensationScheduleOfStockCompensationExpenseByAwardTypeDetail</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation - Schedule of Stock Compensation Expense by Award Type (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>996247 - Disclosure - Stockholders' Equity and Stock-Based Compensation - Effect of Stock-Based Compensation on Income by Line Item (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureStockholdersEquityAndStockBasedCompensationEffectOfStockBasedCompensationOnIncomeByLineItemDetail</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation - Effect of Stock-Based Compensation on Income by Line Item (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>996257 - Disclosure - Stockholders' Equity and Stock-Based Compensation - Schedule of Assumptions Used for Estimation of Fair Value of Options Granted to Employees (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureStockholdersEquityAndStockBasedCompensationScheduleOfAssumptionsUsedForEstimationOfFairValueOfOptionsGrantedToEmployeesDetail</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation - Schedule of Assumptions Used for Estimation of Fair Value of Options Granted to Employees (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>996267 - Disclosure - Stockholders' Equity and Stock-Based Compensation - Summary of Stock Option Activity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureStockholdersEquityAndStockBasedCompensationSummaryOfStockOptionActivityDetail</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation - Summary of Stock Option Activity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>996277 - Disclosure - Stockholders' Equity and Stock-Based Compensation - Summary of Activity Related to RSUs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureStockholdersEquityAndStockbasedCompensationSummaryOfActivityRelatedToRsusDetail</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation - Summary of Activity Related to RSUs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>996287 - Disclosure - Stockholders Equity and Stock-Based Compensation - Summary of Activity Related to PSUs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureStockholdersEquityAndStockbasedCompensationSummaryOfActivityRelatedToPsusDetail</Role>
      <ShortName>Stockholders Equity and Stock-Based Compensation - Summary of Activity Related to PSUs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>996297 - Disclosure - Stockholders' Equity and Stock-Based Compensation - Schedule of Assumptions Used for Estimation of Fair Value of Employee Options (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureStockholdersEquityAndStockBasedCompensationScheduleOfAssumptionsUsedForEstimationOfFairValueOfEmployeeOptionsDetail</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation - Schedule of Assumptions Used for Estimation of Fair Value of Employee Options (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>996307 - Disclosure - Stockholders' Equity and Stock-Based Compensation - Summary of Activity Related to Employee Stock Purchase Plan (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureStockholdersEquityAndStockBasedCompensationSummaryOfActivityRelatedToEmployeeStockPurchasePlanDetail</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation - Summary of Activity Related to Employee Stock Purchase Plan (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>996317 - Disclosure - Derivatives - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureDerivativesAdditionalInformationDetails</Role>
      <ShortName>Derivatives - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>996327 - Disclosure - Derivatives - Summary of Fair Value of Derivative Financial Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureDerivativesSummaryOfFairValueOfDerivativeFinancialInstrumentsDetails</Role>
      <ShortName>Derivatives - Summary of Fair Value of Derivative Financial Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>996337 - Disclosure - Income Taxes - Schedule of Income (Loss) Before Provision for Income Taxes (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureIncomeTaxesScheduleOfIncomeLossBeforeProvisionForIncomeTaxesDetail</Role>
      <ShortName>Income Taxes - Schedule of Income (Loss) Before Provision for Income Taxes (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>996347 - Disclosure - Income Taxes - Components of Income Tax Provision (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxProvisionDetail</Role>
      <ShortName>Income Taxes - Components of Income Tax Provision (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>996357 - Disclosure - Income Taxes - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetail</Role>
      <ShortName>Income Taxes - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>996367 - Disclosure - Income Taxes - Schedule of Differences Between Income Taxes Computed at the Federal Statutory Rate and the Provision for Income Taxes (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfDifferencesBetweenIncomeTaxesComputedAtFederalStatutoryRateAndProvisionForIncomeTaxesDetail</Role>
      <ShortName>Income Taxes - Schedule of Differences Between Income Taxes Computed at the Federal Statutory Rate and the Provision for Income Taxes (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>996377 - Disclosure - Income Taxes - Components of the Company's Deferred Tax Assets and Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureIncomeTaxesComponentsOfCompanySDeferredTaxAssetsAndLiabilitiesDetail</Role>
      <ShortName>Income Taxes - Components of the Company's Deferred Tax Assets and Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>102</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>996387 - Disclosure - Income Taxes - Summary of Activity Related to Unrecognized Tax Benefits (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureIncomeTaxesSummaryOfActivityRelatedToUnrecognizedTaxBenefitsDetail</Role>
      <ShortName>Income Taxes - Summary of Activity Related to Unrecognized Tax Benefits (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>103</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>996397 - Disclosure - Employee Benefit Plan - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/Role_DisclosureEmployeeBenefitPlanAdditionalInformationDetail</Role>
      <ShortName>Employee Benefit Plan - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>104</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>996407 - Disclosure - Restructuring Plan - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureRestructuringPlanAdditionalInformationDetail</Role>
      <ShortName>Restructuring Plan - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="hubs-20241231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>996417 - Disclosure - Subsequent Events - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20241231/taxonomy/role/DisclosureSubsequentEventsAdditionalInformationDetails</Role>
      <ShortName>Subsequent Events - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>106</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" isDefinitelyFs="true" isUsgaap="true" original="hubs-20241231.htm">hubs-20241231.htm</File>
    <File>hubs-20241231.xsd</File>
  </InputFiles>
  <SupplementalFiles>
    <File>img57210894_0.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1">http://fasb.org/srt/2024</BaseTaxonomy>
    <BaseTaxonomy items="1175">http://fasb.org/us-gaap/2024</BaseTaxonomy>
    <BaseTaxonomy items="15">http://xbrl.sec.gov/cyd/2024</BaseTaxonomy>
    <BaseTaxonomy items="40">http://xbrl.sec.gov/dei/2024</BaseTaxonomy>
    <BaseTaxonomy items="8">http://xbrl.sec.gov/ecd/2024</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>false</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
