<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.20.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>212</ContextCount>
  <ElementCount>506</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>66</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/StatementConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00105 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00200 - Statement - Consolidated Statements of Operations and Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/StatementConsolidatedStatementsOfOperationsAndComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Operations and Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00300 - Statement - Consolidated Statements of Changes in Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/StatementConsolidatedStatementsOfChangesInStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Changes in Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00400 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>10101 - Disclosure - Organization and Description of Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureOrganizationAndDescriptionOfBusiness</Role>
      <ShortName>Organization and Description of Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>10201 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>10301 - Disclosure - Revenue</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureRevenue</Role>
      <ShortName>Revenue</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>10401 - Disclosure - Corporate Investments and Funds Held for Clients</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureCorporateInvestmentsAndFundsHeldForClients</Role>
      <ShortName>Corporate Investments and Funds Held for Clients</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10501 - Disclosure - Fair Value Measurement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureFairValueMeasurement</Role>
      <ShortName>Fair Value Measurement</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10601 - Disclosure - Business Combinations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureBusinessCombinations</Role>
      <ShortName>Business Combinations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10701 - Disclosure - Capitalized Internal-Use Software</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureCapitalizedInternalUseSoftware</Role>
      <ShortName>Capitalized Internal-Use Software</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>10801 - Disclosure - Property and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosurePropertyAndEquipment</Role>
      <ShortName>Property and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>10901 - Disclosure - Goodwill and Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureGoodwillAndIntangibleAssets</Role>
      <ShortName>Goodwill and Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>11001 - Disclosure - Accrued Expenses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureAccruedExpenses</Role>
      <ShortName>Accrued Expenses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>11101 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureDebt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>11201 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>11301 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>11401 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureStockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>11501 - Disclosure - Benefit Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureBenefitPlans</Role>
      <ShortName>Benefit Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>11601 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>11701 - Disclosure - Net Income Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureNetIncomePerShare</Role>
      <ShortName>Net Income Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>11801 - Disclosure - Selected Quarterly Financial Data (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSelectedQuarterlyFinancialDataUnaudited</Role>
      <ShortName>Selected Quarterly Financial Data (unaudited)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>20202 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>30203 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>30303 - Disclosure - Revenue (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureRevenueTables</Role>
      <ShortName>Revenue (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureRevenue</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>30403 - Disclosure - Corporate Investments and Funds Held For Clients (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureCorporateInvestmentsAndFundsHeldForClientsTables</Role>
      <ShortName>Corporate Investments and Funds Held For Clients (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>30503 - Disclosure - Fair Value Measurement (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureFairValueMeasurementTables</Role>
      <ShortName>Fair Value Measurement (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureFairValueMeasurement</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>30603 - Disclosure - Business Combinations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureBusinessCombinationsTables</Role>
      <ShortName>Business Combinations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureBusinessCombinations</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>30703 - Disclosure - Capitalized Internal-Use Software (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureCapitalizedInternalUseSoftwareTables</Role>
      <ShortName>Capitalized Internal-Use Software (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureCapitalizedInternalUseSoftware</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>30803 - Disclosure - Property and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosurePropertyAndEquipmentTables</Role>
      <ShortName>Property and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosurePropertyAndEquipment</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>30903 - Disclosure - Goodwill and Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureGoodwillAndIntangibleAssetsTables</Role>
      <ShortName>Goodwill and Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureGoodwillAndIntangibleAssets</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>31003 - Disclosure - Accrued Expenses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureAccruedExpensesTables</Role>
      <ShortName>Accrued Expenses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureAccruedExpenses</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>31203 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureLeases</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>31303 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureIncomeTaxes</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>31503 - Disclosure - Benefit Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureBenefitPlansTables</Role>
      <ShortName>Benefit Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureBenefitPlans</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>31703 - Disclosure - Net Income Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureNetIncomePerShareTables</Role>
      <ShortName>Net Income Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureNetIncomePerShare</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>31803 - Disclosure - Selected Quarterly Financial Data (unaudited) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSelectedQuarterlyFinancialDataUnauditedTables</Role>
      <ShortName>Selected Quarterly Financial Data (unaudited) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureSelectedQuarterlyFinancialDataUnaudited</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>40201 - Disclosure - Summary of Significant Accounting Policies - Current Presentation, Concentration of Risk, Accounts Receivable (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPoliciesCurrentPresentationConcentrationOfRiskAccountsReceivableDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Current Presentation, Concentration of Risk, Accounts Receivable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>40202 - Disclosure - Summary of Significant Accounting Policies - Capitalized Internal-Use Software (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPoliciesCapitalizedInternalUseSoftwareDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Capitalized Internal-Use Software (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>40203 - Disclosure - Summary of Significant Accounting Policies - PP&amp;E (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPpEDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - PP&amp;E (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>40204 - Disclosure - Summary of Significant Accounting Policies - Goodwill and Other Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPoliciesGoodwillAndOtherIntangibleAssetsDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Goodwill and Other Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>40205 - Disclosure - Summary of Significant Accounting Policies - Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPoliciesRevenueDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>40206 - Disclosure - Summary of Significant Accounting Policies - Advertising, Segment Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPoliciesAdvertisingSegmentInformationDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Advertising, Segment Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>40207 - Disclosure - Summary of Significant Accounting Policies - Cumulative effect of balance sheet changes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPoliciesCumulativeEffectOfBalanceSheetChangesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Cumulative effect of balance sheet changes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>40208 - Disclosure - Summary of Significant Accounting Policies - Impact on Balance Sheet (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPoliciesImpactOnBalanceSheetDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Impact on Balance Sheet (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>40209 - Disclosure - Summary of Significant Accounting Policies - Impact on Statement of Operations and Other Comprehensive Income (Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPoliciesImpactOnStatementOfOperationsAndOtherComprehensiveIncomeLossDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Impact on Statement of Operations and Other Comprehensive Income (Loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>40210 - Disclosure - Summary of Significant Accounting Policies - Impact on Cash Flow Statement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPoliciesImpactOnCashFlowStatementDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Impact on Cash Flow Statement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>40211 - Disclosure - Summary of Significant Accounting Policies - Adjustments for Adoption (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSummaryOfSignificantAccountingPoliciesAdjustmentsForAdoptionDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Adjustments for Adoption (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>40301 - Disclosure - Revenue - Disaggregation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureRevenueDisaggregationDetails</Role>
      <ShortName>Revenue - Disaggregation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>40302 - Disclosure - Revenue - Deferred Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureRevenueDeferredRevenueDetails</Role>
      <ShortName>Revenue - Deferred Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>40303 - Disclosure - Revenue - Deferred contract costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureRevenueDeferredContractCostsDetails</Role>
      <ShortName>Revenue - Deferred contract costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>40304 - Disclosure - Revenue - Performance Obligations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureRevenuePerformanceObligationsDetails</Role>
      <ShortName>Revenue - Performance Obligations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>40401 - Disclosure - Corporate Investments and Funds Held For Clients - Reconciliation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureCorporateInvestmentsAndFundsHeldForClientsReconciliationDetails</Role>
      <ShortName>Corporate Investments and Funds Held For Clients - Reconciliation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>40402 - Disclosure - Corporate Investments and Funds Held For Clients - Classification (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureCorporateInvestmentsAndFundsHeldForClientsClassificationDetails</Role>
      <ShortName>Corporate Investments and Funds Held For Clients - Classification (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>40403 - Disclosure - Corporate Investments and Funds Held For Clients - Maturities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureCorporateInvestmentsAndFundsHeldForClientsMaturitiesDetails</Role>
      <ShortName>Corporate Investments and Funds Held For Clients - Maturities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>40501 - Disclosure - Fair Value Measurement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureFairValueMeasurementDetails</Role>
      <ShortName>Fair Value Measurement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureFairValueMeasurementTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>40601 - Disclosure - Business Combinations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureBusinessCombinationsDetails</Role>
      <ShortName>Business Combinations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureBusinessCombinationsTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>40701 - Disclosure - Capitalized Internal-Use Software (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureCapitalizedInternalUseSoftwareDetails</Role>
      <ShortName>Capitalized Internal-Use Software (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureCapitalizedInternalUseSoftwareTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>40801 - Disclosure - Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosurePropertyAndEquipmentDetails</Role>
      <ShortName>Property and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosurePropertyAndEquipmentTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>40901 - Disclosure - Goodwill and Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureGoodwillAndIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureGoodwillAndIntangibleAssetsTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>41001 - Disclosure - Accrued Expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureAccruedExpensesDetails</Role>
      <ShortName>Accrued Expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureAccruedExpensesTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>41101 - Disclosure - Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureDebtDetails</Role>
      <ShortName>Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureDebt</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>41201 - Disclosure - Leases - Operating lease components (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureLeasesOperatingLeaseComponentsDetails</Role>
      <ShortName>Leases - Operating lease components (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>41202 - Disclosure - Leases - Operating lease ROU assets, operating lease liabilities and other supplemental information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureLeasesOperatingLeaseRouAssetsOperatingLeaseLiabilitiesAndOtherSupplementalInformationDetails</Role>
      <ShortName>Leases - Operating lease ROU assets, operating lease liabilities and other supplemental information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>41203 - Disclosure - Leases - Supplemental cash flow information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureLeasesSupplementalCashFlowInformationDetails</Role>
      <ShortName>Leases - Supplemental cash flow information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>41204 - Disclosure - Leases - Leases - Future maturities and leases that had not yet commenced (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureLeasesLeasesFutureMaturitiesAndLeasesThatHadNotYetCommencedDetails</Role>
      <ShortName>Leases - Leases - Future maturities and leases that had not yet commenced (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>41205 - Disclosure - Leases - Future minimum lease payments and rent expense under Topic 840 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureLeasesFutureMinimumLeasePaymentsAndRentExpenseUnderTopic840Details</Role>
      <ShortName>Leases - Future minimum lease payments and rent expense under Topic 840 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>41301 - Disclosure - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureIncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureIncomeTaxesTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>41302 - Disclosure - Income Taxes - Carryforwards (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureIncomeTaxesCarryforwardsDetails</Role>
      <ShortName>Income Taxes - Carryforwards (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>41401 - Disclosure - Stockholders' Equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureStockholdersEquityDetails</Role>
      <ShortName>Stockholders' Equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureStockholdersEquity</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>41501 - Disclosure - Benefit Plans - General Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureBenefitPlansGeneralInformationDetails</Role>
      <ShortName>Benefit Plans - General Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>41502 - Disclosure - Benefit Plans - Incentive Plans Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureBenefitPlansIncentivePlansActivityDetails</Role>
      <ShortName>Benefit Plans - Incentive Plans Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>41503 - Disclosure - Benefit Plans - Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureBenefitPlansCompensationExpenseDetails</Role>
      <ShortName>Benefit Plans - Compensation Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>41504 - Disclosure - Benefit Plans - Stock Option Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureBenefitPlansStockOptionActivityDetails</Role>
      <ShortName>Benefit Plans - Stock Option Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>41505 - Disclosure - Benefit Plans - RSU activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureBenefitPlansRsuActivityDetails</Role>
      <ShortName>Benefit Plans - RSU activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>41506 - Disclosure - Benefit Plans - ESPP Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureBenefitPlansEsppInformationDetails</Role>
      <ShortName>Benefit Plans - ESPP Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>41507 - Disclosure - Benefit Plans - 401(k) Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureBenefitPlans401KPlanDetails</Role>
      <ShortName>Benefit Plans - 401(k) Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>41701 - Disclosure - Net Income Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureNetIncomePerShareDetails</Role>
      <ShortName>Net Income Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureNetIncomePerShareTables</ParentRole>
      <Position>80</Position>
    </Report>
    <Report instance="pcty-20200630x10k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>41801 - Disclosure - Selected Quarterly Financial Data (unaudited) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.paylocity.com/role/DisclosureSelectedQuarterlyFinancialDataUnauditedDetails</Role>
      <ShortName>Selected Quarterly Financial Data (unaudited) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.paylocity.com/role/DisclosureSelectedQuarterlyFinancialDataUnauditedTables</ParentRole>
      <Position>81</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="pcty-20200630x10k.htm">pcty-20200630x10k.htm</File>
    <File>pcty-20200630.xsd</File>
    <File>pcty-20200630_cal.xml</File>
    <File>pcty-20200630_def.xml</File>
    <File>pcty-20200630_lab.xml</File>
    <File>pcty-20200630_pre.xml</File>
    <File>pcty-20200630ex211ee90cc.htm</File>
    <File>pcty-20200630ex2319a94af.htm</File>
    <File>pcty-20200630ex311d17692.htm</File>
    <File>pcty-20200630ex3126c8453.htm</File>
    <File>pcty-20200630ex321360a8e.htm</File>
    <File>pcty-20200630ex322b6b9d0.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>pcty-20200630x10k008.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/us-gaap/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2019-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/country/2017-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2019-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
