<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.19.3.a.u2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>300</ContextCount>
  <ElementCount>508</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>87</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001002 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1002003 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1003004 - Statement - Consolidated Statements of Operations and Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/ConsolidatedStatementsofOperationsandComprehensiveLoss</Role>
      <ShortName>Consolidated Statements of Operations and Comprehensive Loss</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1004005 - Statement - Consolidated Statements of Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/ConsolidatedStatementsofStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1005006 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/ConsolidatedStatementsofCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1006007 - Statement - Consolidated Statements of Cash Flows (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/ConsolidatedStatementsofCashFlowsParenthetical</Role>
      <ShortName>Consolidated Statements of Cash Flows (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>2101101 - Disclosure - Description of Business and Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/DescriptionofBusinessandSummaryofSignificantAccountingPolicies</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2111102 - Disclosure - Revenue</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/Revenue</Role>
      <ShortName>Revenue</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2115103 - Disclosure - Investments and Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/InvestmentsandFairValueMeasurements</Role>
      <ShortName>Investments and Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2121104 - Disclosure - Financial Statement Components</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/FinancialStatementComponents</Role>
      <ShortName>Financial Statement Components</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2130105 - Disclosure - Goodwill and Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/GoodwillandIntangibleAssets</Role>
      <ShortName>Goodwill and Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2135106 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/Debt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2144107 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/StockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2154108 - Disclosure - Net Loss Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/NetLossPerShare</Role>
      <ShortName>Net Loss Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2159109 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2167110 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2174111 - Disclosure - Geographical Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/GeographicalInformation</Role>
      <ShortName>Geographical Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2177112 - Disclosure - Retirement Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/RetirementPlans</Role>
      <ShortName>Retirement Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2179113 - Disclosure - ASC 842 Adoption Impact</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/ASC842AdoptionImpact</Role>
      <ShortName>ASC 842 Adoption Impact</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2187114 - Disclosure - Acquisition of Whendu LLC</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/AcquisitionofWhenduLLC</Role>
      <ShortName>Acquisition of Whendu LLC</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2189115 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2191116 - Disclosure - Selected Quarterly Financial Data (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/SelectedQuarterlyFinancialDataUnaudited</Role>
      <ShortName>Selected Quarterly Financial Data (Unaudited)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2202201 - Disclosure - Description of Business and Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/DescriptionofBusinessandSummaryofSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.five9.com/role/DescriptionofBusinessandSummaryofSignificantAccountingPolicies</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2303301 - Disclosure - Description of Business and Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/DescriptionofBusinessandSummaryofSignificantAccountingPoliciesTables</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.five9.com/role/DescriptionofBusinessandSummaryofSignificantAccountingPolicies</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2312302 - Disclosure - Revenue (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/RevenueTables</Role>
      <ShortName>Revenue (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.five9.com/role/Revenue</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2316303 - Disclosure - Investments and Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/InvestmentsandFairValueMeasurementsTables</Role>
      <ShortName>Investments and Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.five9.com/role/InvestmentsandFairValueMeasurements</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2322304 - Disclosure - Financial Statement Components (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/FinancialStatementComponentsTables</Role>
      <ShortName>Financial Statement Components (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.five9.com/role/FinancialStatementComponents</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2331305 - Disclosure - Goodwill and Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/GoodwillandIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.five9.com/role/GoodwillandIntangibleAssets</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2336306 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/DebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.five9.com/role/Debt</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2345307 - Disclosure - Stockholders' Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/StockholdersEquityTables</Role>
      <ShortName>Stockholders' Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.five9.com/role/StockholdersEquity</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2355308 - Disclosure - Net Loss Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/NetLossPerShareTables</Role>
      <ShortName>Net Loss Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.five9.com/role/NetLossPerShare</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2360309 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.five9.com/role/IncomeTaxes</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2368310 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/CommitmentsandContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.five9.com/role/CommitmentsandContingencies</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2375311 - Disclosure - Geographical Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/GeographicalInformationTables</Role>
      <ShortName>Geographical Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.five9.com/role/GeographicalInformation</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2380312 - Disclosure - ASC 842 Adoption Impact (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/ASC842AdoptionImpactTables</Role>
      <ShortName>ASC 842 Adoption Impact (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.five9.com/role/ASC842AdoptionImpact</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2392313 - Disclosure - Selected Quarterly Financial Data (Unaudited) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/SelectedQuarterlyFinancialDataUnauditedTables</Role>
      <ShortName>Selected Quarterly Financial Data (Unaudited) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.five9.com/role/SelectedQuarterlyFinancialDataUnaudited</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2404401 - Disclosure - Description of Business and Summary of Significant Accounting Policies - Concentration Risks (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/DescriptionofBusinessandSummaryofSignificantAccountingPoliciesConcentrationRisksDetails</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies - Concentration Risks (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2405402 - Disclosure - Description of Business and Summary of Significant Accounting Policies - Allowance for Doubtful Accounts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/DescriptionofBusinessandSummaryofSignificantAccountingPoliciesAllowanceforDoubtfulAccountsDetails</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies - Allowance for Doubtful Accounts (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2406403 - Disclosure - Description of Business and Summary of Significant Accounting Policies - Property and Equipment, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/DescriptionofBusinessandSummaryofSignificantAccountingPoliciesPropertyandEquipmentNetDetails</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies - Property and Equipment, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2407404 - Disclosure - Description of Business and Summary of Significant Accounting Policies - Goodwill and Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/DescriptionofBusinessandSummaryofSignificantAccountingPoliciesGoodwillandIntangibleAssetsDetails</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies - Goodwill and Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2408405 - Disclosure - Description of Business and Summary of Significant Accounting Policies - Advertising Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/DescriptionofBusinessandSummaryofSignificantAccountingPoliciesAdvertisingCostsDetails</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies - Advertising Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2409406 - Disclosure - Description of Business and Summary of Significant Accounting Policies - Commissions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/DescriptionofBusinessandSummaryofSignificantAccountingPoliciesCommissionsDetails</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies - Commissions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.five9.com/role/DescriptionofBusinessandSummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2410407 - Disclosure - Description of Business and Summary of Significant Accounting Policies - Recently Adopted Accounting Pronouncements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/DescriptionofBusinessandSummaryofSignificantAccountingPoliciesRecentlyAdoptedAccountingPronouncementsDetails</Role>
      <ShortName>Description of Business and Summary of Significant Accounting Policies - Recently Adopted Accounting Pronouncements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2413408 - Disclosure - Revenue - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/RevenueNarrativeDetails</Role>
      <ShortName>Revenue - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2414409 - Disclosure - ASC 606 Adoption Impact and Revenue from Contracts with Customers - Contract Balances (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/ASC606AdoptionImpactandRevenuefromContractswithCustomersContractBalancesDetails</Role>
      <ShortName>ASC 606 Adoption Impact and Revenue from Contracts with Customers - Contract Balances (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2417410 - Disclosure - Investments and Fair Value Measurements - Schedule of Marketable Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/InvestmentsandFairValueMeasurementsScheduleofMarketableInvestmentsDetails</Role>
      <ShortName>Investments and Fair Value Measurements - Schedule of Marketable Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2418411 - Disclosure - Investments and Fair Value Measurements - Schedule of Continuous Unrealized Loss Position (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/InvestmentsandFairValueMeasurementsScheduleofContinuousUnrealizedLossPositionDetails</Role>
      <ShortName>Investments and Fair Value Measurements - Schedule of Continuous Unrealized Loss Position (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2419412 - Disclosure - Investments and Fair Value Measurements - Schedule of Assets Carried at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/InvestmentsandFairValueMeasurementsScheduleofAssetsCarriedatFairValueDetails</Role>
      <ShortName>Investments and Fair Value Measurements - Schedule of Assets Carried at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2420413 - Disclosure - Investments and Fair Value Measurements - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/InvestmentsandFairValueMeasurementsNarrativeDetails</Role>
      <ShortName>Investments and Fair Value Measurements - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2423414 - Disclosure - Financial Statement Components - Schedule of Cash and Cash Equivalents (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/FinancialStatementComponentsScheduleofCashandCashEquivalentsDetails</Role>
      <ShortName>Financial Statement Components - Schedule of Cash and Cash Equivalents (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2424415 - Disclosure - Financial Statement Components - Schedule of Accounts Receivable (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/FinancialStatementComponentsScheduleofAccountsReceivableDetails</Role>
      <ShortName>Financial Statement Components - Schedule of Accounts Receivable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2425416 - Disclosure - Financial Statement Components - Schedule of Prepaid Expenses and Other Current Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/FinancialStatementComponentsScheduleofPrepaidExpensesandOtherCurrentAssetsDetails</Role>
      <ShortName>Financial Statement Components - Schedule of Prepaid Expenses and Other Current Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2426417 - Disclosure - Financial Statement Components - Schedule of Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/FinancialStatementComponentsScheduleofPropertyandEquipmentDetails</Role>
      <ShortName>Financial Statement Components - Schedule of Property and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2427418 - Disclosure - Financial Statement Components - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/FinancialStatementComponentsNarrativeDetails</Role>
      <ShortName>Financial Statement Components - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2428419 - Disclosure - Financial Statement Components - Schedule of Capital Leased Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/FinancialStatementComponentsScheduleofCapitalLeasedPropertyandEquipmentDetails</Role>
      <ShortName>Financial Statement Components - Schedule of Capital Leased Property and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2429420 - Disclosure - Financial Statement Components - Schedule of Accrued and Other Current Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/FinancialStatementComponentsScheduleofAccruedandOtherCurrentLiabilitiesDetails</Role>
      <ShortName>Financial Statement Components - Schedule of Accrued and Other Current Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2432421 - Disclosure - Goodwill and Intangible Assets - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/GoodwillandIntangibleAssetsNarrativeDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2433422 - Disclosure - Goodwill and Intangible Assets - Schedule of Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/GoodwillandIntangibleAssetsScheduleofIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Schedule of Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2434423 - Disclosure - Goodwill and Intangible Assets - Schedule of Expected Future Amortization Expense of Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/GoodwillandIntangibleAssetsScheduleofExpectedFutureAmortizationExpenseofIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Intangible Assets - Schedule of Expected Future Amortization Expense of Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2437424 - Disclosure - Debt - Convertible Senior Notes and Capped Call (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.five9.com/role/DebtConvertibleSeniorNotesandCappedCallDetails</Role>
      <ShortName>Debt - Convertible Senior Notes and Capped Call (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2438425 - Disclosure - Debt - Schedule of Net Carrying Amount of the Liability Component of the Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.five9.com/role/DebtScheduleofNetCarryingAmountoftheLiabilityComponentoftheNotesDetails</Role>
      <ShortName>Debt - Schedule of Net Carrying Amount of the Liability Component of the Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2439426 - Disclosure - Debt - Schedule of Net Carrying Amount of Equity Component of the Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.five9.com/role/DebtScheduleofNetCarryingAmountofEquityComponentoftheNotesDetails</Role>
      <ShortName>Debt - Schedule of Net Carrying Amount of Equity Component of the Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2440427 - Disclosure - Debt - Schedule of Interest Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/DebtScheduleofInterestExpenseDetails</Role>
      <ShortName>Debt - Schedule of Interest Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>2441428 - Disclosure - Debt - Schedule of Equity Component of Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/DebtScheduleofEquityComponentofDebtDetails</Role>
      <ShortName>Debt - Schedule of Equity Component of Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>2442429 - Disclosure - Debt - 2016 Loan and Security Agreement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/Debt2016LoanandSecurityAgreementDetails</Role>
      <ShortName>Debt - 2016 Loan and Security Agreement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>2443430 - Disclosure - Debt - Schedule of Maturities of Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/DebtScheduleofMaturitiesofDebtDetails</Role>
      <ShortName>Debt - Schedule of Maturities of Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>2446431 - Disclosure - Stockholders' Equity - Capital Structure (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/StockholdersEquityCapitalStructureDetails</Role>
      <ShortName>Stockholders' Equity - Capital Structure (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>2447432 - Disclosure - Stockholders' Equity - Common Stock Reserved for Future Issuance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/StockholdersEquityCommonStockReservedforFutureIssuanceDetails</Role>
      <ShortName>Stockholders' Equity - Common Stock Reserved for Future Issuance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>2448433 - Disclosure - Stockholders' Equity - Equity Incentive Plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/StockholdersEquityEquityIncentivePlansDetails</Role>
      <ShortName>Stockholders' Equity - Equity Incentive Plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>2449434 - Disclosure - Stockholders' Equity - Stock Option Activities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/StockholdersEquityStockOptionActivitiesDetails</Role>
      <ShortName>Stockholders' Equity - Stock Option Activities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>2450435 - Disclosure - Stockholders' Equity - RSU Activities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/StockholdersEquityRSUActivitiesDetails</Role>
      <ShortName>Stockholders' Equity - RSU Activities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>2451436 - Disclosure - Stockholders' Equity - ESPP (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/StockholdersEquityESPPDetails</Role>
      <ShortName>Stockholders' Equity - ESPP (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>2452437 - Disclosure - Stockholders' Equity - Stock-Based Compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/StockholdersEquityStockBasedCompensationDetails</Role>
      <ShortName>Stockholders' Equity - Stock-Based Compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>2453438 - Disclosure - Stockholders' Equity - Option and ESPP Valuation Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/StockholdersEquityOptionandESPPValuationAssumptionsDetails</Role>
      <ShortName>Stockholders' Equity - Option and ESPP Valuation Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>2456439 - Disclosure - Net Loss Per Share - Basic and Diluted Net Loss Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/NetLossPerShareBasicandDilutedNetLossPerShareDetails</Role>
      <ShortName>Net Loss Per Share - Basic and Diluted Net Loss Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>2457440 - Disclosure - Net Loss Per Share - Antidilutive Securities Excluded from Computation of Diluted Net Loss Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/NetLossPerShareAntidilutiveSecuritiesExcludedfromComputationofDilutedNetLossPerShareDetails</Role>
      <ShortName>Net Loss Per Share - Antidilutive Securities Excluded from Computation of Diluted Net Loss Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>2458441 - Disclosure - Net Loss Per Share - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/NetLossPerShareNarrativeDetails</Role>
      <ShortName>Net Loss Per Share - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>2461442 - Disclosure - Income Taxes - Schedule of Components of Loss before Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/IncomeTaxesScheduleofComponentsofLossbeforeIncomeTaxesDetails</Role>
      <ShortName>Income Taxes - Schedule of Components of Loss before Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>2462443 - Disclosure - Income Taxes - Schedule of Components of Provision for Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/IncomeTaxesScheduleofComponentsofProvisionforIncomeTaxesDetails</Role>
      <ShortName>Income Taxes - Schedule of Components of Provision for Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>2463444 - Disclosure - Income Taxes - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/IncomeTaxesNarrativeDetails</Role>
      <ShortName>Income Taxes - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>2464445 - Disclosure - Income Taxes - Schedule of Effective Income Tax Amount Reconciliation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/IncomeTaxesScheduleofEffectiveIncomeTaxAmountReconciliationDetails</Role>
      <ShortName>Income Taxes - Schedule of Effective Income Tax Amount Reconciliation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>2465446 - Disclosure - Income Taxes - Schedule of Deferred Tax Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/IncomeTaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails</Role>
      <ShortName>Income Taxes - Schedule of Deferred Tax Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>2466447 - Disclosure - Income Taxes - Schedule of Unrecognized Tax Benefits Rollforward (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/IncomeTaxesScheduleofUnrecognizedTaxBenefitsRollforwardDetails</Role>
      <ShortName>Income Taxes - Schedule of Unrecognized Tax Benefits Rollforward (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>2469448 - Disclosure - Commitments and Contingencies - Commitments and Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/CommitmentsandContingenciesCommitmentsandLeasesDetails</Role>
      <ShortName>Commitments and Contingencies - Commitments and Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>2470449 - Disclosure - Commitments and Contingencies - Hosting, Telecommunications Usage and Maintenance Services (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/CommitmentsandContingenciesHostingTelecommunicationsUsageandMaintenanceServicesDetails</Role>
      <ShortName>Commitments and Contingencies - Hosting, Telecommunications Usage and Maintenance Services (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>2471450 - Disclosure - Commitments and Contingencies - Universal Services Fund Liability (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/CommitmentsandContingenciesUniversalServicesFundLiabilityDetails</Role>
      <ShortName>Commitments and Contingencies - Universal Services Fund Liability (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>2472451 - Disclosure - Commitments and Contingencies - State and Local Taxes and Surcharges (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/CommitmentsandContingenciesStateandLocalTaxesandSurchargesDetails</Role>
      <ShortName>Commitments and Contingencies - State and Local Taxes and Surcharges (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>2473452 - Disclosure - Commitments and Contingencies - Legal Matters (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/CommitmentsandContingenciesLegalMattersDetails</Role>
      <ShortName>Commitments and Contingencies - Legal Matters (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>2476453 - Disclosure - Geographical Information - Schedule of Revenue and Property and Equipment by Geographic Region (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/GeographicalInformationScheduleofRevenueandPropertyandEquipmentbyGeographicRegionDetails</Role>
      <ShortName>Geographical Information - Schedule of Revenue and Property and Equipment by Geographic Region (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>2478454 - Disclosure - Retirement Plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/RetirementPlansDetails</Role>
      <ShortName>Retirement Plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.five9.com/role/RetirementPlans</ParentRole>
      <Position>91</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>2481455 - Disclosure - ASC 842 Adoption Impact - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/ASC842AdoptionImpactNarrativeDetails</Role>
      <ShortName>ASC 842 Adoption Impact - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>2482456 - Disclosure - ASC 842 Adoption Impact - Lease Cost and Supplemental Cash Flow (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/ASC842AdoptionImpactLeaseCostandSupplementalCashFlowDetails</Role>
      <ShortName>ASC 842 Adoption Impact - Lease Cost and Supplemental Cash Flow (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>2483457 - Disclosure - ASC 842 Adoption Impact - Balance Sheet Disclosures (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/ASC842AdoptionImpactBalanceSheetDisclosuresDetails</Role>
      <ShortName>ASC 842 Adoption Impact - Balance Sheet Disclosures (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>2484458 - Disclosure - ASC 842 Adoption Impact - Weighted Average Remaining Terms and Discount Rates (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/ASC842AdoptionImpactWeightedAverageRemainingTermsandDiscountRatesDetails</Role>
      <ShortName>ASC 842 Adoption Impact - Weighted Average Remaining Terms and Discount Rates (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>2485459 - Disclosure - ASC 842 Adoption Impact - Lease Maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/ASC842AdoptionImpactLeaseMaturitiesDetails</Role>
      <ShortName>ASC 842 Adoption Impact - Lease Maturities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>2486460 - Disclosure - ASC 842 Adoption Impact - Balance Sheet Impacts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/ASC842AdoptionImpactBalanceSheetImpactsDetails</Role>
      <ShortName>ASC 842 Adoption Impact - Balance Sheet Impacts (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>2488461 - Disclosure - Acquisition of Whendu LLC (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/AcquisitionofWhenduLLCDetails</Role>
      <ShortName>Acquisition of Whendu LLC (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.five9.com/role/AcquisitionofWhenduLLC</ParentRole>
      <Position>98</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>2490462 - Disclosure - Subsequent Events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/SubsequentEventsDetails</Role>
      <ShortName>Subsequent Events (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.five9.com/role/SubsequentEvents</ParentRole>
      <Position>99</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>2493463 - Disclosure - Selected Quarterly Financial Data (Unaudited) - Schedule of Quarterly Financial Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/SelectedQuarterlyFinancialDataUnauditedScheduleofQuarterlyFinancialInformationDetails</Role>
      <ShortName>Selected Quarterly Financial Data (Unaudited) - Schedule of Quarterly Financial Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.five9.com/role/SelectedQuarterlyFinancialDataUnauditedTables</ParentRole>
      <Position>100</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>2494464 - Disclosure - Selected Quarterly Financial Data (Unaudited) - Allocation of Stock-Based Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/SelectedQuarterlyFinancialDataUnauditedAllocationofStockBasedCompensationExpenseDetails</Role>
      <ShortName>Selected Quarterly Financial Data (Unaudited) - Allocation of Stock-Based Compensation Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.five9.com/role/SelectedQuarterlyFinancialDataUnauditedTables</ParentRole>
      <Position>101</Position>
    </Report>
    <Report instance="fivn-20191231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>2495465 - Disclosure - Selected Quarterly Financial Data (Unaudited) - Allocation of Depreciation and Amortization Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.five9.com/role/SelectedQuarterlyFinancialDataUnauditedAllocationofDepreciationandAmortizationExpenseDetails</Role>
      <ShortName>Selected Quarterly Financial Data (Unaudited) - Allocation of Depreciation and Amortization Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.five9.com/role/SelectedQuarterlyFinancialDataUnauditedTables</ParentRole>
      <Position>102</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="fivn-20191231.htm">fivn-20191231.htm</File>
    <File>a123119exhibit1017next.htm</File>
    <File>a123119exhibit1018next.htm</File>
    <File>a123119exhibit211nextg.htm</File>
    <File>a123119exhibit231nextg.htm</File>
    <File>a123119exhibit311nextg.htm</File>
    <File>a123119exhibit312nextg.htm</File>
    <File>a123119exhibit321nextg.htm</File>
    <File>exhibit44descriptionof.htm</File>
    <File>fivn-20191231.xsd</File>
    <File>fivn-20191231_cal.xml</File>
    <File>fivn-20191231_def.xml</File>
    <File>fivn-20191231_lab.xml</File>
    <File>fivn-20191231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>fivn-20191231_g1.jpg</File>
    <File>fivn-20191231_g2.jpg</File>
    <File>fivn-20191231_g3.jpg</File>
    <File>fivn-20191231_g4.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy>http://xbrl.sec.gov/country/2017-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2019-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
