<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.19.3.a.u2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>271</ContextCount>
  <ElementCount>588</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>78</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="hubs-10k_20191231.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/20191231/taxonomy/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="hubs-10k_20191231.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/20191231/taxonomy/role/StatementConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/StatementConsolidatedStatementsOfOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Consolidated Statements of Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLoss</Role>
      <ShortName>Consolidated Statements of Comprehensive Loss</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - Consolidated Statements of Comprehensive Loss (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/StatementConsolidatedStatementsOfComprehensiveLossParenthetical</Role>
      <ShortName>Consolidated Statements of Comprehensive Loss (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Statement - Consolidated Statements of Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Statement - Consolidated Statements of Stockholders' Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquityParenthetical</Role>
      <ShortName>Consolidated Statements of Stockholders' Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Statement - Consolidated Statements of Cash Flows (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/StatementConsolidatedStatementsOfCashFlowsParenthetical</Role>
      <ShortName>Consolidated Statements of Cash Flows (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Organization and Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureOrganizationAndOperations</Role>
      <ShortName>Organization and Operations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Fair Value of Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureFairValueOfFinancialInstruments</Role>
      <ShortName>Fair Value of Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Property and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosurePropertyAndEquipment</Role>
      <ShortName>Property and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Business Acquisitions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureBusinessAcquisitions</Role>
      <ShortName>Business Acquisitions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Intangible Assets and Goodwill</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureIntangibleAssetsAndGoodwill</Role>
      <ShortName>Intangible Assets and Goodwill</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100160 - Disclosure - 0.25% Convertible Senior Notes, Convertible Note Hedge and Warrant</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/Disclosure025ConvertibleSeniorNotesConvertibleNoteHedgeAndWarrant</Role>
      <ShortName>0.25% Convertible Senior Notes, Convertible Note Hedge and Warrant</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Segment Information and Geographic Data</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSegmentInformationAndGeographicData</Role>
      <ShortName>Segment Information and Geographic Data</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Changes in Accumulated Other Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureChangesInAccumulatedOtherComprehensiveLoss</Role>
      <ShortName>Changes in Accumulated Other Comprehensive Loss</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Stockholders' Equity and Stock-Based Compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureStockholdersEquityAndStockBasedCompensation</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Employee Benefit Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureEmployeeBenefitPlan</Role>
      <ShortName>Employee Benefit Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Quarterly Financial Results (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureQuarterlyFinancialResultsUnaudited</Role>
      <ShortName>Quarterly Financial Results (unaudited)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Fair Value of Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsTables</Role>
      <ShortName>Fair Value of Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20191231/taxonomy/role/DisclosureFairValueOfFinancialInstruments</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Property and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosurePropertyAndEquipmentTables</Role>
      <ShortName>Property and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20191231/taxonomy/role/DisclosurePropertyAndEquipment</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Business Acquisitions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureBusinessAcquisitionsTables</Role>
      <ShortName>Business Acquisitions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20191231/taxonomy/role/DisclosureBusinessAcquisitions</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Intangible Assets and Goodwill (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureIntangibleAssetsAndGoodwillTables</Role>
      <ShortName>Intangible Assets and Goodwill (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20191231/taxonomy/role/DisclosureIntangibleAssetsAndGoodwill</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100300 - Disclosure - 0.25% Convertible Senior Notes, Convertible Note Hedge and Warrant (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/Disclosure025ConvertibleSeniorNotesConvertibleNoteHedgeAndWarrantTables</Role>
      <ShortName>0.25% Convertible Senior Notes, Convertible Note Hedge and Warrant (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20191231/taxonomy/role/Disclosure025ConvertibleSeniorNotesConvertibleNoteHedgeAndWarrant</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Segment Information and Geographic Data (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSegmentInformationAndGeographicDataTables</Role>
      <ShortName>Segment Information and Geographic Data (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSegmentInformationAndGeographicData</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureCommitmentsAndContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20191231/taxonomy/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Changes in Accumulated Other Comprehensive Loss (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureChangesInAccumulatedOtherComprehensiveLossTables</Role>
      <ShortName>Changes in Accumulated Other Comprehensive Loss (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20191231/taxonomy/role/DisclosureChangesInAccumulatedOtherComprehensiveLoss</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Stockholders' Equity and Stock-Based Compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureStockholdersEquityAndStockBasedCompensationTables</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20191231/taxonomy/role/DisclosureStockholdersEquityAndStockBasedCompensation</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20191231/taxonomy/role/DisclosureIncomeTaxes</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Quarterly Financial Results (unaudited) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureQuarterlyFinancialResultsUnauditedTables</Role>
      <ShortName>Quarterly Financial Results (unaudited) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hubspot.com/20191231/taxonomy/role/DisclosureQuarterlyFinancialResultsUnaudited</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Organization and Operations - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureOrganizationAndOperationsAdditionalInformationDetail</Role>
      <ShortName>Organization and Operations - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Summary of Significant Accounting Policies - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Summary of Significant Accounting Policies - Summary of Reconciliation of Denominator Used in Calculation of Basic and Diluted Loss Per Share (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfReconciliationOfDenominatorUsedInCalculationOfBasicAndDilutedLossPerShareDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Reconciliation of Denominator Used in Calculation of Basic and Diluted Loss Per Share (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Summary of Significant Accounting Policies - Schedule of Potentially Dilutive Common Stock Equivalents (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfPotentiallyDilutiveCommonStockEquivalentsDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Potentially Dilutive Common Stock Equivalents (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100410 - 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/20191231/taxonomy/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>42</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100420 - 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/20191231/taxonomy/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>43</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Summary of Significant Accounting Policies - Schedule of Property Plant and Equipment Useful Life (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfPropertyPlantAndEquipmentUsefulLifeDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Property Plant and Equipment Useful Life (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Summary of Significant Accounting Policies - Summary of Lease Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfLeaseAssetsAndLiabilitiesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Lease Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Summary of Significant Accounting Policies - Summary of Reconciliation between Non-cancelable Lease Commitments and Lease Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfReconciliationBetweenNonCancelableLeaseCommitmentsAndLeaseLiabilitiesDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Reconciliation between Non-cancelable Lease Commitments and Lease Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Summary of Significant Accounting Policies - Summary of Weighted Average Remaining Lease Terms and Weighted Average Discount Rate for Operating and Finance Leases (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfWeightedAverageRemainingLeaseTermsAndWeightedAverageDiscountRateForOperatingAndFinanceLeasesDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Summary of Weighted Average Remaining Lease Terms and Weighted Average Discount Rate for Operating and Finance Leases (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Summary of Significant Accounting Policies - Schedule of Changes in Asset Retirement Obligations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfChangesInAssetRetirementObligationsDetail</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Changes in Asset Retirement Obligations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Summary of Significant Accounting Policies - Additional Information1 (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformation1Detail</Role>
      <ShortName>Summary of Significant Accounting Policies - Additional Information1 (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100490 - 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/20191231/taxonomy/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>50</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100500 - 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/20191231/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsScheduleOfFairValueOfFinancialAssetsAndLiabilitiesDetail</Role>
      <ShortName>Fair Value of Financial Instruments - Schedule of Fair Value of Financial Assets and Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Fair Value of Financial Instruments - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsAdditionalInformationDetail</Role>
      <ShortName>Fair Value of Financial Instruments - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Fair Value of Financial Instruments - Summary of Composition of Short and Long Term Investments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsSummaryOfCompositionOfShortAndLongTermInvestmentsDetail</Role>
      <ShortName>Fair Value of Financial Instruments - Summary of Composition of Short and Long Term Investments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Fair Value of Financial Instruments - Summary of Contractual Maturities of Short and Long Term Investments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureFairValueOfFinancialInstrumentsSummaryOfContractualMaturitiesOfShortAndLongTermInvestmentsDetail</Role>
      <ShortName>Fair Value of Financial Instruments - Summary of Contractual Maturities of Short and Long Term Investments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Property and Equipment - Schedule of Property and Equipment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosurePropertyAndEquipmentScheduleOfPropertyAndEquipmentDetail</Role>
      <ShortName>Property and Equipment - Schedule of Property and Equipment (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100550 - Disclosure - Property and Equipment - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosurePropertyAndEquipmentAdditionalInformationDetail</Role>
      <ShortName>Property and Equipment - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100560 - Disclosure - Business Acquisitions - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureBusinessAcquisitionsAdditionalInformationDetail</Role>
      <ShortName>Business Acquisitions - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Business Acquisitions - Summary of Fair Value of Assets Acquired and Liabilities Assumed (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureBusinessAcquisitionsSummaryOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetail</Role>
      <ShortName>Business Acquisitions - Summary of Fair Value of Assets Acquired and Liabilities Assumed (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Intangible Assets and Goodwill - Schedule of Intangible Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureIntangibleAssetsAndGoodwillScheduleOfIntangibleAssetsDetail</Role>
      <ShortName>Intangible Assets and Goodwill - Schedule of Intangible Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>100590 - Disclosure - Intangible Assets and Goodwill - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureIntangibleAssetsAndGoodwillAdditionalInformationDetail</Role>
      <ShortName>Intangible Assets and Goodwill - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>100600 - Disclosure - Intangible Assets and Goodwill - Estimated Future Amortization Expense for Intangible Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureIntangibleAssetsAndGoodwillEstimatedFutureAmortizationExpenseForIntangibleAssetsDetail</Role>
      <ShortName>Intangible Assets and Goodwill - Estimated Future Amortization Expense for Intangible Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>100610 - Disclosure - Intangible Assets and Goodwill - Schedule of Changes in Carrying Amounts of Goodwill (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureIntangibleAssetsAndGoodwillScheduleOfChangesInCarryingAmountsOfGoodwillDetail</Role>
      <ShortName>Intangible Assets and Goodwill - Schedule of Changes in Carrying Amounts of Goodwill (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>100620 - Disclosure - 0.25% Convertible Senior Notes, Convertible Note Hedge and Warrant - Additional Information (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/Disclosure025ConvertibleSeniorNotesConvertibleNoteHedgeAndWarrantAdditionalInformationDetail</Role>
      <ShortName>0.25% Convertible Senior Notes, Convertible Note Hedge and Warrant - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>100630 - Disclosure - 0.25% Convertible Senior Notes, Convertible Note Hedge and Warrant - Schedule of Net Carrying Amount of Liability Component (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/Disclosure025ConvertibleSeniorNotesConvertibleNoteHedgeAndWarrantScheduleOfNetCarryingAmountOfLiabilityComponentDetail</Role>
      <ShortName>0.25% Convertible Senior Notes, Convertible Note Hedge and Warrant - Schedule of Net Carrying Amount of Liability Component (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>100640 - Disclosure - 0.25% Convertible Senior Notes, Convertible Note Hedge and Warrant - Schedule of Net Carrying Amount of Equity Component (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/Disclosure025ConvertibleSeniorNotesConvertibleNoteHedgeAndWarrantScheduleOfNetCarryingAmountOfEquityComponentDetail</Role>
      <ShortName>0.25% Convertible Senior Notes, Convertible Note Hedge and Warrant - Schedule of Net Carrying Amount of Equity Component (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>100650 - Disclosure - 0.25% Convertible Senior Notes, Convertible Note Hedge and Warrant - Schedule of Interest Expense (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/Disclosure025ConvertibleSeniorNotesConvertibleNoteHedgeAndWarrantScheduleOfInterestExpenseDetail</Role>
      <ShortName>0.25% Convertible Senior Notes, Convertible Note Hedge and Warrant - Schedule of Interest Expense (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>100660 - Disclosure - 0.25% Convertible Senior Notes, Convertible Note Hedge and Warrant - Schedule of Net Equity Impact, Included in Additional Paid-in Capital, of the Liability and Equity Components (Detail)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/Disclosure025ConvertibleSeniorNotesConvertibleNoteHedgeAndWarrantScheduleOfNetEquityImpactIncludedInAdditionalPaidInCapitalOfLiabilityAndEquityComponentsDetail</Role>
      <ShortName>0.25% Convertible Senior Notes, Convertible Note Hedge and Warrant - Schedule of Net Equity Impact, Included in Additional Paid-in Capital, of the Liability and Equity Components (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Segment Information and Geographic Data - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSegmentInformationAndGeographicDataAdditionalInformationDetail</Role>
      <ShortName>Segment Information and Geographic Data - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Segment Information and Geographic Data - Revenues by Geographical Region (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSegmentInformationAndGeographicDataRevenuesByGeographicalRegionDetail</Role>
      <ShortName>Segment Information and Geographic Data - Revenues by Geographical Region (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>100690 - Disclosure - Segment Information and Geographic Data - Long Lived Assets by Geographical Region (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureSegmentInformationAndGeographicDataLongLivedAssetsByGeographicalRegionDetail</Role>
      <ShortName>Segment Information and Geographic Data - Long Lived Assets by Geographical Region (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>100700 - Disclosure - Commitments and Contingencies- Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureCommitmentsAndContingenciesAdditionalInformationDetail</Role>
      <ShortName>Commitments and Contingencies- Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>100710 - Disclosure - Commitments and Contingencies - Schedule of Future Minimum Payments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsDetail</Role>
      <ShortName>Commitments and Contingencies - Schedule of Future Minimum Payments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>100720 - Disclosure - Commitments and Contingencies - Schedule of Future Minimum Payments Under Vendor Commitments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureCommitmentsAndContingenciesScheduleOfFutureMinimumPaymentsUnderVendorCommitmentsDetail</Role>
      <ShortName>Commitments and Contingencies - Schedule of Future Minimum Payments Under Vendor Commitments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>100730 - Disclosure - Changes in Accumulated Other Comprehensive Loss - Changes in Accumulated Other Comprehensive Loss (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureChangesInAccumulatedOtherComprehensiveLossChangesInAccumulatedOtherComprehensiveLossDetail</Role>
      <ShortName>Changes in Accumulated Other Comprehensive Loss - Changes in Accumulated Other Comprehensive Loss (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>100740 - Disclosure - Stockholders' Equity and Stock-Based Compensation - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureStockholdersEquityAndStockBasedCompensationAdditionalInformationDetail</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>100750 - 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/20191231/taxonomy/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>76</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>100760 - 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/20191231/taxonomy/role/DisclosureStockholdersEquityAndStockBasedCompensationScheduleOfStockCompensationExpenseByAwardTypeDetail</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation - Schedule of Stock Compensation Expense by Award Type (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>100770 - 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/20191231/taxonomy/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>78</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>100780 - 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/20191231/taxonomy/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>79</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>100790 - Disclosure - Stockholders' Equity and Stock-Based Compensation - Summary of Stock Option Activity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureStockholdersEquityAndStockBasedCompensationSummaryOfStockOptionActivityDetail</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation - Summary of Stock Option Activity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>100800 - Disclosure - Stockholders' Equity and Stock-Based Compensation - Summary of Activity Related to RSUs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureStockholdersEquityAndStockBasedCompensationSummaryOfActivityRelatedToRsusDetail</Role>
      <ShortName>Stockholders' Equity and Stock-Based Compensation - Summary of Activity Related to RSUs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>100810 - 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/20191231/taxonomy/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>82</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>100820 - Disclosure - Income Taxes - Schedule of Loss Before Provision for Income Taxes (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureIncomeTaxesScheduleOfLossBeforeProvisionForIncomeTaxesDetail</Role>
      <ShortName>Income Taxes - Schedule of Loss Before Provision for Income Taxes (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>100830 - Disclosure - Income Taxes - Components of Income Tax (Provision) Benefit (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureIncomeTaxesComponentsOfIncomeTaxProvisionBenefitDetail</Role>
      <ShortName>Income Taxes - Components of Income Tax (Provision) Benefit (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>100840 - Disclosure - Income Taxes - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetail</Role>
      <ShortName>Income Taxes - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>100850 - 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/20191231/taxonomy/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>86</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>100860 - Disclosure - Income Taxes - Components of the Company's Deferred Tax Assets and Liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureIncomeTaxesComponentsOfCompanySDeferredTaxAssetsAndLiabilitiesDetail</Role>
      <ShortName>Income Taxes - Components of the Company's Deferred Tax Assets and Liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>100870 - Disclosure - Income Taxes - Summary of Activity Related to Unrecognized Tax Benefits (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureIncomeTaxesSummaryOfActivityRelatedToUnrecognizedTaxBenefitsDetail</Role>
      <ShortName>Income Taxes - Summary of Activity Related to Unrecognized Tax Benefits (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>100880 - Disclosure - Employee Benefit Plan - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureEmployeeBenefitPlanAdditionalInformationDetail</Role>
      <ShortName>Employee Benefit Plan - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="hubs-10k_20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>100890 - Disclosure - Quarterly Financial Results (Unaudited) - Schedule of Quarterly Financial Results (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hubspot.com/20191231/taxonomy/role/DisclosureQuarterlyFinancialResultsUnauditedScheduleOfQuarterlyFinancialResultsDetail</Role>
      <ShortName>Quarterly Financial Results (Unaudited) - Schedule of Quarterly Financial Results (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hubspot.com/20191231/taxonomy/role/DisclosureQuarterlyFinancialResultsUnauditedTables</ParentRole>
      <Position>90</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" original="hubs-10k_20191231.htm">hubs-10k_20191231.htm</File>
    <File>hubs-20191231.xsd</File>
    <File>hubs-20191231_cal.xml</File>
    <File>hubs-20191231_def.xml</File>
    <File>hubs-20191231_lab.xml</File>
    <File>hubs-20191231_pre.xml</File>
    <File>hubs-ex1013_9.htm</File>
    <File>hubs-ex103_2330.htm</File>
    <File>hubs-ex104_1395.htm</File>
    <File>hubs-ex105_11.htm</File>
    <File>hubs-ex211_8.htm</File>
    <File>hubs-ex231_6.htm</File>
    <File>hubs-ex311_14.htm</File>
    <File>hubs-ex312_12.htm</File>
    <File>hubs-ex321_10.htm</File>
    <File>hubs-ex45_1719.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>gzsfznzdakfv000001.jpg</File>
    <File>gzsfznzdakfv000002.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/us-gaap/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/country/2017-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
