<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019f18c1-3d9b-76f7-93f7-a1ccc1a91c32,g:e8ca55ac-abe1-43a1-a599-a2f23d95e96e-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.paylocity.com/role/ConsolidatedStatementofChangesinStockholdersEquity" xlink:type="simple" xlink:href="pcty-20260630.xsd#ConsolidatedStatementofChangesinStockholdersEquity"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/ConsolidatedStatementofChangesinStockholdersEquity" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_019f18c1-3f30-7588-9f2a-b2ddb71d6d5b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_019f18c1-3f30-7ae8-b238-0a4368687a44" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_019f18c1-3f30-7588-9f2a-b2ddb71d6d5b" xlink:to="loc_us-gaap_StatementTable_019f18c1-3f30-7ae8-b238-0a4368687a44" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_019f18c1-3f30-760d-9604-f5273ce12944" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019f18c1-3f30-7ae8-b238-0a4368687a44" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_019f18c1-3f30-760d-9604-f5273ce12944" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019f18c1-3f30-760d-9604-f5273ce12944_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019f18c1-3f30-760d-9604-f5273ce12944" xlink:to="loc_us-gaap_EquityComponentDomain_019f18c1-3f30-760d-9604-f5273ce12944_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019f18c1-3f30-7021-80ff-41cd99d1281c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019f18c1-3f30-760d-9604-f5273ce12944" xlink:to="loc_us-gaap_EquityComponentDomain_019f18c1-3f30-7021-80ff-41cd99d1281c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_019f18c1-3f30-70bc-a0b5-66db7c974144" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019f18c1-3f30-7021-80ff-41cd99d1281c" xlink:to="loc_us-gaap_CommonStockMember_019f18c1-3f30-70bc-a0b5-66db7c974144" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_019f18c1-3f30-74c5-8685-be75fb4f5a49" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019f18c1-3f30-7021-80ff-41cd99d1281c" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_019f18c1-3f30-74c5-8685-be75fb4f5a49" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_019f18c1-3f30-7213-917f-23f5b335000e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019f18c1-3f30-7021-80ff-41cd99d1281c" xlink:to="loc_us-gaap_RetainedEarningsMember_019f18c1-3f30-7213-917f-23f5b335000e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019f18c1-3f30-772d-9671-507d1003472a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019f18c1-3f30-7021-80ff-41cd99d1281c" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019f18c1-3f30-772d-9671-507d1003472a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019f18c1-3f30-7588-9f2a-b2ddb71d6d5b" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019f18c1-3f30-792b-b15c-e4432ecf5fbe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_019f18c1-3f30-792b-b15c-e4432ecf5fbe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019f18c1-3f30-7da2-858b-31b53394862f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:to="loc_us-gaap_StockholdersEquity_019f18c1-3f30-7da2-858b-31b53394862f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_019f18c1-3f30-76de-acdd-c1fd706c974b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_019f18c1-3f30-76de-acdd-c1fd706c974b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_019f18c1-3f30-7813-bfa5-8d554160d24c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_019f18c1-3f30-7813-bfa5-8d554160d24c" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_019f18c1-3f30-7cfc-93ed-df2e065b4a5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_019f18c1-3f30-7cfc-93ed-df2e065b4a5a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_StockIssuedDuringPeriodSharesEquityAwardsVesting_019f18c1-3f30-78e9-b120-0a23e7eeab76" xlink:href="pcty-20260630.xsd#pcty_StockIssuedDuringPeriodSharesEquityAwardsVesting"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:to="loc_pcty_StockIssuedDuringPeriodSharesEquityAwardsVesting_019f18c1-3f30-78e9-b120-0a23e7eeab76" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_019f18c1-3f30-76f5-b215-bf53467b8b5b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_019f18c1-3f30-76f5-b215-bf53467b8b5b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_019f18c1-3f30-7790-82e5-6138afcf68fd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_019f18c1-3f30-7790-82e5-6138afcf68fd" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_NetSettlementForTaxesAndorExercisePriceRelatedToEquityAwardsInShares_019f18c1-3f30-7ccb-b27c-7d78ac122768" xlink:href="pcty-20260630.xsd#pcty_NetSettlementForTaxesAndorExercisePriceRelatedToEquityAwardsInShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:to="loc_pcty_NetSettlementForTaxesAndorExercisePriceRelatedToEquityAwardsInShares_019f18c1-3f30-7ccb-b27c-7d78ac122768" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_NetSettlementForTaxesAndorExercisePriceRelatedToEquityAwards_019f18c1-3f30-7f05-b3a6-a0f204517fc4" xlink:href="pcty-20260630.xsd#pcty_NetSettlementForTaxesAndorExercisePriceRelatedToEquityAwards"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:to="loc_pcty_NetSettlementForTaxesAndorExercisePriceRelatedToEquityAwards_019f18c1-3f30-7f05-b3a6-a0f204517fc4" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_019f18c1-3f30-7d4d-9cb4-14127da4a286" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_019f18c1-3f30-7d4d-9cb4-14127da4a286" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_019f18c1-3f30-7523-9eec-14f861085c68" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodValue_019f18c1-3f30-7523-9eec-14f861085c68" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_019f18c1-3f30-77d6-a8a1-2b84670f2feb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_019f18c1-3f30-77d6-a8a1-2b84670f2feb" xlink:type="arc" order="13"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_019f18c1-3f30-7523-a861-a53a6d7bf021" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_019f18c1-3f30-7523-a861-a53a6d7bf021" xlink:type="arc" order="14"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019f18c1-3f30-77f1-b416-f7a0f7770d86" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019f18c1-3f30-70fc-911f-201684e03dcb" xlink:to="loc_us-gaap_NetIncomeLoss_019f18c1-3f30-77f1-b416-f7a0f7770d86" xlink:type="arc" order="15"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019f18c1-3f30-7be0-b4c6-0cea108ee1e7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019f18c1-3f30-7359-9839-b9b72cc3e1c3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/SummaryofSignificantAccountingPoliciesCapitalizedInternalUseSoftwareDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#SummaryofSignificantAccountingPoliciesCapitalizedInternalUseSoftwareDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/SummaryofSignificantAccountingPoliciesCapitalizedInternalUseSoftwareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019f18c1-3f31-7407-9a0c-ab1c09e3b0ce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019f18c1-3f31-7883-92d1-63d00989f5e7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019f18c1-3f31-7407-9a0c-ab1c09e3b0ce" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019f18c1-3f31-7883-92d1-63d00989f5e7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019f18c1-3f31-7252-b750-14c86a146d41" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019f18c1-3f31-7883-92d1-63d00989f5e7" xlink:to="loc_srt_RangeAxis_019f18c1-3f31-7252-b750-14c86a146d41" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3f31-7252-b750-14c86a146d41_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019f18c1-3f31-7252-b750-14c86a146d41" xlink:to="loc_srt_RangeMember_019f18c1-3f31-7252-b750-14c86a146d41_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3f31-72e8-8146-5e15ca237148" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019f18c1-3f31-7252-b750-14c86a146d41" xlink:to="loc_srt_RangeMember_019f18c1-3f31-72e8-8146-5e15ca237148" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019f18c1-3f31-7dbd-bd46-b681083d9653" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3f31-72e8-8146-5e15ca237148" xlink:to="loc_srt_MinimumMember_019f18c1-3f31-7dbd-bd46-b681083d9653" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019f18c1-3f31-7139-87c4-739495fadf93" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3f31-72e8-8146-5e15ca237148" xlink:to="loc_srt_MaximumMember_019f18c1-3f31-7139-87c4-739495fadf93" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019f18c1-3f31-79dc-abe6-189f8fcfd412" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019f18c1-3f31-7883-92d1-63d00989f5e7" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019f18c1-3f31-79dc-abe6-189f8fcfd412" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-79dc-abe6-189f8fcfd412_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019f18c1-3f31-79dc-abe6-189f8fcfd412" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-79dc-abe6-189f8fcfd412_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-7c2c-b833-bfe39d8e0932" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019f18c1-3f31-79dc-abe6-189f8fcfd412" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-7c2c-b833-bfe39d8e0932" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SoftwareDevelopmentMember_019f18c1-3f31-7476-8e6c-9c3f24acc275" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SoftwareDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-7c2c-b833-bfe39d8e0932" xlink:to="loc_us-gaap_SoftwareDevelopmentMember_019f18c1-3f31-7476-8e6c-9c3f24acc275" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_019f18c1-3f31-74c4-8655-437b33eceaf1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019f18c1-3f31-7407-9a0c-ab1c09e3b0ce" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_019f18c1-3f31-74c4-8655-437b33eceaf1" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/SummaryofSignificantAccountingPoliciesPPEDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#SummaryofSignificantAccountingPoliciesPPEDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/SummaryofSignificantAccountingPoliciesPPEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019f18c1-3f31-7ac7-adab-c2de510f43d5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019f18c1-3f31-7f73-be5e-134e7e75f2ba" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019f18c1-3f31-7ac7-adab-c2de510f43d5" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019f18c1-3f31-7f73-be5e-134e7e75f2ba" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019f18c1-3f31-7d17-a4b4-162737f3ccfb" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019f18c1-3f31-7f73-be5e-134e7e75f2ba" xlink:to="loc_srt_RangeAxis_019f18c1-3f31-7d17-a4b4-162737f3ccfb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3f31-7d17-a4b4-162737f3ccfb_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019f18c1-3f31-7d17-a4b4-162737f3ccfb" xlink:to="loc_srt_RangeMember_019f18c1-3f31-7d17-a4b4-162737f3ccfb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3f31-7de5-a172-d13067220394" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019f18c1-3f31-7d17-a4b4-162737f3ccfb" xlink:to="loc_srt_RangeMember_019f18c1-3f31-7de5-a172-d13067220394" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019f18c1-3f31-715f-a955-7bbee310861d" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3f31-7de5-a172-d13067220394" xlink:to="loc_srt_MinimumMember_019f18c1-3f31-715f-a955-7bbee310861d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019f18c1-3f31-7afe-9071-a003a7f3f052" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3f31-7de5-a172-d13067220394" xlink:to="loc_srt_MaximumMember_019f18c1-3f31-7afe-9071-a003a7f3f052" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_019f18c1-3f31-796f-8460-50b15571052c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019f18c1-3f31-7ac7-adab-c2de510f43d5" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_019f18c1-3f31-796f-8460-50b15571052c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/SummaryofSignificantAccountingPoliciesGoodwillandOtherIntangibleAssetsDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#SummaryofSignificantAccountingPoliciesGoodwillandOtherIntangibleAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/SummaryofSignificantAccountingPoliciesGoodwillandOtherIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019f18c1-3f31-7f29-a4bd-66ed72449290" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019f18c1-3f31-7c0f-81f2-2c827f3b2ff9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019f18c1-3f31-7f29-a4bd-66ed72449290" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019f18c1-3f31-7c0f-81f2-2c827f3b2ff9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019f18c1-3f31-7105-b89a-124fe9e063dd" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019f18c1-3f31-7c0f-81f2-2c827f3b2ff9" xlink:to="loc_srt_RangeAxis_019f18c1-3f31-7105-b89a-124fe9e063dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3f31-7105-b89a-124fe9e063dd_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019f18c1-3f31-7105-b89a-124fe9e063dd" xlink:to="loc_srt_RangeMember_019f18c1-3f31-7105-b89a-124fe9e063dd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3f31-7d87-ab8b-3efeb1490e2d" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019f18c1-3f31-7105-b89a-124fe9e063dd" xlink:to="loc_srt_RangeMember_019f18c1-3f31-7d87-ab8b-3efeb1490e2d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019f18c1-3f31-7b1f-bcb5-1f79bb94e5fc" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3f31-7d87-ab8b-3efeb1490e2d" xlink:to="loc_srt_MinimumMember_019f18c1-3f31-7b1f-bcb5-1f79bb94e5fc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019f18c1-3f31-7583-b21b-c7230bc8f0f1" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3f31-7d87-ab8b-3efeb1490e2d" xlink:to="loc_srt_MaximumMember_019f18c1-3f31-7583-b21b-c7230bc8f0f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019f18c1-3f31-783c-930e-ab21055b7bdd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019f18c1-3f31-7c0f-81f2-2c827f3b2ff9" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019f18c1-3f31-783c-930e-ab21055b7bdd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-783c-930e-ab21055b7bdd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019f18c1-3f31-783c-930e-ab21055b7bdd" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-783c-930e-ab21055b7bdd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-7a54-8250-12eff453ca76" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019f18c1-3f31-783c-930e-ab21055b7bdd" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-7a54-8250-12eff453ca76" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelationshipsMember_019f18c1-3f31-738d-8ccc-53aa6b302f3e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CustomerRelationshipsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-7a54-8250-12eff453ca76" xlink:to="loc_us-gaap_CustomerRelationshipsMember_019f18c1-3f31-738d-8ccc-53aa6b302f3e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_019f18c1-3f31-7389-82a6-9b599b3524c9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DevelopedTechnologyRightsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-7a54-8250-12eff453ca76" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_019f18c1-3f31-7389-82a6-9b599b3524c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradeNamesMember_019f18c1-3f31-7f37-b961-1ec66e3fac58" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TradeNamesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-7a54-8250-12eff453ca76" xlink:to="loc_us-gaap_TradeNamesMember_019f18c1-3f31-7f37-b961-1ec66e3fac58" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_019f18c1-3f31-7985-a48a-b6c91a3f0915" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019f18c1-3f31-7f29-a4bd-66ed72449290" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetUsefulLife_019f18c1-3f31-7985-a48a-b6c91a3f0915" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairedAbstract_019f18c1-3f31-7954-b018-7796fd772c36" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GoodwillImpairedAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019f18c1-3f31-7f29-a4bd-66ed72449290" xlink:to="loc_us-gaap_GoodwillImpairedAbstract_019f18c1-3f31-7954-b018-7796fd772c36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillImpairmentLoss_019f18c1-3f31-7c41-8685-78ce383e332e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GoodwillImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillImpairedAbstract_019f18c1-3f31-7954-b018-7796fd772c36" xlink:to="loc_us-gaap_GoodwillImpairmentLoss_019f18c1-3f31-7c41-8685-78ce383e332e" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/SummaryofSignificantAccountingPoliciesRevenueDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#SummaryofSignificantAccountingPoliciesRevenueDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/SummaryofSignificantAccountingPoliciesRevenueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-7290-90ab-38c5efc82178" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-74ec-8c68-b6679a28e012" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-7290-90ab-38c5efc82178" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-74ec-8c68-b6679a28e012" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019f18c1-3f31-78fb-8951-cdcc48a2b9f4" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-74ec-8c68-b6679a28e012" xlink:to="loc_srt_RangeAxis_019f18c1-3f31-78fb-8951-cdcc48a2b9f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3f31-78fb-8951-cdcc48a2b9f4_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019f18c1-3f31-78fb-8951-cdcc48a2b9f4" xlink:to="loc_srt_RangeMember_019f18c1-3f31-78fb-8951-cdcc48a2b9f4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3f31-72e4-9536-2716b1952b2e" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019f18c1-3f31-78fb-8951-cdcc48a2b9f4" xlink:to="loc_srt_RangeMember_019f18c1-3f31-72e4-9536-2716b1952b2e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019f18c1-3f31-7ef5-b62e-5c148aa8b2e4" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3f31-72e4-9536-2716b1952b2e" xlink:to="loc_srt_MaximumMember_019f18c1-3f31-7ef5-b62e-5c148aa8b2e4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueMethodsInputsAndAssumptionsUsedAbstract_019f18c1-3f31-7811-86a6-e742c4fd448b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueMethodsInputsAndAssumptionsUsedAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-7290-90ab-38c5efc82178" xlink:to="loc_us-gaap_RevenueMethodsInputsAndAssumptionsUsedAbstract_019f18c1-3f31-7811-86a6-e742c4fd448b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_PeriodOfNoticeToCancelAgreement_019f18c1-3f31-7ca0-a43a-24b9e7145fd6" xlink:href="pcty-20260630.xsd#pcty_PeriodOfNoticeToCancelAgreement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueMethodsInputsAndAssumptionsUsedAbstract_019f18c1-3f31-7811-86a6-e742c4fd448b" xlink:to="loc_pcty_PeriodOfNoticeToCancelAgreement_019f18c1-3f31-7ca0-a43a-24b9e7145fd6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_TermArrangementPeriod_019f18c1-3f31-714d-be35-23c67649a1ac" xlink:href="pcty-20260630.xsd#pcty_TermArrangementPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueMethodsInputsAndAssumptionsUsedAbstract_019f18c1-3f31-7811-86a6-e742c4fd448b" xlink:to="loc_pcty_TermArrangementPeriod_019f18c1-3f31-714d-be35-23c67649a1ac" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_ImplementationFeesDeferredAndAmortizedPeriod_019f18c1-3f31-7a67-99fb-cdafcc06ede8" xlink:href="pcty-20260630.xsd#pcty_ImplementationFeesDeferredAndAmortizedPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueMethodsInputsAndAssumptionsUsedAbstract_019f18c1-3f31-7811-86a6-e742c4fd448b" xlink:to="loc_pcty_ImplementationFeesDeferredAndAmortizedPeriod_019f18c1-3f31-7a67-99fb-cdafcc06ede8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSoldAbstract_019f18c1-3f31-7e17-9271-a0665f1a20ac" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostOfGoodsAndServicesSoldAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-7290-90ab-38c5efc82178" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSoldAbstract_019f18c1-3f31-7e17-9271-a0665f1a20ac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_CostOfRevenuesForProprietaryProductsAmortizationPeriod_019f18c1-3f31-72a9-8de2-04094effb959" xlink:href="pcty-20260630.xsd#pcty_CostOfRevenuesForProprietaryProductsAmortizationPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostOfGoodsAndServicesSoldAbstract_019f18c1-3f31-7e17-9271-a0665f1a20ac" xlink:to="loc_pcty_CostOfRevenuesForProprietaryProductsAmortizationPeriod_019f18c1-3f31-72a9-8de2-04094effb959" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_ProspectiveChangeInAmortizationPeriodOfCostOfRevenuesForProprietaryProducts_019fa599-566a-76d3-a086-5d272812ac08" xlink:href="pcty-20260630.xsd#pcty_ProspectiveChangeInAmortizationPeriodOfCostOfRevenuesForProprietaryProducts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CostOfGoodsAndServicesSoldAbstract_019f18c1-3f31-7e17-9271-a0665f1a20ac" xlink:to="loc_pcty_ProspectiveChangeInAmortizationPeriodOfCostOfRevenuesForProprietaryProducts_019fa599-566a-76d3-a086-5d272812ac08" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/RevenueDisaggregationDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#RevenueDisaggregationDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/RevenueDisaggregationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-774e-9262-7f6cab7ff5c6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-7bfb-9a39-68637c740dff" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-774e-9262-7f6cab7ff5c6" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-7bfb-9a39-68637c740dff" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_019f18c1-3f31-79e4-985d-ca8a0dcf3a92" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-7bfb-9a39-68637c740dff" xlink:to="loc_srt_ProductOrServiceAxis_019f18c1-3f31-79e4-985d-ca8a0dcf3a92" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019f18c1-3f31-79e4-985d-ca8a0dcf3a92_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_019f18c1-3f31-79e4-985d-ca8a0dcf3a92" xlink:to="loc_srt_ProductsAndServicesDomain_019f18c1-3f31-79e4-985d-ca8a0dcf3a92_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019f18c1-3f31-78a5-baa8-a6e1dcd3e980" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_019f18c1-3f31-79e4-985d-ca8a0dcf3a92" xlink:to="loc_srt_ProductsAndServicesDomain_019f18c1-3f31-78a5-baa8-a6e1dcd3e980" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_RecurringFeesMember_019f18c1-3f31-7f25-b617-143e64c2ab83" xlink:href="pcty-20260630.xsd#pcty_RecurringFeesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019f18c1-3f31-78a5-baa8-a6e1dcd3e980" xlink:to="loc_pcty_RecurringFeesMember_019f18c1-3f31-7f25-b617-143e64c2ab83" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_NonrecurringFeesMember_019f18c1-3f31-7cfd-ab9e-0e0d29a9aedd" xlink:href="pcty-20260630.xsd#pcty_NonrecurringFeesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019f18c1-3f31-78a5-baa8-a6e1dcd3e980" xlink:to="loc_pcty_NonrecurringFeesMember_019f18c1-3f31-7cfd-ab9e-0e0d29a9aedd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_ContractsWithCustomersAbstract_019f18c1-3f31-7a74-9797-e356b533d5f4" xlink:href="pcty-20260630.xsd#pcty_ContractsWithCustomersAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-774e-9262-7f6cab7ff5c6" xlink:to="loc_pcty_ContractsWithCustomersAbstract_019f18c1-3f31-7a74-9797-e356b533d5f4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019f18c1-3f31-7089-b8fd-728cf0624021" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_ContractsWithCustomersAbstract_019f18c1-3f31-7a74-9797-e356b533d5f4" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019f18c1-3f31-7089-b8fd-728cf0624021" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/RevenueDeferredRevenueDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#RevenueDeferredRevenueDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/RevenueDeferredRevenueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-7414-8e45-423df8549fde" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-7735-8175-aec423e95a2d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-7414-8e45-423df8549fde" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-7735-8175-aec423e95a2d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_019f18c1-3f31-7172-81da-77de0357442e" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-7735-8175-aec423e95a2d" xlink:to="loc_srt_ProductOrServiceAxis_019f18c1-3f31-7172-81da-77de0357442e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019f18c1-3f31-7172-81da-77de0357442e_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_019f18c1-3f31-7172-81da-77de0357442e" xlink:to="loc_srt_ProductsAndServicesDomain_019f18c1-3f31-7172-81da-77de0357442e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019f18c1-3f31-7490-8dff-b4fedcdebe40" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_019f18c1-3f31-7172-81da-77de0357442e" xlink:to="loc_srt_ProductsAndServicesDomain_019f18c1-3f31-7490-8dff-b4fedcdebe40" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_NonrecurringFeesMember_019f18c1-3f31-78d5-89c1-eaddb7ca9078" xlink:href="pcty-20260630.xsd#pcty_NonrecurringFeesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019f18c1-3f31-7490-8dff-b4fedcdebe40" xlink:to="loc_pcty_NonrecurringFeesMember_019f18c1-3f31-78d5-89c1-eaddb7ca9078" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019f18c1-3f31-718b-bbb7-7f944c4733a4" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-7735-8175-aec423e95a2d" xlink:to="loc_srt_RangeAxis_019f18c1-3f31-718b-bbb7-7f944c4733a4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3f31-718b-bbb7-7f944c4733a4_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019f18c1-3f31-718b-bbb7-7f944c4733a4" xlink:to="loc_srt_RangeMember_019f18c1-3f31-718b-bbb7-7f944c4733a4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3f31-7d1a-ad98-affb1d0d7636" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019f18c1-3f31-718b-bbb7-7f944c4733a4" xlink:to="loc_srt_RangeMember_019f18c1-3f31-7d1a-ad98-affb1d0d7636" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019f18c1-3f31-7f60-86b0-1d29ef6a2010" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3f31-7d1a-ad98-affb1d0d7636" xlink:to="loc_srt_MaximumMember_019f18c1-3f31-7f60-86b0-1d29ef6a2010" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_AmortizationPeriodForNonrefundableImplementationFees_019f18c1-3f31-7975-beb7-23865dfd1c84" xlink:href="pcty-20260630.xsd#pcty_AmortizationPeriodForNonrefundableImplementationFees"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-7414-8e45-423df8549fde" xlink:to="loc_pcty_AmortizationPeriodForNonrefundableImplementationFees_019f18c1-3f31-7975-beb7-23865dfd1c84" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInContractWithCustomerLiabilityAbstract_019f18c1-3f31-79ff-a91d-c221f7ffbeb7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ChangeInContractWithCustomerLiabilityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-7414-8e45-423df8549fde" xlink:to="loc_us-gaap_ChangeInContractWithCustomerLiabilityAbstract_019f18c1-3f31-79ff-a91d-c221f7ffbeb7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiability_019f18c1-3f31-7792-8de7-795233134e82" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInContractWithCustomerLiabilityAbstract_019f18c1-3f31-79ff-a91d-c221f7ffbeb7" xlink:to="loc_us-gaap_ContractWithCustomerLiability_019f18c1-3f31-7792-8de7-795233134e82" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_019f18c1-3f31-7dd9-a863-c9df7208eb36" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInContractWithCustomerLiabilityAbstract_019f18c1-3f31-79ff-a91d-c221f7ffbeb7" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_019f18c1-3f31-7dd9-a863-c9df7208eb36" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_TotalRevenueRecognizedFromBothBeginningBalanceAndCurrentPeriodIncreaseInContractLiability_019f18c1-3f31-761f-b81f-3f9ba93f74e8" xlink:href="pcty-20260630.xsd#pcty_TotalRevenueRecognizedFromBothBeginningBalanceAndCurrentPeriodIncreaseInContractLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInContractWithCustomerLiabilityAbstract_019f18c1-3f31-79ff-a91d-c221f7ffbeb7" xlink:to="loc_pcty_TotalRevenueRecognizedFromBothBeginningBalanceAndCurrentPeriodIncreaseInContractLiability_019f18c1-3f31-761f-b81f-3f9ba93f74e8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiability_019f18c1-3f31-7a63-81ce-1f55060d463a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_ContractWithCustomerRevenueDeferredToBeRecognizedInNextTwelveMonths_019f18c1-3f31-727a-9454-2f9c66d12870" xlink:href="pcty-20260630.xsd#pcty_ContractWithCustomerRevenueDeferredToBeRecognizedInNextTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInContractWithCustomerLiabilityAbstract_019f18c1-3f31-79ff-a91d-c221f7ffbeb7" xlink:to="loc_pcty_ContractWithCustomerRevenueDeferredToBeRecognizedInNextTwelveMonths_019f18c1-3f31-727a-9454-2f9c66d12870" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_ContractWithCustomerRevenueDeferredToBeRecognizedInYearTwo_019f18c1-3f31-7782-9a76-7c412b8a6f89" xlink:href="pcty-20260630.xsd#pcty_ContractWithCustomerRevenueDeferredToBeRecognizedInYearTwo"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInContractWithCustomerLiabilityAbstract_019f18c1-3f31-79ff-a91d-c221f7ffbeb7" xlink:to="loc_pcty_ContractWithCustomerRevenueDeferredToBeRecognizedInYearTwo_019f18c1-3f31-7782-9a76-7c412b8a6f89" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_ContractWithCustomerRevenueDeferredToBeRecognizedThereafter_019f18c1-3f31-70af-ac04-182273b03a85" xlink:href="pcty-20260630.xsd#pcty_ContractWithCustomerRevenueDeferredToBeRecognizedThereafter"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInContractWithCustomerLiabilityAbstract_019f18c1-3f31-79ff-a91d-c221f7ffbeb7" xlink:to="loc_pcty_ContractWithCustomerRevenueDeferredToBeRecognizedThereafter_019f18c1-3f31-70af-ac04-182273b03a85" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/RevenueDeferredContractCostsDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#RevenueDeferredContractCostsDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/RevenueDeferredContractCostsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-74c8-8fba-7282529d7605" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-720c-8408-2994864361d1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-74c8-8fba-7282529d7605" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-720c-8408-2994864361d1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostAxis_019f18c1-3f31-72cf-8b16-abb5a89ccac3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CapitalizedContractCostAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-720c-8408-2994864361d1" xlink:to="loc_us-gaap_CapitalizedContractCostAxis_019f18c1-3f31-72cf-8b16-abb5a89ccac3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostDomain_019f18c1-3f31-72cf-8b16-abb5a89ccac3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CapitalizedContractCostDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CapitalizedContractCostAxis_019f18c1-3f31-72cf-8b16-abb5a89ccac3" xlink:to="loc_us-gaap_CapitalizedContractCostDomain_019f18c1-3f31-72cf-8b16-abb5a89ccac3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostDomain_019f18c1-3f31-7cb4-860b-f9a136850453" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CapitalizedContractCostDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CapitalizedContractCostAxis_019f18c1-3f31-72cf-8b16-abb5a89ccac3" xlink:to="loc_us-gaap_CapitalizedContractCostDomain_019f18c1-3f31-7cb4-860b-f9a136850453" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_CostToObtainNewContractMember_019f18c1-3f31-7567-9a28-6d7b28820831" xlink:href="pcty-20260630.xsd#pcty_CostToObtainNewContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalizedContractCostDomain_019f18c1-3f31-7cb4-860b-f9a136850453" xlink:to="loc_pcty_CostToObtainNewContractMember_019f18c1-3f31-7567-9a28-6d7b28820831" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_CostToFulfillContractMember_019f18c1-3f31-7c3d-9a15-5196445ef643" xlink:href="pcty-20260630.xsd#pcty_CostToFulfillContractMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalizedContractCostDomain_019f18c1-3f31-7cb4-860b-f9a136850453" xlink:to="loc_pcty_CostToFulfillContractMember_019f18c1-3f31-7c3d-9a15-5196445ef643" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostNetAbstract_019f18c1-3f31-72ea-9a06-0c69594479e9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CapitalizedContractCostNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-74c8-8fba-7282529d7605" xlink:to="loc_us-gaap_CapitalizedContractCostNetAbstract_019f18c1-3f31-72ea-9a06-0c69594479e9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostNet_019f18c1-3f31-7211-b880-efafadd5c895" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CapitalizedContractCostNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalizedContractCostNetAbstract_019f18c1-3f31-72ea-9a06-0c69594479e9" xlink:to="loc_us-gaap_CapitalizedContractCostNet_019f18c1-3f31-7211-b880-efafadd5c895" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_CapitalizedContractCostAdditions_019f18c1-3f31-78fd-a760-71741cb5fd56" xlink:href="pcty-20260630.xsd#pcty_CapitalizedContractCostAdditions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalizedContractCostNetAbstract_019f18c1-3f31-72ea-9a06-0c69594479e9" xlink:to="loc_pcty_CapitalizedContractCostAdditions_019f18c1-3f31-78fd-a760-71741cb5fd56" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostAmortization_019f18c1-3f31-7ea9-919b-8df223d122f7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CapitalizedContractCostAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalizedContractCostNetAbstract_019f18c1-3f31-72ea-9a06-0c69594479e9" xlink:to="loc_us-gaap_CapitalizedContractCostAmortization_019f18c1-3f31-7ea9-919b-8df223d122f7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostNet_019f18c1-3f31-788a-825d-ef712d4e0cc8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CapitalizedContractCostNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostImpairmentLoss_019f18c1-3f31-7584-a6af-a0a31746c624" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CapitalizedContractCostImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CapitalizedContractCostNetAbstract_019f18c1-3f31-72ea-9a06-0c69594479e9" xlink:to="loc_us-gaap_CapitalizedContractCostImpairmentLoss_019f18c1-3f31-7584-a6af-a0a31746c624" xlink:type="arc" order="5"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/RevenueRemainingPerformanceObligationsDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#RevenueRemainingPerformanceObligationsDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/RevenueRemainingPerformanceObligationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-7824-ae78-6ecc868aaad3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-7c50-b735-02245d12a0cf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-7824-ae78-6ecc868aaad3" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-7c50-b735-02245d12a0cf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_019f18c1-3f31-77a1-9ca9-5b8aca4d9995" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-7c50-b735-02245d12a0cf" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_019f18c1-3f31-77a1-9ca9-5b8aca4d9995" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuePracticalExpedientAbstract_019f18c1-3f31-7f93-8095-02cd685b7b50" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenuePracticalExpedientAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-7824-ae78-6ecc868aaad3" xlink:to="loc_us-gaap_RevenuePracticalExpedientAbstract_019f18c1-3f31-7f93-8095-02cd685b7b50" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_019f18c1-3f31-7949-8b50-5ee56c1c8bfe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuePracticalExpedientAbstract_019f18c1-3f31-7f93-8095-02cd685b7b50" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_019f18c1-3f31-7949-8b50-5ee56c1c8bfe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019f18c1-3f31-7a29-9ba0-fa37132275af" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuePracticalExpedientAbstract_019f18c1-3f31-7f93-8095-02cd685b7b50" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019f18c1-3f31-7a29-9ba0-fa37132275af" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/RevenueRemainingPerformanceObligationsDetails_1" xlink:type="simple" xlink:href="pcty-20260630.xsd#RevenueRemainingPerformanceObligationsDetails_1"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/RevenueRemainingPerformanceObligationsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-7824-ae78-6ecc868aaad3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-7c50-b735-02245d12a0cf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-7824-ae78-6ecc868aaad3" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_019f18c1-3f31-7c50-b735-02245d12a0cf" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuePracticalExpedientAbstract_019f18c1-3f31-7f93-8095-02cd685b7b50" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenuePracticalExpedientAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f18c1-3f31-7824-ae78-6ecc868aaad3" xlink:to="loc_us-gaap_RevenuePracticalExpedientAbstract_019f18c1-3f31-7f93-8095-02cd685b7b50" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_019f18c1-3f31-7949-8b50-5ee56c1c8bfe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuePracticalExpedientAbstract_019f18c1-3f31-7f93-8095-02cd685b7b50" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_019f18c1-3f31-7949-8b50-5ee56c1c8bfe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019f18c1-3f31-7a29-9ba0-fa37132275af" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuePracticalExpedientAbstract_019f18c1-3f31-7f93-8095-02cd685b7b50" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019f18c1-3f31-7a29-9ba0-fa37132275af" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/CashandCashEquivalentsandFundsHeldforClientsReconciliationDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#CashandCashEquivalentsandFundsHeldforClientsReconciliationDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/CashandCashEquivalentsandFundsHeldforClientsReconciliationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-75da-8dcb-bbe75c2b08be" xlink:href="pcty-20260630.xsd#pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_ScheduleOfFundsHeldForClientsAndCorporateInvestmentsTable_019f18c1-3f31-709c-9317-8172d8e81789" xlink:href="pcty-20260630.xsd#pcty_ScheduleOfFundsHeldForClientsAndCorporateInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-75da-8dcb-bbe75c2b08be" xlink:to="loc_pcty_ScheduleOfFundsHeldForClientsAndCorporateInvestmentsTable_019f18c1-3f31-709c-9317-8172d8e81789" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019f18c1-3f31-7cf0-89e3-622dab468d8f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pcty_ScheduleOfFundsHeldForClientsAndCorporateInvestmentsTable_019f18c1-3f31-709c-9317-8172d8e81789" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019f18c1-3f31-7cf0-89e3-622dab468d8f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7cf0-89e3-622dab468d8f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019f18c1-3f31-7cf0-89e3-622dab468d8f" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7cf0-89e3-622dab468d8f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7c65-9660-8dcdb0fbdc82" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019f18c1-3f31-7cf0-89e3-622dab468d8f" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7c65-9660-8dcdb0fbdc82" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_019f18c1-3f31-72e9-b5ab-fabee8df5fad" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7c65-9660-8dcdb0fbdc82" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_019f18c1-3f31-72e9-b5ab-fabee8df5fad" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_019f18c1-3f31-7a1f-9794-f8a33af3e676" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7c65-9660-8dcdb0fbdc82" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_019f18c1-3f31-7a1f-9794-f8a33af3e676" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_019f18c1-3f31-7e2d-99da-527012373f5c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CertificatesOfDepositMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7c65-9660-8dcdb0fbdc82" xlink:to="loc_us-gaap_CertificatesOfDepositMember_019f18c1-3f31-7e2d-99da-527012373f5c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_019f18c1-3f31-7ac0-945c-d44debf64ac3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7c65-9660-8dcdb0fbdc82" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_019f18c1-3f31-7ac0-945c-d44debf64ac3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperNotIncludedWithCashAndCashEquivalentsMember_019f18c1-3f31-7840-b031-80ccc37e395e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommercialPaperNotIncludedWithCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7c65-9660-8dcdb0fbdc82" xlink:to="loc_us-gaap_CommercialPaperNotIncludedWithCashAndCashEquivalentsMember_019f18c1-3f31-7840-b031-80ccc37e395e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDebtSecuritiesMember_019f18c1-3f31-7a07-9af4-f27d8db5c3dd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7c65-9660-8dcdb0fbdc82" xlink:to="loc_us-gaap_OtherDebtSecuritiesMember_019f18c1-3f31-7a07-9af4-f27d8db5c3dd" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_CashAndCashEquivalentsAmortizedCost_019f18c1-3f31-700c-9ea4-9cd0f6e5aabc" xlink:href="pcty-20260630.xsd#pcty_CashAndCashEquivalentsAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-75da-8dcb-bbe75c2b08be" xlink:to="loc_pcty_CashAndCashEquivalentsAmortizedCost_019f18c1-3f31-700c-9ea4-9cd0f6e5aabc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019f18c1-3f31-7aa0-8d45-2e0a186baa88" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-75da-8dcb-bbe75c2b08be" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019f18c1-3f31-7aa0-8d45-2e0a186baa88" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_FundsHeldForClientsCashAndCashEquivalentsAmortizedCost_019f18c1-3f31-7497-bc77-8ab5727337f8" xlink:href="pcty-20260630.xsd#pcty_FundsHeldForClientsCashAndCashEquivalentsAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-75da-8dcb-bbe75c2b08be" xlink:to="loc_pcty_FundsHeldForClientsCashAndCashEquivalentsAmortizedCost_019f18c1-3f31-7497-bc77-8ab5727337f8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_FundsHeldForClientsCashAndCashEquivalents_019f18c1-3f31-774b-af86-c79271c5aa7a" xlink:href="pcty-20260630.xsd#pcty_FundsHeldForClientsCashAndCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-75da-8dcb-bbe75c2b08be" xlink:to="loc_pcty_FundsHeldForClientsCashAndCashEquivalents_019f18c1-3f31-774b-af86-c79271c5aa7a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract_019f18c1-3f31-7e8e-800a-e30bcc8704d8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-75da-8dcb-bbe75c2b08be" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract_019f18c1-3f31-7e8e-800a-e30bcc8704d8" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_019f18c1-3f31-759c-980f-df271cb65cb1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract_019f18c1-3f31-7e8e-800a-e30bcc8704d8" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_019f18c1-3f31-759c-980f-df271cb65cb1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019f18c1-3f31-77cc-b752-400a35260f2e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract_019f18c1-3f31-7e8e-800a-e30bcc8704d8" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019f18c1-3f31-77cc-b752-400a35260f2e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019f18c1-3f31-722a-a148-371b0d34ab5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract_019f18c1-3f31-7e8e-800a-e30bcc8704d8" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019f18c1-3f31-722a-a148-371b0d34ab5a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019f18c1-3f31-7fdd-8b12-5b9472d14b2b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract_019f18c1-3f31-7e8e-800a-e30bcc8704d8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019f18c1-3f31-7fdd-8b12-5b9472d14b2b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_InvestmentsAmortizedCost_019f18c1-3f31-7a01-9553-29ce3e0ae3c0" xlink:href="pcty-20260630.xsd#pcty_InvestmentsAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract_019f18c1-3f31-7e8e-800a-e30bcc8704d8" xlink:to="loc_pcty_InvestmentsAmortizedCost_019f18c1-3f31-7a01-9553-29ce3e0ae3c0" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_InvestmentsAccumulatedGrossUnrealizedGainBeforeTax_019f18c1-3f31-70fd-8132-ad58759f69e9" xlink:href="pcty-20260630.xsd#pcty_InvestmentsAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract_019f18c1-3f31-7e8e-800a-e30bcc8704d8" xlink:to="loc_pcty_InvestmentsAccumulatedGrossUnrealizedGainBeforeTax_019f18c1-3f31-70fd-8132-ad58759f69e9" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_InvestmentsAccumulatedGrossUnrealizedLossBeforeTax_019f18c1-3f31-7236-9365-788154d9cb15" xlink:href="pcty-20260630.xsd#pcty_InvestmentsAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract_019f18c1-3f31-7e8e-800a-e30bcc8704d8" xlink:to="loc_pcty_InvestmentsAccumulatedGrossUnrealizedLossBeforeTax_019f18c1-3f31-7236-9365-788154d9cb15" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_019f18c1-3f31-7936-919a-89357efc2402" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Investments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesFairValueToAmortizedCostBasisAbstract_019f18c1-3f31-7e8e-800a-e30bcc8704d8" xlink:to="loc_us-gaap_Investments_019f18c1-3f31-7936-919a-89357efc2402" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/CashandCashEquivalentsandFundsHeldforClientsClassificationandUnrealizedLossesDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#CashandCashEquivalentsandFundsHeldforClientsClassificationandUnrealizedLossesDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/CashandCashEquivalentsandFundsHeldforClientsClassificationandUnrealizedLossesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-73e8-b953-6e551ee24489" xlink:href="pcty-20260630.xsd#pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_ScheduleOfFundsHeldForClientsAndCorporateInvestmentsTable_019f18c1-3f31-7cc9-8aa1-c7e33e2b82d5" xlink:href="pcty-20260630.xsd#pcty_ScheduleOfFundsHeldForClientsAndCorporateInvestmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-73e8-b953-6e551ee24489" xlink:to="loc_pcty_ScheduleOfFundsHeldForClientsAndCorporateInvestmentsTable_019f18c1-3f31-7cc9-8aa1-c7e33e2b82d5" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019f18c1-3f31-7ce9-96ee-77973bb658cb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pcty_ScheduleOfFundsHeldForClientsAndCorporateInvestmentsTable_019f18c1-3f31-7cc9-8aa1-c7e33e2b82d5" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019f18c1-3f31-7ce9-96ee-77973bb658cb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7ce9-96ee-77973bb658cb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019f18c1-3f31-7ce9-96ee-77973bb658cb" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7ce9-96ee-77973bb658cb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-78cc-827b-37d1b427dc1d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019f18c1-3f31-7ce9-96ee-77973bb658cb" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-78cc-827b-37d1b427dc1d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_019f18c1-3f31-7d73-b5cb-d167b6252c13" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-78cc-827b-37d1b427dc1d" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_019f18c1-3f31-7d73-b5cb-d167b6252c13" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_019f18c1-3f31-7494-8201-9a889b2af3c3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-78cc-827b-37d1b427dc1d" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_019f18c1-3f31-7494-8201-9a889b2af3c3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_019f18c1-3f31-75b6-854a-7efd79ce7fbf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CertificatesOfDepositMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-78cc-827b-37d1b427dc1d" xlink:to="loc_us-gaap_CertificatesOfDepositMember_019f18c1-3f31-75b6-854a-7efd79ce7fbf" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_019f18c1-3f31-7ef5-b1ff-eb242df3b0f6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-78cc-827b-37d1b427dc1d" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_019f18c1-3f31-7ef5-b1ff-eb242df3b0f6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperNotIncludedWithCashAndCashEquivalentsMember_019f18c1-3f31-7112-89ae-abd35703602f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommercialPaperNotIncludedWithCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-78cc-827b-37d1b427dc1d" xlink:to="loc_us-gaap_CommercialPaperNotIncludedWithCashAndCashEquivalentsMember_019f18c1-3f31-7112-89ae-abd35703602f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDebtSecuritiesMember_019f18c1-3f31-7ffd-afe5-23ce3ecf0cba" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-78cc-827b-37d1b427dc1d" xlink:to="loc_us-gaap_OtherDebtSecuritiesMember_019f18c1-3f31-7ffd-afe5-23ce3ecf0cba" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019f18c1-3f31-763c-91dd-788a7809c9b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-73e8-b953-6e551ee24489" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019f18c1-3f31-763c-91dd-788a7809c9b0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FundsHeldForClients_019f18c1-3f31-7771-9161-e11abaa95b40" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FundsHeldForClients"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-73e8-b953-6e551ee24489" xlink:to="loc_us-gaap_FundsHeldForClients_019f18c1-3f31-7771-9161-e11abaa95b40" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_019f18c1-3f31-7f40-b517-1f36ca80d0fa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Investments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-73e8-b953-6e551ee24489" xlink:to="loc_us-gaap_Investments_019f18c1-3f31-7f40-b517-1f36ca80d0fa" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_019f18c1-3f31-7072-bfde-e155438d1b0e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-73e8-b953-6e551ee24489" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_019f18c1-3f31-7072-bfde-e155438d1b0e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_019f18c1-3f31-783d-abb5-feae522066c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-73e8-b953-6e551ee24489" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_019f18c1-3f31-783d-abb5-feae522066c0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_019f18c1-3f31-76ad-9295-f806610723da" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-73e8-b953-6e551ee24489" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_019f18c1-3f31-76ad-9295-f806610723da" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_019f18c1-3f31-7918-b805-092dc794b2e4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-73e8-b953-6e551ee24489" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_019f18c1-3f31-7918-b805-092dc794b2e4" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_019f18c1-3f31-768e-8c8a-51b181d1021b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-73e8-b953-6e551ee24489" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_019f18c1-3f31-768e-8c8a-51b181d1021b" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019f18c1-3f31-7390-937d-2420e8368b7c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-73e8-b953-6e551ee24489" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019f18c1-3f31-7390-937d-2420e8368b7c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_CreditImpairmentLoss_019f18c1-3f31-7f93-a176-247e08814067" xlink:href="pcty-20260630.xsd#pcty_CreditImpairmentLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_FundsHeldForClientsAndCorporateInvestmentsLineItems_019f18c1-3f31-73e8-b953-6e551ee24489" xlink:to="loc_pcty_CreditImpairmentLoss_019f18c1-3f31-7f93-a176-247e08814067" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/FairValueMeasurementDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#FairValueMeasurementDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/FairValueMeasurementDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019f18c1-3f31-7c39-99f9-4cbb95137ce8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019f18c1-3f31-73d7-a8f4-8f8bbf032359" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019f18c1-3f31-7c39-99f9-4cbb95137ce8" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019f18c1-3f31-73d7-a8f4-8f8bbf032359" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019f18c1-3f31-7c94-92f4-f2cb6c3e6e80" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019f18c1-3f31-73d7-a8f4-8f8bbf032359" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019f18c1-3f31-7c94-92f4-f2cb6c3e6e80" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7c94-92f4-f2cb6c3e6e80_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019f18c1-3f31-7c94-92f4-f2cb6c3e6e80" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7c94-92f4-f2cb6c3e6e80_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7268-b671-26f571e5351b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019f18c1-3f31-7c94-92f4-f2cb6c3e6e80" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7268-b671-26f571e5351b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_019f18c1-3f31-715f-8724-7359d3a7d11e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7268-b671-26f571e5351b" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_019f18c1-3f31-715f-8724-7359d3a7d11e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetBackedSecuritiesMember_019f18c1-3f31-76d9-9fd3-69e8ce0e7c23" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetBackedSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7268-b671-26f571e5351b" xlink:to="loc_us-gaap_AssetBackedSecuritiesMember_019f18c1-3f31-76d9-9fd3-69e8ce0e7c23" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_019f18c1-3f31-777e-a091-2081548690cb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CertificatesOfDepositMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7268-b671-26f571e5351b" xlink:to="loc_us-gaap_CertificatesOfDepositMember_019f18c1-3f31-777e-a091-2081548690cb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_019f18c1-3f31-7bca-86b7-b2512856ff93" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7268-b671-26f571e5351b" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_019f18c1-3f31-7bca-86b7-b2512856ff93" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperNotIncludedWithCashAndCashEquivalentsMember_019f18c1-3f31-7bde-a341-e395a7f444a7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommercialPaperNotIncludedWithCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7268-b671-26f571e5351b" xlink:to="loc_us-gaap_CommercialPaperNotIncludedWithCashAndCashEquivalentsMember_019f18c1-3f31-7bde-a341-e395a7f444a7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherDebtSecuritiesMember_019f18c1-3f31-79ac-8888-82474c586bc2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019f18c1-3f31-7268-b671-26f571e5351b" xlink:to="loc_us-gaap_OtherDebtSecuritiesMember_019f18c1-3f31-79ac-8888-82474c586bc2" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019f18c1-3f31-715c-bc35-1e7c8fb4336c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_019f18c1-3f31-73d7-a8f4-8f8bbf032359" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019f18c1-3f31-715c-bc35-1e7c8fb4336c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019f18c1-3f31-715c-bc35-1e7c8fb4336c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019f18c1-3f31-715c-bc35-1e7c8fb4336c" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019f18c1-3f31-715c-bc35-1e7c8fb4336c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019f18c1-3f31-7e95-acdf-5df7e6689059" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019f18c1-3f31-715c-bc35-1e7c8fb4336c" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019f18c1-3f31-7e95-acdf-5df7e6689059" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_019f18c1-3f31-7878-80b5-101cffc15674" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019f18c1-3f31-7e95-acdf-5df7e6689059" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_019f18c1-3f31-7878-80b5-101cffc15674" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_019f18c1-3f31-7585-a7ea-559e135996f0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019f18c1-3f31-7e95-acdf-5df7e6689059" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_019f18c1-3f31-7585-a7ea-559e135996f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_019f18c1-3f31-7fe4-8a54-35d0c928278d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019f18c1-3f31-7e95-acdf-5df7e6689059" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_019f18c1-3f31-7fe4-8a54-35d0c928278d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019f18c1-3f31-7e9f-a13f-ddb096b67d10" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019f18c1-3f31-7c39-99f9-4cbb95137ce8" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019f18c1-3f31-7e9f-a13f-ddb096b67d10" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_FundsHeldForClientsCashAndCashEquivalents_019f18c1-3f31-7fb4-bc1a-e9811c78c262" xlink:href="pcty-20260630.xsd#pcty_FundsHeldForClientsCashAndCashEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019f18c1-3f31-7c39-99f9-4cbb95137ce8" xlink:to="loc_pcty_FundsHeldForClientsCashAndCashEquivalents_019f18c1-3f31-7fb4-bc1a-e9811c78c262" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019f18c1-3f31-7c08-b5b7-1bb29710e0e2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019f18c1-3f31-7c39-99f9-4cbb95137ce8" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019f18c1-3f31-7c08-b5b7-1bb29710e0e2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019f18c1-3f31-7162-9f43-9f11ac1dc7f6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesAbstract_019f18c1-3f31-7c08-b5b7-1bb29710e0e2" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019f18c1-3f31-7162-9f43-9f11ac1dc7f6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_019f18c1-3f31-7517-b30a-6c15bf08a60c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Investments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_019f18c1-3f31-7c39-99f9-4cbb95137ce8" xlink:to="loc_us-gaap_Investments_019f18c1-3f31-7517-b30a-6c15bf08a60c" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/BusinessCombinationsDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#BusinessCombinationsDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/BusinessCombinationsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_019f18c1-3f31-78b6-839c-51ad7bb66230" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_019f18c1-3f31-7b8e-bbeb-e0fc1dd1bb0f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_019f18c1-3f31-78b6-839c-51ad7bb66230" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_019f18c1-3f31-7b8e-bbeb-e0fc1dd1bb0f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_019f18c1-3f31-72c6-9c2e-c15938bc0b4c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_019f18c1-3f31-7b8e-bbeb-e0fc1dd1bb0f" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_019f18c1-3f31-72c6-9c2e-c15938bc0b4c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019f18c1-3f31-72c6-9c2e-c15938bc0b4c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_019f18c1-3f31-72c6-9c2e-c15938bc0b4c" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019f18c1-3f31-72c6-9c2e-c15938bc0b4c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019f18c1-3f31-71fb-925e-53355c6c1ed3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_019f18c1-3f31-72c6-9c2e-c15938bc0b4c" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019f18c1-3f31-71fb-925e-53355c6c1ed3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_TraceHQ.comInc.Member_019f18c1-3f31-7c6f-aa20-5280a0b430fd" xlink:href="pcty-20260630.xsd#pcty_TraceHQ.comInc.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019f18c1-3f31-71fb-925e-53355c6c1ed3" xlink:to="loc_pcty_TraceHQ.comInc.Member_019f18c1-3f31-7c6f-aa20-5280a0b430fd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_AirbaseInc.Member_019f18c1-3f31-7f8e-985a-652ee6d9750c" xlink:href="pcty-20260630.xsd#pcty_AirbaseInc.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019f18c1-3f31-71fb-925e-53355c6c1ed3" xlink:to="loc_pcty_AirbaseInc.Member_019f18c1-3f31-7f8e-985a-652ee6d9750c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_GrayscaleLabsInc.Member_019fa5bb-86a7-7e6a-81e3-35b736d522ae" xlink:href="pcty-20260630.xsd#pcty_GrayscaleLabsInc.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019f18c1-3f31-71fb-925e-53355c6c1ed3" xlink:to="loc_pcty_GrayscaleLabsInc.Member_019fa5bb-86a7-7e6a-81e3-35b736d522ae" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019f18c1-3f31-783e-b3e7-7fa54459d98a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_019f18c1-3f31-7b8e-bbeb-e0fc1dd1bb0f" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019f18c1-3f31-783e-b3e7-7fa54459d98a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-783e-b3e7-7fa54459d98a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019f18c1-3f31-783e-b3e7-7fa54459d98a" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-783e-b3e7-7fa54459d98a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-702e-987e-b7aed4633343" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019f18c1-3f31-783e-b3e7-7fa54459d98a" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-702e-987e-b7aed4633343" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_019f18c1-3f31-7e60-a45b-7c98b2dbde7b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DevelopedTechnologyRightsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-702e-987e-b7aed4633343" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_019f18c1-3f31-7e60-a45b-7c98b2dbde7b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelationshipsMember_019f18c1-3f31-7b65-978b-6dba9f616a0a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CustomerRelationshipsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-702e-987e-b7aed4633343" xlink:to="loc_us-gaap_CustomerRelationshipsMember_019f18c1-3f31-7b65-978b-6dba9f616a0a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_019f18c1-3f31-73d6-b42d-d20fbf0d2754" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoncompeteAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-702e-987e-b7aed4633343" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_019f18c1-3f31-73d6-b42d-d20fbf0d2754" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradeNamesMember_019f18c1-3f31-7ca5-afd8-2cd669e285a9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TradeNamesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-702e-987e-b7aed4633343" xlink:to="loc_us-gaap_TradeNamesMember_019f18c1-3f31-7ca5-afd8-2cd669e285a9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_019f18c1-3f31-742f-98e2-c5f7a1a30d30" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_019f18c1-3f31-78b6-839c-51ad7bb66230" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_019f18c1-3f31-742f-98e2-c5f7a1a30d30" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_019f18c1-3f31-737e-8b77-9284959e9c95" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_019f18c1-3f31-78b6-839c-51ad7bb66230" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_019f18c1-3f31-737e-8b77-9284959e9c95" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_019f18c1-3f31-7385-a9b3-1f6be79998d3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_019f18c1-3f31-78b6-839c-51ad7bb66230" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_019f18c1-3f31-7385-a9b3-1f6be79998d3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFundsHeldForClients_019f18c1-3f31-7b26-8775-4d14af2ae441" xlink:href="pcty-20260630.xsd#pcty_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFundsHeldForClients"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_019f18c1-3f31-78b6-839c-51ad7bb66230" xlink:to="loc_pcty_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedFundsHeldForClients_019f18c1-3f31-7b26-8775-4d14af2ae441" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_019f18c1-3f31-78ee-bd2d-8a0f95fcda6d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_019f18c1-3f31-78b6-839c-51ad7bb66230" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles_019f18c1-3f31-78ee-bd2d-8a0f95fcda6d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_019f18c1-3f31-7d3c-a8a5-62050167ba82" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_019f18c1-3f31-78b6-839c-51ad7bb66230" xlink:to="loc_us-gaap_Goodwill_019f18c1-3f31-7d3c-a8a5-62050167ba82" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_BusinessCombinationRecognizedIdentifiableAssetsAcquiredOtherAssets_019f18c1-3f31-7c03-a6f4-eb8b154df860" xlink:href="pcty-20260630.xsd#pcty_BusinessCombinationRecognizedIdentifiableAssetsAcquiredOtherAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_019f18c1-3f31-78b6-839c-51ad7bb66230" xlink:to="loc_pcty_BusinessCombinationRecognizedIdentifiableAssetsAcquiredOtherAssets_019f18c1-3f31-7c03-a6f4-eb8b154df860" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedClientFundObligations_019f18c1-3f31-72ef-ab1a-2e6351754f30" xlink:href="pcty-20260630.xsd#pcty_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedClientFundObligations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_019f18c1-3f31-78b6-839c-51ad7bb66230" xlink:to="loc_pcty_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedClientFundObligations_019f18c1-3f31-72ef-ab1a-2e6351754f30" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_BusinessCombinationLiabilitiesAssumedOther_019f18c1-3f31-774a-a0d7-6b93d27c9332" xlink:href="pcty-20260630.xsd#pcty_BusinessCombinationLiabilitiesAssumedOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_019f18c1-3f31-78b6-839c-51ad7bb66230" xlink:to="loc_pcty_BusinessCombinationLiabilitiesAssumedOther_019f18c1-3f31-774a-a0d7-6b93d27c9332" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_019f18c1-3f31-7530-a9d0-c535062136bf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_019f18c1-3f31-78b6-839c-51ad7bb66230" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_019f18c1-3f31-7530-a9d0-c535062136bf" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/BusinessCombinationsUnauditedProFormaFinancialInformationAirbaseDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#BusinessCombinationsUnauditedProFormaFinancialInformationAirbaseDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/BusinessCombinationsUnauditedProFormaFinancialInformationAirbaseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_019f18c1-3f31-741b-8b48-0cddcc698a9a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_019f18c1-3f31-7a89-81f0-c70614a0abb6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_019f18c1-3f31-741b-8b48-0cddcc698a9a" xlink:to="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_019f18c1-3f31-7a89-81f0-c70614a0abb6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_019f18c1-3f31-7715-b7c7-d6d0ca6fc332" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_BusinessAcquisitionProFormaInformationNonrecurringAdjustmentsTable_019f18c1-3f31-7a89-81f0-c70614a0abb6" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_019f18c1-3f31-7715-b7c7-d6d0ca6fc332" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019f18c1-3f31-7715-b7c7-d6d0ca6fc332_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_019f18c1-3f31-7715-b7c7-d6d0ca6fc332" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019f18c1-3f31-7715-b7c7-d6d0ca6fc332_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019f18c1-3f31-7697-bfad-17f2608b403c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_019f18c1-3f31-7715-b7c7-d6d0ca6fc332" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019f18c1-3f31-7697-bfad-17f2608b403c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_AirbaseInc.Member_019f18c1-3f31-767b-a66f-02465ce8931c" xlink:href="pcty-20260630.xsd#pcty_AirbaseInc.Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_019f18c1-3f31-7697-bfad-17f2608b403c" xlink:to="loc_pcty_AirbaseInc.Member_019f18c1-3f31-767b-a66f-02465ce8931c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_019f18c1-3f31-7472-8cef-1474903cc1d4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionsProFormaRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_019f18c1-3f31-741b-8b48-0cddcc698a9a" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_019f18c1-3f31-7472-8cef-1474903cc1d4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_019f18c1-3f31-73b2-a162-eceab8d8f008" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_019f18c1-3f31-741b-8b48-0cddcc698a9a" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_019f18c1-3f31-73b2-a162-eceab8d8f008" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/PropertyandEquipmentDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#PropertyandEquipmentDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/PropertyandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019f18c1-3f31-72b8-af88-b777c0eadbe4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019f18c1-3f31-7ca7-9a54-83b925d42cd8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019f18c1-3f31-72b8-af88-b777c0eadbe4" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019f18c1-3f31-7ca7-9a54-83b925d42cd8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019f18c1-3f31-7b20-99d0-4fc357dded53" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019f18c1-3f31-7ca7-9a54-83b925d42cd8" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019f18c1-3f31-7b20-99d0-4fc357dded53" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019f18c1-3f31-7b20-99d0-4fc357dded53_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019f18c1-3f31-7b20-99d0-4fc357dded53" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019f18c1-3f31-7b20-99d0-4fc357dded53_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019f18c1-3f31-79f9-bf3e-67f7f9323555" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019f18c1-3f31-7b20-99d0-4fc357dded53" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019f18c1-3f31-79f9-bf3e-67f7f9323555" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OfficeEquipmentMember_019f18c1-3f31-7989-b8cf-2a67e6e1b135" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OfficeEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019f18c1-3f31-79f9-bf3e-67f7f9323555" xlink:to="loc_us-gaap_OfficeEquipmentMember_019f18c1-3f31-7989-b8cf-2a67e6e1b135" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComputerEquipmentMember_019f18c1-3f31-7ab6-b188-c1683f163cc1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComputerEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019f18c1-3f31-79f9-bf3e-67f7f9323555" xlink:to="loc_us-gaap_ComputerEquipmentMember_019f18c1-3f31-7ab6-b188-c1683f163cc1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_019f18c1-3f31-7480-aca8-f430be099a41" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FurnitureAndFixturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019f18c1-3f31-79f9-bf3e-67f7f9323555" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_019f18c1-3f31-7480-aca8-f430be099a41" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SoftwarePurchasedMember_019f18c1-3f31-7c6a-8244-35050c2b27ce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SoftwarePurchasedMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019f18c1-3f31-79f9-bf3e-67f7f9323555" xlink:to="loc_us-gaap_SoftwarePurchasedMember_019f18c1-3f31-7c6a-8244-35050c2b27ce" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_019f18c1-3f31-7aad-a8a1-95505c17adc4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LeaseholdImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019f18c1-3f31-79f9-bf3e-67f7f9323555" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_019f18c1-3f31-7aad-a8a1-95505c17adc4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_TimeClocksRentedByClientsMember_019f18c1-3f31-7701-ab7d-ac6b5df658c8" xlink:href="pcty-20260630.xsd#pcty_TimeClocksRentedByClientsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019f18c1-3f31-79f9-bf3e-67f7f9323555" xlink:to="loc_pcty_TimeClocksRentedByClientsMember_019f18c1-3f31-7701-ab7d-ac6b5df658c8" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_019f18c1-3f31-70a6-8d4f-c5d0ca5489f7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019f18c1-3f31-72b8-af88-b777c0eadbe4" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_019f18c1-3f31-70a6-8d4f-c5d0ca5489f7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_019f18c1-3f31-73fd-99e8-1db25c0bdf3b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019f18c1-3f31-72b8-af88-b777c0eadbe4" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_019f18c1-3f31-73fd-99e8-1db25c0bdf3b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_019f18c1-3f31-7cb0-a945-13f615b3483b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019f18c1-3f31-72b8-af88-b777c0eadbe4" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_019f18c1-3f31-7cb0-a945-13f615b3483b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_019f18c1-3f31-7212-a086-bc7216f91db4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Depreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019f18c1-3f31-72b8-af88-b777c0eadbe4" xlink:to="loc_us-gaap_Depreciation_019f18c1-3f31-7212-a086-bc7216f91db4" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/GoodwillandIntangibleAssetsDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#GoodwillandIntangibleAssetsDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/GoodwillandIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsLineItems_019f18c1-3f31-7549-a732-96cd69a6e675" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAcquiredFiniteLivedIntangibleAssetByMajorClassTable_019f18c1-3f31-7b66-9078-d0e6d0c8b6be" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfAcquiredFiniteLivedIntangibleAssetByMajorClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsLineItems_019f18c1-3f31-7549-a732-96cd69a6e675" xlink:to="loc_us-gaap_ScheduleOfAcquiredFiniteLivedIntangibleAssetByMajorClassTable_019f18c1-3f31-7b66-9078-d0e6d0c8b6be" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019f18c1-3f31-7944-9bf6-6ab1e0c70621" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAcquiredFiniteLivedIntangibleAssetByMajorClassTable_019f18c1-3f31-7b66-9078-d0e6d0c8b6be" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019f18c1-3f31-7944-9bf6-6ab1e0c70621" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-7944-9bf6-6ab1e0c70621_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019f18c1-3f31-7944-9bf6-6ab1e0c70621" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-7944-9bf6-6ab1e0c70621_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-7b71-9091-acbb42b6d12a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019f18c1-3f31-7944-9bf6-6ab1e0c70621" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-7b71-9091-acbb42b6d12a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_019f18c1-3f31-7fab-8761-060947434fac" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DevelopedTechnologyRightsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-7b71-9091-acbb42b6d12a" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_019f18c1-3f31-7fab-8761-060947434fac" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelationshipsMember_019f18c1-3f31-789e-84eb-b1f7873de8a7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CustomerRelationshipsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-7b71-9091-acbb42b6d12a" xlink:to="loc_us-gaap_CustomerRelationshipsMember_019f18c1-3f31-789e-84eb-b1f7873de8a7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NoncompeteAgreementsMember_019f18c1-3f31-747a-a1d9-47c6eee293c3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NoncompeteAgreementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-7b71-9091-acbb42b6d12a" xlink:to="loc_us-gaap_NoncompeteAgreementsMember_019f18c1-3f31-747a-a1d9-47c6eee293c3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradeNamesMember_019f18c1-3f31-7b09-babe-3cd86a00a365" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TradeNamesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019f18c1-3f31-7b71-9091-acbb42b6d12a" xlink:to="loc_us-gaap_TradeNamesMember_019f18c1-3f31-7b09-babe-3cd86a00a365" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillRollForward_019f18c1-3f31-72ec-8da3-9c71328c1732" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GoodwillRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsLineItems_019f18c1-3f31-7549-a732-96cd69a6e675" xlink:to="loc_us-gaap_GoodwillRollForward_019f18c1-3f31-72ec-8da3-9c71328c1732" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_019f18c1-3f31-7201-bf1c-0ff749be6152" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_019f18c1-3f31-72ec-8da3-9c71328c1732" xlink:to="loc_us-gaap_Goodwill_019f18c1-3f31-7201-bf1c-0ff749be6152" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillAcquiredDuringPeriod_019f18c1-3f31-770f-95a1-2cadf2d2fd0b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GoodwillAcquiredDuringPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_019f18c1-3f31-72ec-8da3-9c71328c1732" xlink:to="loc_us-gaap_GoodwillAcquiredDuringPeriod_019f18c1-3f31-770f-95a1-2cadf2d2fd0b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_019f18c1-3f31-70f7-a2e8-49fa1e13c493" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GoodwillPurchaseAccountingAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GoodwillRollForward_019f18c1-3f31-72ec-8da3-9c71328c1732" xlink:to="loc_us-gaap_GoodwillPurchaseAccountingAdjustments_019f18c1-3f31-70f7-a2e8-49fa1e13c493" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_019f18c1-3f31-7953-9eed-db9586dd4c34" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Goodwill"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_019f18c1-3f31-7f34-9d3f-9225632bdcf0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsLineItems_019f18c1-3f31-7549-a732-96cd69a6e675" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_019f18c1-3f31-7f34-9d3f-9225632bdcf0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_019f18c1-3f31-7de6-93fa-63a327a329a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_019f18c1-3f31-7f34-9d3f-9225632bdcf0" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_019f18c1-3f31-7de6-93fa-63a327a329a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_019f18c1-3f31-7aa6-9375-6169794de639" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_019f18c1-3f31-7f34-9d3f-9225632bdcf0" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_019f18c1-3f31-7aa6-9375-6169794de639" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_019f18c1-3f31-7525-9324-b5a1e954351d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_019f18c1-3f31-7f34-9d3f-9225632bdcf0" xlink:to="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife_019f18c1-3f31-7525-9324-b5a1e954351d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019f18c1-3f31-7ef8-951d-d9dfb1922f0e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_019f18c1-3f31-7f34-9d3f-9225632bdcf0" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019f18c1-3f31-7ef8-951d-d9dfb1922f0e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_019f18c1-3f31-7c55-82aa-ef18ba58c8ac" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AmortizationOfIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNetAbstract_019f18c1-3f31-7f34-9d3f-9225632bdcf0" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_019f18c1-3f31-7c55-82aa-ef18ba58c8ac" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_019f18c1-3f31-7ebe-8ea5-5672e2fb3a37" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AcquiredFiniteLivedIntangibleAssetsLineItems_019f18c1-3f31-7549-a732-96cd69a6e675" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_019f18c1-3f31-7ebe-8ea5-5672e2fb3a37" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_019f18c1-3f31-74ca-8dd3-33603b4a3478" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_019f18c1-3f31-7ebe-8ea5-5672e2fb3a37" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_019f18c1-3f31-74ca-8dd3-33603b4a3478" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_019f18c1-3f31-7022-a1e3-23e6265b42dd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_019f18c1-3f31-7ebe-8ea5-5672e2fb3a37" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_019f18c1-3f31-7022-a1e3-23e6265b42dd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_019f18c1-3f31-71d6-a930-d5ebc23ab1fe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_019f18c1-3f31-7ebe-8ea5-5672e2fb3a37" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_019f18c1-3f31-71d6-a930-d5ebc23ab1fe" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_019f18c1-3f31-729e-a84c-36c3d19ed6d0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_019f18c1-3f31-7ebe-8ea5-5672e2fb3a37" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_019f18c1-3f31-729e-a84c-36c3d19ed6d0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_019f18c1-3f31-71a7-ac51-8eb4b2a9e65f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_019f18c1-3f31-7ebe-8ea5-5672e2fb3a37" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_019f18c1-3f31-71a7-ac51-8eb4b2a9e65f" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_019f18c1-3f31-7776-aeec-9480547c6008" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsFutureAmortizationExpenseAbstract_019f18c1-3f31-7ebe-8ea5-5672e2fb3a37" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_019f18c1-3f31-7776-aeec-9480547c6008" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019f18c1-3f31-7e13-861a-61cd503c92fa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/DebtDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#DebtDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/DebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityLineItems_019f18c1-3f31-7643-ae0a-a8c988aee6b8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityTable_019f18c1-3f31-752a-a493-7de384f7d934" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019f18c1-3f31-7643-ae0a-a8c988aee6b8" xlink:to="loc_us-gaap_LineOfCreditFacilityTable_019f18c1-3f31-752a-a493-7de384f7d934" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_019f18c1-3f31-7773-af60-3b48099bbd9f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_019f18c1-3f31-752a-a493-7de384f7d934" xlink:to="loc_us-gaap_CreditFacilityAxis_019f18c1-3f31-7773-af60-3b48099bbd9f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_019f18c1-3f31-7773-af60-3b48099bbd9f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_019f18c1-3f31-7773-af60-3b48099bbd9f" xlink:to="loc_us-gaap_CreditFacilityDomain_019f18c1-3f31-7773-af60-3b48099bbd9f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_019f18c1-3f31-72b8-9dc7-eafdc771f8f7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_019f18c1-3f31-7773-af60-3b48099bbd9f" xlink:to="loc_us-gaap_CreditFacilityDomain_019f18c1-3f31-72b8-9dc7-eafdc771f8f7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_019f18c1-3f31-7ad5-9ca9-8121714ba736" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_019f18c1-3f31-72b8-9dc7-eafdc771f8f7" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_019f18c1-3f31-7ad5-9ca9-8121714ba736" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019f18c1-3f31-7dbd-b581-3bbe8a26167c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_019f18c1-3f31-752a-a493-7de384f7d934" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019f18c1-3f31-7dbd-b581-3bbe8a26167c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019f18c1-3f31-7dbd-b581-3bbe8a26167c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019f18c1-3f31-7dbd-b581-3bbe8a26167c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019f18c1-3f31-7dbd-b581-3bbe8a26167c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019f18c1-3f31-720a-bacb-6ce3b6aa2137" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019f18c1-3f31-7dbd-b581-3bbe8a26167c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019f18c1-3f31-720a-bacb-6ce3b6aa2137" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredDebtMember_019f18c1-3f31-7180-af3d-acababbf79ce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SecuredDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019f18c1-3f31-720a-bacb-6ce3b6aa2137" xlink:to="loc_us-gaap_SecuredDebtMember_019f18c1-3f31-7180-af3d-acababbf79ce" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_019f18c1-3f31-724d-a254-cf8c772031d0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_019f18c1-3f31-752a-a493-7de384f7d934" xlink:to="loc_us-gaap_VariableRateAxis_019f18c1-3f31-724d-a254-cf8c772031d0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_019f18c1-3f31-724d-a254-cf8c772031d0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_019f18c1-3f31-724d-a254-cf8c772031d0" xlink:to="loc_us-gaap_VariableRateDomain_019f18c1-3f31-724d-a254-cf8c772031d0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_019f18c1-3f31-7d1d-a4a2-ed37b034c237" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_019f18c1-3f31-724d-a254-cf8c772031d0" xlink:to="loc_us-gaap_VariableRateDomain_019f18c1-3f31-7d1d-a4a2-ed37b034c237" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember_019f18c1-3f31-7ccc-a499-e5d646c7e815" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_019f18c1-3f31-7d1d-a4a2-ed37b034c237" xlink:to="loc_us-gaap_SecuredOvernightFinancingRateSofrOvernightIndexSwapRateMember_019f18c1-3f31-7ccc-a499-e5d646c7e815" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BaseRateMember_019f18c1-3f31-78e4-9694-9bb9d8547ee2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BaseRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_019f18c1-3f31-7d1d-a4a2-ed37b034c237" xlink:to="loc_us-gaap_BaseRateMember_019f18c1-3f31-78e4-9694-9bb9d8547ee2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019f18c1-3f31-7c40-afc2-cd58101cfbac" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LineOfCreditFacilityTable_019f18c1-3f31-752a-a493-7de384f7d934" xlink:to="loc_srt_RangeAxis_019f18c1-3f31-7c40-afc2-cd58101cfbac" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3f31-7c40-afc2-cd58101cfbac_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019f18c1-3f31-7c40-afc2-cd58101cfbac" xlink:to="loc_srt_RangeMember_019f18c1-3f31-7c40-afc2-cd58101cfbac_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3f31-7821-b4cd-2e27446e7511" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019f18c1-3f31-7c40-afc2-cd58101cfbac" xlink:to="loc_srt_RangeMember_019f18c1-3f31-7821-b4cd-2e27446e7511" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019f18c1-3f31-7dfd-a1fa-41477ef8f44e" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3f31-7821-b4cd-2e27446e7511" xlink:to="loc_srt_MinimumMember_019f18c1-3f31-7dfd-a1fa-41477ef8f44e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019f18c1-3f31-74ba-9d22-ccfd492bcda6" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3f31-7821-b4cd-2e27446e7511" xlink:to="loc_srt_MaximumMember_019f18c1-3f31-74ba-9d22-ccfd492bcda6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019f18c1-3f31-7047-92f9-f61f9274cd17" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019f18c1-3f31-7643-ae0a-a8c988aee6b8" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019f18c1-3f31-7047-92f9-f61f9274cd17" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_LineOfCreditFacilityContingentIncreaseAggregateMaximumBorrowingCapacity_019f18c1-3f31-7e50-b31d-e4e2f260da94" xlink:href="pcty-20260630.xsd#pcty_LineOfCreditFacilityContingentIncreaseAggregateMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019f18c1-3f31-7643-ae0a-a8c988aee6b8" xlink:to="loc_pcty_LineOfCreditFacilityContingentIncreaseAggregateMaximumBorrowingCapacity_019f18c1-3f31-7e50-b31d-e4e2f260da94" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_019f18c1-3f31-7c40-a128-673e555d4004" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromLinesOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019f18c1-3f31-7643-ae0a-a8c988aee6b8" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_019f18c1-3f31-7c40-a128-673e555d4004" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_019f18c1-3f31-7c14-a301-574a208c3631" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfLinesOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019f18c1-3f31-7643-ae0a-a8c988aee6b8" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_019f18c1-3f31-7c14-a301-574a208c3631" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019f18c1-3f31-79fe-b2b3-8fed7f593f6b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019f18c1-3f31-7643-ae0a-a8c988aee6b8" xlink:to="loc_us-gaap_LongTermDebt_019f18c1-3f31-79fe-b2b3-8fed7f593f6b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtWeightedAverageInterestRateOverTime_019f18c1-3f31-711f-a382-fe501601bf72" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtWeightedAverageInterestRateOverTime"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019f18c1-3f31-7643-ae0a-a8c988aee6b8" xlink:to="loc_us-gaap_LongTermDebtWeightedAverageInterestRateOverTime_019f18c1-3f31-711f-a382-fe501601bf72" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_019f18c1-3f31-7adf-8134-3db77da8dbc8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019f18c1-3f31-7643-ae0a-a8c988aee6b8" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_019f18c1-3f31-7adf-8134-3db77da8dbc8" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_CreditFacilityCovenantConsolidatedLeverageRatio_019f18c1-3f31-7d8d-a496-92d0f896b6af" xlink:href="pcty-20260630.xsd#pcty_CreditFacilityCovenantConsolidatedLeverageRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019f18c1-3f31-7643-ae0a-a8c988aee6b8" xlink:to="loc_pcty_CreditFacilityCovenantConsolidatedLeverageRatio_019f18c1-3f31-7d8d-a496-92d0f896b6af" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_CreditFacilityCovenantSeniorSecuredLeverageRatio_019f18c1-3f31-71e2-8117-cd9011e15881" xlink:href="pcty-20260630.xsd#pcty_CreditFacilityCovenantSeniorSecuredLeverageRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019f18c1-3f31-7643-ae0a-a8c988aee6b8" xlink:to="loc_pcty_CreditFacilityCovenantSeniorSecuredLeverageRatio_019f18c1-3f31-71e2-8117-cd9011e15881" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_CreditFacilityCovenantConsolidatedInterestCoverageRatio_019f18c1-3f31-7673-88a4-e7aaa9562d22" xlink:href="pcty-20260630.xsd#pcty_CreditFacilityCovenantConsolidatedInterestCoverageRatio"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LineOfCreditFacilityLineItems_019f18c1-3f31-7643-ae0a-a8c988aee6b8" xlink:to="loc_pcty_CreditFacilityCovenantConsolidatedInterestCoverageRatio_019f18c1-3f31-7673-88a4-e7aaa9562d22" xlink:type="arc" order="9"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/LeasesFutureMaturitiesandLeasesThatHadNotYetCommencedDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#LeasesFutureMaturitiesandLeasesThatHadNotYetCommencedDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/LeasesFutureMaturitiesandLeasesThatHadNotYetCommencedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_019f18c1-3f31-731a-aee1-4d1ecbdef32a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationTable_019f18c1-3f31-716a-89ce-091bc406f488" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019f18c1-3f31-731a-aee1-4d1ecbdef32a" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationTable_019f18c1-3f31-716a-89ce-091bc406f488" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019f18c1-3f31-7358-8417-9c5b02d18582" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationTable_019f18c1-3f31-716a-89ce-091bc406f488" xlink:to="loc_srt_RangeAxis_019f18c1-3f31-7358-8417-9c5b02d18582" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3f31-7358-8417-9c5b02d18582_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019f18c1-3f31-7358-8417-9c5b02d18582" xlink:to="loc_srt_RangeMember_019f18c1-3f31-7358-8417-9c5b02d18582_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3f31-71a1-ad4e-cec9363689cb" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019f18c1-3f31-7358-8417-9c5b02d18582" xlink:to="loc_srt_RangeMember_019f18c1-3f31-71a1-ad4e-cec9363689cb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019f18c1-3f31-7702-80fe-ccac3579916e" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3f31-71a1-ad4e-cec9363689cb" xlink:to="loc_srt_MaximumMember_019f18c1-3f31-7702-80fe-ccac3579916e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019f18c1-3f31-7d15-9950-bf356782728c" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3f31-71a1-ad4e-cec9363689cb" xlink:to="loc_srt_MinimumMember_019f18c1-3f31-7d15-9950-bf356782728c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_019f18c1-3f31-77ed-bcb1-976443d3957c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019f18c1-3f31-731a-aee1-4d1ecbdef32a" xlink:to="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_019f18c1-3f31-77ed-bcb1-976443d3957c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_019f18c1-3f31-7c74-ba75-6f75e77139b1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_019f18c1-3f31-77ed-bcb1-976443d3957c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_019f18c1-3f31-7c74-ba75-6f75e77139b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_019f18c1-3f31-75c0-a361-00b7e4d5091a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_019f18c1-3f31-77ed-bcb1-976443d3957c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_019f18c1-3f31-75c0-a361-00b7e4d5091a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_019f18c1-3f31-703c-9dda-06aacc50dbe3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_019f18c1-3f31-77ed-bcb1-976443d3957c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_019f18c1-3f31-703c-9dda-06aacc50dbe3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_019f18c1-3f31-7485-9a2d-c6d37f3236b1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_019f18c1-3f31-77ed-bcb1-976443d3957c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_019f18c1-3f31-7485-9a2d-c6d37f3236b1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_019f18c1-3f31-773a-9b32-4cfb7cc9c761" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_019f18c1-3f31-77ed-bcb1-976443d3957c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_019f18c1-3f31-773a-9b32-4cfb7cc9c761" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_019f18c1-3f31-7606-ba24-79c28e4c0027" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_019f18c1-3f31-77ed-bcb1-976443d3957c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_019f18c1-3f31-7606-ba24-79c28e4c0027" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019f18c1-3f31-7bfa-95b5-d86fef8ce87c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_019f18c1-3f31-77ed-bcb1-976443d3957c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_019f18c1-3f31-7bfa-95b5-d86fef8ce87c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_019f18c1-3f31-7e8d-9475-0b1956a65f3b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_019f18c1-3f31-77ed-bcb1-976443d3957c" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_019f18c1-3f31-7e8d-9475-0b1956a65f3b" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiability_019f18c1-3f31-7953-bea7-332043160c11" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiability"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract_019f18c1-3f31-77ed-bcb1-976443d3957c" xlink:to="loc_us-gaap_OperatingLeaseLiability_019f18c1-3f31-7953-bea7-332043160c11" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseNotYetCommencedDescriptionAbstract_019f18c1-3f31-7797-97ad-904ef5424a73" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseNotYetCommencedDescriptionAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019f18c1-3f31-731a-aee1-4d1ecbdef32a" xlink:to="loc_us-gaap_LesseeOperatingLeaseNotYetCommencedDescriptionAbstract_019f18c1-3f31-7797-97ad-904ef5424a73" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_UndiscountedFutureMinimumLeasePaymentsOnOperatingLeasesThatHaveNotYetCommenced._019f18c1-3f31-7bc5-b5c7-c29a1bf4102f" xlink:href="pcty-20260630.xsd#pcty_UndiscountedFutureMinimumLeasePaymentsOnOperatingLeasesThatHaveNotYetCommenced."/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeOperatingLeaseNotYetCommencedDescriptionAbstract_019f18c1-3f31-7797-97ad-904ef5424a73" xlink:to="loc_pcty_UndiscountedFutureMinimumLeasePaymentsOnOperatingLeasesThatHaveNotYetCommenced._019f18c1-3f31-7bc5-b5c7-c29a1bf4102f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedTermOfContract1_019f18c1-3f31-74a0-8349-2687458e0503" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedTermOfContract1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeOperatingLeaseNotYetCommencedDescriptionAbstract_019f18c1-3f31-7797-97ad-904ef5424a73" xlink:to="loc_us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedTermOfContract1_019f18c1-3f31-74a0-8349-2687458e0503" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/IncomeTaxesSummaryofIncomeTaxExpenseDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#IncomeTaxesSummaryofIncomeTaxExpenseDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/IncomeTaxesSummaryofIncomeTaxExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pcty_IncomeTaxesLineItems_019fa6d3-41b9-7b75-ab39-79f30d5d7ed5" xlink:href="pcty-20260630.xsd#pcty_IncomeTaxesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_IncomeTaxesTable_019fa6d3-41b9-7fcb-b03a-0fc8e4638fef" xlink:href="pcty-20260630.xsd#pcty_IncomeTaxesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pcty_IncomeTaxesLineItems_019fa6d3-41b9-7b75-ab39-79f30d5d7ed5" xlink:to="loc_pcty_IncomeTaxesTable_019fa6d3-41b9-7fcb-b03a-0fc8e4638fef" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_019fa6d3-41b9-7f80-8aaa-26a2e525c073" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pcty_IncomeTaxesTable_019fa6d3-41b9-7fcb-b03a-0fc8e4638fef" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_019fa6d3-41b9-7f80-8aaa-26a2e525c073" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6d3-41b9-7f80-8aaa-26a2e525c073_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_019fa6d3-41b9-7f80-8aaa-26a2e525c073" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6d3-41b9-7f80-8aaa-26a2e525c073_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6d3-41b9-72f9-91be-1c7373c78ebb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_019fa6d3-41b9-7f80-8aaa-26a2e525c073" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6d3-41b9-72f9-91be-1c7373c78ebb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_019fa6d3-41b9-735c-9563-5b63e8435ce6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StateAndLocalJurisdictionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6d3-41b9-72f9-91be-1c7373c78ebb" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_019fa6d3-41b9-735c-9563-5b63e8435ce6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComponentsOfIncomeTaxExpenseBenefitContinuingOperationsAbstract_019fa6d3-41b9-7e57-8a4b-7685473ba28e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComponentsOfIncomeTaxExpenseBenefitContinuingOperationsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_IncomeTaxesLineItems_019fa6d3-41b9-7b75-ab39-79f30d5d7ed5" xlink:to="loc_us-gaap_ComponentsOfIncomeTaxExpenseBenefitContinuingOperationsAbstract_019fa6d3-41b9-7e57-8a4b-7685473ba28e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract_019fa6d3-41b9-7c3d-88a2-66344458b614" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfIncomeTaxExpenseBenefitContinuingOperationsAbstract_019fa6d3-41b9-7e57-8a4b-7685473ba28e" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract_019fa6d3-41b9-7c3d-88a2-66344458b614" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_019fa6d3-41b9-7afc-b244-30b1602392bc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract_019fa6d3-41b9-7c3d-88a2-66344458b614" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_019fa6d3-41b9-7afc-b244-30b1602392bc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_019fa6d3-41b9-7fcb-ab1a-a0dc632cf259" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract_019fa6d3-41b9-7c3d-88a2-66344458b614" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_019fa6d3-41b9-7fcb-ab1a-a0dc632cf259" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentForeignTaxExpenseBenefit_019fa6d3-41b9-7175-840f-95a78d2dd5e0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CurrentForeignTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefitContinuingOperationsAbstract_019fa6d3-41b9-7c3d-88a2-66344458b614" xlink:to="loc_us-gaap_CurrentForeignTaxExpenseBenefit_019fa6d3-41b9-7175-840f-95a78d2dd5e0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract_019fa6d3-41b9-78b5-bccf-3799ae080883" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfIncomeTaxExpenseBenefitContinuingOperationsAbstract_019fa6d3-41b9-7e57-8a4b-7685473ba28e" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract_019fa6d3-41b9-78b5-bccf-3799ae080883" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_019fa6d3-41b9-7020-bbc5-a556e7b8d4b9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract_019fa6d3-41b9-78b5-bccf-3799ae080883" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_019fa6d3-41b9-7020-bbc5-a556e7b8d4b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_019fa6d3-41b9-7107-9145-7c00b5a4d7f9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract_019fa6d3-41b9-78b5-bccf-3799ae080883" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_019fa6d3-41b9-7107-9145-7c00b5a4d7f9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_019fa6d3-41b9-78da-bee4-1826f76d62fa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredForeignIncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefitContinuingOperationsAbstract_019fa6d3-41b9-78b5-bccf-3799ae080883" xlink:to="loc_us-gaap_DeferredForeignIncomeTaxExpenseBenefit_019fa6d3-41b9-78da-bee4-1826f76d62fa" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019fa6d3-41b9-755b-99e3-13c567952580" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfIncomeTaxExpenseBenefitContinuingOperationsAbstract_019fa6d3-41b9-7e57-8a4b-7685473ba28e" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019fa6d3-41b9-755b-99e3-13c567952580" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/IncomeTaxesTaxRateReconciliationDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#IncomeTaxesTaxRateReconciliationDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/IncomeTaxesTaxRateReconciliationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pcty_IncomeTaxesLineItems_019fa6d9-2684-7b21-9179-71a1116273b7" xlink:href="pcty-20260630.xsd#pcty_IncomeTaxesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_IncomeTaxesTable_019fa6d9-2684-7f80-a95e-42ff107b903d" xlink:href="pcty-20260630.xsd#pcty_IncomeTaxesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pcty_IncomeTaxesLineItems_019fa6d9-2684-7b21-9179-71a1116273b7" xlink:to="loc_pcty_IncomeTaxesTable_019fa6d9-2684-7f80-a95e-42ff107b903d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_019fa6d9-2684-7da8-a368-54612eb78f5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pcty_IncomeTaxesTable_019fa6d9-2684-7f80-a95e-42ff107b903d" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_019fa6d9-2684-7da8-a368-54612eb78f5a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6d9-2684-7da8-a368-54612eb78f5a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_019fa6d9-2684-7da8-a368-54612eb78f5a" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6d9-2684-7da8-a368-54612eb78f5a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6d9-2684-7106-a646-aa693f1d8695" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_019fa6d9-2684-7da8-a368-54612eb78f5a" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6d9-2684-7106-a646-aa693f1d8695" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_019fa6d9-2684-7fd2-bb8c-fe491bd9c0ae" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StateAndLocalJurisdictionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6d9-2684-7106-a646-aa693f1d8695" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_019fa6d9-2684-7fd2-bb8c-fe491bd9c0ae" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract_019fa6d9-2684-79d5-a1cc-f6b81952653c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_IncomeTaxesLineItems_019fa6d9-2684-7b21-9179-71a1116273b7" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract_019fa6d9-2684-79d5-a1cc-f6b81952653c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_019fa6d9-2684-78ae-a556-60d48e2130bf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract_019fa6d9-2684-79d5-a1cc-f6b81952653c" xlink:to="loc_us-gaap_IncomeTaxReconciliationIncomeTaxExpenseBenefitAtFederalStatutoryIncomeTaxRate_019fa6d9-2684-78ae-a556-60d48e2130bf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_019fa6d9-2684-78da-9a01-409b784be9a1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract_019fa6d9-2684-79d5-a1cc-f6b81952653c" xlink:to="loc_us-gaap_IncomeTaxReconciliationStateAndLocalIncomeTaxes_019fa6d9-2684-78da-9a01-409b784be9a1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential_019fa6d9-2684-74d2-89bb-0dee23e78644" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract_019fa6d9-2684-79d5-a1cc-f6b81952653c" xlink:to="loc_us-gaap_IncomeTaxReconciliationForeignIncomeTaxRateDifferential_019fa6d9-2684-74d2-89bb-0dee23e78644" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectAmount_019fa6d9-2684-7458-b99e-15603b74ea28" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract_019fa6d9-2684-79d5-a1cc-f6b81952653c" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectAmount_019fa6d9-2684-7458-b99e-15603b74ea28" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxCreditsAbstract_019fa6d9-2684-7c0c-b8c4-e46486d4e54e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationTaxCreditsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract_019fa6d9-2684-79d5-a1cc-f6b81952653c" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxCreditsAbstract_019fa6d9-2684-7c0c-b8c4-e46486d4e54e" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxCreditsResearch_019fa6d9-2684-755a-9944-615f3b93ff81" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationTaxCreditsResearch"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxReconciliationTaxCreditsAbstract_019fa6d9-2684-7c0c-b8c4-e46486d4e54e" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxCreditsResearch_019fa6d9-2684-755a-9944-615f3b93ff81" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxCreditsOther_019fa6d9-2684-779b-b6fc-07b1a9b2dedc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationTaxCreditsOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxReconciliationTaxCreditsAbstract_019fa6d9-2684-7c0c-b8c4-e46486d4e54e" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxCreditsOther_019fa6d9-2684-779b-b6fc-07b1a9b2dedc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationTaxContingencies_019fa6d9-2684-7a40-bf41-4ba620c166e1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationTaxContingencies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract_019fa6d9-2684-79d5-a1cc-f6b81952653c" xlink:to="loc_us-gaap_IncomeTaxReconciliationTaxContingencies_019fa6d9-2684-7a40-bf41-4ba620c166e1" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseAbstract_019fa6d9-2684-7e72-bbf6-0e1aacb6a4cb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract_019fa6d9-2684-79d5-a1cc-f6b81952653c" xlink:to="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseAbstract_019fa6d9-2684-7e72-bbf6-0e1aacb6a4cb" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost_019fa6d9-2684-7490-9c6a-de9b43f68043" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseAbstract_019fa6d9-2684-7e72-bbf6-0e1aacb6a4cb" xlink:to="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseShareBasedCompensationCost_019fa6d9-2684-7490-9c6a-de9b43f68043" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseOther_019fa6d9-2684-7a7d-a43d-65202876d8a5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReconciliationNondeductibleExpenseOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseAbstract_019fa6d9-2684-7e72-bbf6-0e1aacb6a4cb" xlink:to="loc_us-gaap_IncomeTaxReconciliationNondeductibleExpenseOther_019fa6d9-2684-7a7d-a43d-65202876d8a5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019fa6e7-20a3-7db7-912b-339d3cf0a0f8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract_019fa6d9-2684-79d5-a1cc-f6b81952653c" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019fa6e7-20a3-7db7-912b-339d3cf0a0f8" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019fa6d9-2684-713a-9bdd-ad0e5e85c17e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefitContinuingOperationsIncomeTaxReconciliationAbstract_019fa6d9-2684-79d5-a1cc-f6b81952653c" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019fa6d9-2684-713a-9bdd-ad0e5e85c17e" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_019fa6dc-9ebb-7456-be30-efad32a9e654" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_IncomeTaxesLineItems_019fa6d9-2684-7b21-9179-71a1116273b7" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_019fa6dc-9ebb-7456-be30-efad32a9e654" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_019fa6d9-2684-79c3-8797-2d60445ef989" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_019fa6dc-9ebb-7456-be30-efad32a9e654" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_019fa6d9-2684-79c3-8797-2d60445ef989" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_019fa6d9-2684-76d1-9718-769426dd95c6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_019fa6dc-9ebb-7456-be30-efad32a9e654" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_019fa6d9-2684-76d1-9718-769426dd95c6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_019fa6d9-2684-7ed5-a062-661cbcea561b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_019fa6dc-9ebb-7456-be30-efad32a9e654" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationForeignIncomeTaxRateDifferential_019fa6d9-2684-7ed5-a062-661cbcea561b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectPercent_019fa6d9-2684-7f25-a4d4-0ad8e6ae4a80" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_019fa6dc-9ebb-7456-be30-efad32a9e654" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationCrossBorderTaxEffectPercent_019fa6d9-2684-7f25-a4d4-0ad8e6ae4a80" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_019fa6d9-2684-7b8f-8a81-7941648fb5ca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_019fa6dc-9ebb-7456-be30-efad32a9e654" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_019fa6d9-2684-7b8f-8a81-7941648fb5ca" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_019fa6d9-2684-765d-94fd-75bdb05e6c23" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_019fa6dc-9ebb-7456-be30-efad32a9e654" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_019fa6d9-2684-765d-94fd-75bdb05e6c23" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsAbstract_019fa6e0-5942-76c4-b2b3-b5c6b7bfaa8c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_019fa6dc-9ebb-7456-be30-efad32a9e654" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsAbstract_019fa6e0-5942-76c4-b2b3-b5c6b7bfaa8c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch_019fa6d9-2684-767e-a05e-d2bb75cdb878" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsAbstract_019fa6e0-5942-76c4-b2b3-b5c6b7bfaa8c" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch_019fa6d9-2684-767e-a05e-d2bb75cdb878" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsOther_019fa6d9-2684-717f-8819-699546c9b45e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsAbstract_019fa6e0-5942-76c4-b2b3-b5c6b7bfaa8c" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsOther_019fa6d9-2684-717f-8819-699546c9b45e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxContingencies_019fa6d9-2684-7eff-8739-62715be57295" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxContingencies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_019fa6dc-9ebb-7456-be30-efad32a9e654" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxContingencies_019fa6d9-2684-7eff-8739-62715be57295" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseAbstract_019fa6e3-51ea-70b0-b0f3-8cfb4f2cbf5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_019fa6dc-9ebb-7456-be30-efad32a9e654" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseAbstract_019fa6e3-51ea-70b0-b0f3-8cfb4f2cbf5a" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_019fa6d9-2684-7e5b-b400-aac306226a92" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseAbstract_019fa6e3-51ea-70b0-b0f3-8cfb4f2cbf5a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_019fa6d9-2684-7e5b-b400-aac306226a92" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther_019fa6d9-2684-7b7e-ae7f-dc2a3b2bb1ef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseAbstract_019fa6e3-51ea-70b0-b0f3-8cfb4f2cbf5a" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther_019fa6d9-2684-7b7e-ae7f-dc2a3b2bb1ef" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019fa6d9-2684-72f0-b54e-8e0b5b25357d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract_019fa6dc-9ebb-7456-be30-efad32a9e654" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_019fa6d9-2684-72f0-b54e-8e0b5b25357d" xlink:type="arc" order="10"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/IncomeTaxesIncomeTaxesPaidDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#IncomeTaxesIncomeTaxesPaidDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/IncomeTaxesIncomeTaxesPaidDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pcty_IncomeTaxesLineItems_019fa6db-6d6d-7d3d-9e26-a6a6ae35ec75" xlink:href="pcty-20260630.xsd#pcty_IncomeTaxesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_IncomeTaxesTable_019fa6db-6d6d-78eb-bc95-f7a7ef6f4c53" xlink:href="pcty-20260630.xsd#pcty_IncomeTaxesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pcty_IncomeTaxesLineItems_019fa6db-6d6d-7d3d-9e26-a6a6ae35ec75" xlink:to="loc_pcty_IncomeTaxesTable_019fa6db-6d6d-78eb-bc95-f7a7ef6f4c53" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_019fa6db-6d6d-766e-aae0-12800227446a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pcty_IncomeTaxesTable_019fa6db-6d6d-78eb-bc95-f7a7ef6f4c53" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_019fa6db-6d6d-766e-aae0-12800227446a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6db-6d6d-766e-aae0-12800227446a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_019fa6db-6d6d-766e-aae0-12800227446a" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6db-6d6d-766e-aae0-12800227446a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6db-6d6d-7d4b-bf26-80fa4ee6e8e0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_019fa6db-6d6d-766e-aae0-12800227446a" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6db-6d6d-7d4b-bf26-80fa4ee6e8e0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_019fa6db-6d6d-770e-9297-a518dbf2b98a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StateAndLocalJurisdictionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6db-6d6d-7d4b-bf26-80fa4ee6e8e0" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_019fa6db-6d6d-770e-9297-a518dbf2b98a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_stpr_CA_019fa6f2-420e-7749-b190-5b5909d9994e" xlink:href="https://xbrl.sec.gov/stpr/2026/stpr-2026.xsd#stpr_CA"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6db-6d6d-7d4b-bf26-80fa4ee6e8e0" xlink:to="loc_stpr_CA_019fa6f2-420e-7749-b190-5b5909d9994e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_stpr_FL_019fa6f2-c10f-7ed2-abd2-343a57140c3e" xlink:href="https://xbrl.sec.gov/stpr/2026/stpr-2026.xsd#stpr_FL"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6db-6d6d-7d4b-bf26-80fa4ee6e8e0" xlink:to="loc_stpr_FL_019fa6f2-c10f-7ed2-abd2-343a57140c3e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StateAndLocalTaxJurisdictionOtherMember_019fa6f3-416f-7556-8778-bec6f3180a46" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StateAndLocalTaxJurisdictionOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6db-6d6d-7d4b-bf26-80fa4ee6e8e0" xlink:to="loc_us-gaap_StateAndLocalTaxJurisdictionOtherMember_019fa6f3-416f-7556-8778-bec6f3180a46" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxesPaidNetAbstract_019fa6ef-a837-71db-9e59-adef5290fb92" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxesPaidNetAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_IncomeTaxesLineItems_019fa6db-6d6d-7d3d-9e26-a6a6ae35ec75" xlink:to="loc_us-gaap_IncomeTaxesPaidNetAbstract_019fa6ef-a837-71db-9e59-adef5290fb92" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidFederalAfterRefundReceived_019fa6f0-8698-7a8d-b522-86d68abb279f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxPaidFederalAfterRefundReceived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxesPaidNetAbstract_019fa6ef-a837-71db-9e59-adef5290fb92" xlink:to="loc_us-gaap_IncomeTaxPaidFederalAfterRefundReceived_019fa6f0-8698-7a8d-b522-86d68abb279f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived_019fa6f1-3b5f-7000-9c85-684b5a737763" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxesPaidNetAbstract_019fa6ef-a837-71db-9e59-adef5290fb92" xlink:to="loc_us-gaap_IncomeTaxPaidStateAndLocalAfterRefundReceived_019fa6f1-3b5f-7000-9c85-684b5a737763" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxPaidForeignAfterRefundReceived_019fa6f4-21e1-78e5-b5a0-4efea66c8ed4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxPaidForeignAfterRefundReceived"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxesPaidNetAbstract_019fa6ef-a837-71db-9e59-adef5290fb92" xlink:to="loc_us-gaap_IncomeTaxPaidForeignAfterRefundReceived_019fa6f4-21e1-78e5-b5a0-4efea66c8ed4" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxesPaidNet_019fa6f4-96be-7ae9-838c-7bb5545f796e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxesPaidNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxesPaidNetAbstract_019fa6ef-a837-71db-9e59-adef5290fb92" xlink:to="loc_us-gaap_IncomeTaxesPaidNet_019fa6f4-96be-7ae9-838c-7bb5545f796e" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/IncomeTaxesDeferredTaxesDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#IncomeTaxesDeferredTaxesDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/IncomeTaxesDeferredTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_pcty_IncomeTaxesLineItems_019fa6ee-bdb6-75fc-a06c-ae56098e8298" xlink:href="pcty-20260630.xsd#pcty_IncomeTaxesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_IncomeTaxesTable_019fa6ee-bdb6-76a6-81aa-15d688c6630a" xlink:href="pcty-20260630.xsd#pcty_IncomeTaxesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_pcty_IncomeTaxesLineItems_019fa6ee-bdb6-75fc-a06c-ae56098e8298" xlink:to="loc_pcty_IncomeTaxesTable_019fa6ee-bdb6-76a6-81aa-15d688c6630a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_019fa6ee-bdb6-7058-ba00-d7b6129f3033" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_pcty_IncomeTaxesTable_019fa6ee-bdb6-76a6-81aa-15d688c6630a" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_019fa6ee-bdb6-7058-ba00-d7b6129f3033" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6ee-bdb6-7058-ba00-d7b6129f3033_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_019fa6ee-bdb6-7058-ba00-d7b6129f3033" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6ee-bdb6-7058-ba00-d7b6129f3033_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6ee-bdb6-7046-8762-a2cf0f7e368a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_019fa6ee-bdb6-7058-ba00-d7b6129f3033" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6ee-bdb6-7046-8762-a2cf0f7e368a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_019fa6ee-bdb6-7e73-bc3c-c52d5cfc7ccc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StateAndLocalJurisdictionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_019fa6ee-bdb6-7046-8762-a2cf0f7e368a" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_019fa6ee-bdb6-7e73-bc3c-c52d5cfc7ccc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_019fa6ee-bdb7-7c44-9ef1-647cc176739a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_IncomeTaxesLineItems_019fa6ee-bdb6-75fc-a06c-ae56098e8298" xlink:to="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_019fa6ee-bdb7-7c44-9ef1-647cc176739a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_019fa6ee-bdb7-7f0b-a936-6336cbe36245" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComponentsOfDeferredTaxAssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_019fa6ee-bdb7-7c44-9ef1-647cc176739a" xlink:to="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_019fa6ee-bdb7-7f0b-a936-6336cbe36245" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_DeferredTaxAssetsOperatingLeaseLiabilities_019fa6ee-bdb7-7992-b3bc-7bfe8f03d2e9" xlink:href="pcty-20260630.xsd#pcty_DeferredTaxAssetsOperatingLeaseLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_019fa6ee-bdb7-7f0b-a936-6336cbe36245" xlink:to="loc_pcty_DeferredTaxAssetsOperatingLeaseLiabilities_019fa6ee-bdb7-7992-b3bc-7bfe8f03d2e9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_019fa6ee-bdb7-75c3-b74d-5c7f0a87e451" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_019fa6ee-bdb7-7f0b-a936-6336cbe36245" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_019fa6ee-bdb7-75c3-b74d-5c7f0a87e451" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_019fa6ee-bdb7-7b29-8fe7-9749ae383574" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_019fa6ee-bdb7-7f0b-a936-6336cbe36245" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_019fa6ee-bdb7-7b29-8fe7-9749ae383574" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_019fa6ee-bdb7-77de-8323-c0a338cd7313" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_019fa6ee-bdb7-7f0b-a936-6336cbe36245" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_019fa6ee-bdb7-77de-8323-c0a338cd7313" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_019fa6ee-bdb7-7b91-86dd-05fba9f36a5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwards"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_019fa6ee-bdb7-7f0b-a936-6336cbe36245" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwards_019fa6ee-bdb7-7b91-86dd-05fba9f36a5a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_DeferredTaxAssetsTaxDeferredExpenseCapitalizedResearchAndDevelopmentCosts_019fa6ee-bdb7-7581-ac90-d096bd3c5e47" xlink:href="pcty-20260630.xsd#pcty_DeferredTaxAssetsTaxDeferredExpenseCapitalizedResearchAndDevelopmentCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_019fa6ee-bdb7-7f0b-a936-6336cbe36245" xlink:to="loc_pcty_DeferredTaxAssetsTaxDeferredExpenseCapitalizedResearchAndDevelopmentCosts_019fa6ee-bdb7-7581-ac90-d096bd3c5e47" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsOther_019fa6ee-bdb7-7461-a31a-d9357ddaa976" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_019fa6ee-bdb7-7f0b-a936-6336cbe36245" xlink:to="loc_us-gaap_DeferredTaxAssetsOther_019fa6ee-bdb7-7461-a31a-d9357ddaa976" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_019fa6ee-bdb7-7105-b098-08acae778786" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAbstract_019fa6ee-bdb7-7f0b-a936-6336cbe36245" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_019fa6ee-bdb7-7105-b098-08acae778786" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_019fa6ee-bdb7-7315-a1fb-2b0e6769c57e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsValuationAllowance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_019fa6ee-bdb7-7c44-9ef1-647cc176739a" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_019fa6ee-bdb7-7315-a1fb-2b0e6769c57e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_019fa6ee-bdb7-7e42-8483-b620380b2de0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_019fa6ee-bdb7-7c44-9ef1-647cc176739a" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_019fa6ee-bdb7-7e42-8483-b620380b2de0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_019fa6ee-bdb7-78fc-8648-e379d6deb2ff" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract_019fa6ee-bdb7-7c44-9ef1-647cc176739a" xlink:to="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_019fa6ee-bdb7-78fc-8648-e379d6deb2ff" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_DeferredTaxLiabilitiesDeferredContractCosts_019fa6ee-bdb7-73e9-b2c1-a69e50832c34" xlink:href="pcty-20260630.xsd#pcty_DeferredTaxLiabilitiesDeferredContractCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_019fa6ee-bdb7-78fc-8648-e379d6deb2ff" xlink:to="loc_pcty_DeferredTaxLiabilitiesDeferredContractCosts_019fa6ee-bdb7-73e9-b2c1-a69e50832c34" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_DeferredTaxLiabilitiesOperatingLeaseRightOfUseAssets_019fa6ee-bdb7-7711-add1-a066e05d23cc" xlink:href="pcty-20260630.xsd#pcty_DeferredTaxLiabilitiesOperatingLeaseRightOfUseAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_019fa6ee-bdb7-78fc-8648-e379d6deb2ff" xlink:to="loc_pcty_DeferredTaxLiabilitiesOperatingLeaseRightOfUseAssets_019fa6ee-bdb7-7711-add1-a066e05d23cc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_019fa6ee-bdb7-7b66-8115-68423032992a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_019fa6ee-bdb7-78fc-8648-e379d6deb2ff" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesGoodwillAndIntangibleAssetsIntangibleAssets_019fa6ee-bdb7-7b66-8115-68423032992a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_019fa6ee-bdb7-7a99-af61-bca212b31ff0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_019fa6ee-bdb7-78fc-8648-e379d6deb2ff" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment_019fa6ee-bdb7-7a99-af61-bca212b31ff0" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesOther_019fa6ee-bdb7-7b21-9d15-9f7faa560026" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxLiabilitiesOther"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_019fa6ee-bdb7-78fc-8648-e379d6deb2ff" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesOther_019fa6ee-bdb7-7b21-9d15-9f7faa560026" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_019fa6ee-bdb7-7131-8b89-af86f0437380" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_019fa6ee-bdb7-78fc-8648-e379d6deb2ff" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_019fa6ee-bdb7-7131-8b89-af86f0437380" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_019fa6ee-bdb7-7348-833b-63c1d0f15fb9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredTaxLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract_019fa6ee-bdb7-78fc-8648-e379d6deb2ff" xlink:to="loc_us-gaap_DeferredTaxLiabilities_019fa6ee-bdb7-7348-833b-63c1d0f15fb9" xlink:type="arc" order="7"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/IncomeTaxesCarryforwardsDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#IncomeTaxesCarryforwardsDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/IncomeTaxesCarryforwardsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLossCarryforwardsLineItems_019f18c1-3fff-7d41-93af-8ced5eced0ce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLossCarryforwardsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardTable_019f18c1-3fff-7970-8c83-6138c4a93c33" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TaxCreditCarryforwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_019f18c1-3fff-7d41-93af-8ced5eced0ce" xlink:to="loc_us-gaap_TaxCreditCarryforwardTable_019f18c1-3fff-7970-8c83-6138c4a93c33" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardAxis_019f18c1-3fff-752b-9a56-cebdf1aab517" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TaxCreditCarryforwardAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_TaxCreditCarryforwardTable_019f18c1-3fff-7970-8c83-6138c4a93c33" xlink:to="loc_us-gaap_TaxCreditCarryforwardAxis_019f18c1-3fff-752b-9a56-cebdf1aab517" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardNameDomain_019f18c1-3fff-752b-9a56-cebdf1aab517_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TaxCreditCarryforwardNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_TaxCreditCarryforwardAxis_019f18c1-3fff-752b-9a56-cebdf1aab517" xlink:to="loc_us-gaap_TaxCreditCarryforwardNameDomain_019f18c1-3fff-752b-9a56-cebdf1aab517_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardNameDomain_019f18c1-3fff-710d-9947-42fa942702b1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TaxCreditCarryforwardNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_TaxCreditCarryforwardAxis_019f18c1-3fff-752b-9a56-cebdf1aab517" xlink:to="loc_us-gaap_TaxCreditCarryforwardNameDomain_019f18c1-3fff-710d-9947-42fa942702b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_ResearchAndDevelopmentAndOtherMember_019f18c1-3fff-746d-b4ef-e8306dd4d8c0" xlink:href="pcty-20260630.xsd#pcty_ResearchAndDevelopmentAndOtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TaxCreditCarryforwardNameDomain_019f18c1-3fff-710d-9947-42fa942702b1" xlink:to="loc_pcty_ResearchAndDevelopmentAndOtherMember_019f18c1-3fff-746d-b4ef-e8306dd4d8c0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityAxis_019f18c1-3fff-7d4e-b2b0-4f3b532b0d4f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxAuthorityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_TaxCreditCarryforwardTable_019f18c1-3fff-7970-8c83-6138c4a93c33" xlink:to="loc_us-gaap_IncomeTaxAuthorityAxis_019f18c1-3fff-7d4e-b2b0-4f3b532b0d4f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_019f18c1-3fff-7d4e-b2b0-4f3b532b0d4f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_019f18c1-3fff-7d4e-b2b0-4f3b532b0d4f" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_019f18c1-3fff-7d4e-b2b0-4f3b532b0d4f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxAuthorityDomain_019f18c1-3fff-7464-b2c6-78a45e7fe10e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxAuthorityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeTaxAuthorityAxis_019f18c1-3fff-7d4e-b2b0-4f3b532b0d4f" xlink:to="loc_us-gaap_IncomeTaxAuthorityDomain_019f18c1-3fff-7464-b2c6-78a45e7fe10e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DomesticCountryMember_019f18c1-3fff-79be-b035-f19f200c450c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DomesticCountryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_019f18c1-3fff-7464-b2c6-78a45e7fe10e" xlink:to="loc_us-gaap_DomesticCountryMember_019f18c1-3fff-79be-b035-f19f200c450c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StateAndLocalJurisdictionMember_019f18c1-3fff-72a2-93f9-addd81bf9445" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StateAndLocalJurisdictionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_019f18c1-3fff-7464-b2c6-78a45e7fe10e" xlink:to="loc_us-gaap_StateAndLocalJurisdictionMember_019f18c1-3fff-72a2-93f9-addd81bf9445" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_FederalAndStateAuthoritiesMember_019f18c1-3fff-7e2c-8a0e-c9bbeb56dd51" xlink:href="pcty-20260630.xsd#pcty_FederalAndStateAuthoritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeTaxAuthorityDomain_019f18c1-3fff-7464-b2c6-78a45e7fe10e" xlink:to="loc_pcty_FederalAndStateAuthoritiesMember_019f18c1-3fff-7e2c-8a0e-c9bbeb56dd51" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019f18c1-3fff-7ec3-9bc7-b493e7e4a759" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_TaxCreditCarryforwardTable_019f18c1-3fff-7970-8c83-6138c4a93c33" xlink:to="loc_srt_RangeAxis_019f18c1-3fff-7ec3-9bc7-b493e7e4a759" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3fff-7ec3-9bc7-b493e7e4a759_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019f18c1-3fff-7ec3-9bc7-b493e7e4a759" xlink:to="loc_srt_RangeMember_019f18c1-3fff-7ec3-9bc7-b493e7e4a759_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3fff-780e-b774-c41232712e9d" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019f18c1-3fff-7ec3-9bc7-b493e7e4a759" xlink:to="loc_srt_RangeMember_019f18c1-3fff-780e-b774-c41232712e9d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019f18c1-3fff-7a3f-9035-2997e7054201" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3fff-780e-b774-c41232712e9d" xlink:to="loc_srt_MaximumMember_019f18c1-3fff-7a3f-9035-2997e7054201" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019f18c1-3fff-7f76-b025-ee27406ce42e" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3fff-780e-b774-c41232712e9d" xlink:to="loc_srt_MinimumMember_019f18c1-3fff-7f76-b025-ee27406ce42e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLossCarryforwards_019f18c1-3fff-7b7e-b793-58caf6c0cd4e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLossCarryforwards"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_019f18c1-3fff-7d41-93af-8ced5eced0ce" xlink:to="loc_us-gaap_OperatingLossCarryforwards_019f18c1-3fff-7b7e-b793-58caf6c0cd4e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_OperatingLossCarryforwardsSubjectToExpiration_019f18c1-3fff-7e3e-8716-953b4c38351e" xlink:href="pcty-20260630.xsd#pcty_OperatingLossCarryforwardsSubjectToExpiration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_019f18c1-3fff-7d41-93af-8ced5eced0ce" xlink:to="loc_pcty_OperatingLossCarryforwardsSubjectToExpiration_019f18c1-3fff-7e3e-8716-953b4c38351e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLossCarryforwardsExpirationDate_019f18c1-3fff-74ea-a5a5-d6798a33a7a6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLossCarryforwardsExpirationDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_019f18c1-3fff-7d41-93af-8ced5eced0ce" xlink:to="loc_us-gaap_OperatingLossCarryforwardsExpirationDate_019f18c1-3fff-74ea-a5a5-d6798a33a7a6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_OperatingLossCarryforwardsNotSubjectToExpiration_019f18c1-3fff-73a3-aeac-94bdcee1d6bb" xlink:href="pcty-20260630.xsd#pcty_OperatingLossCarryforwardsNotSubjectToExpiration"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_019f18c1-3fff-7d41-93af-8ced5eced0ce" xlink:to="loc_pcty_OperatingLossCarryforwardsNotSubjectToExpiration_019f18c1-3fff-73a3-aeac-94bdcee1d6bb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_TaxCreditCarryforwardAbstract_019f18c1-3fff-7e2a-a8fa-57cdcdf9cd02" xlink:href="pcty-20260630.xsd#pcty_TaxCreditCarryforwardAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_019f18c1-3fff-7d41-93af-8ced5eced0ce" xlink:to="loc_pcty_TaxCreditCarryforwardAbstract_019f18c1-3fff-7e2a-a8fa-57cdcdf9cd02" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_TaxCreditCarryforwardNetAmount_019f18c1-3fff-799b-8f22-2807ff6ceccf" xlink:href="pcty-20260630.xsd#pcty_TaxCreditCarryforwardNetAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_TaxCreditCarryforwardAbstract_019f18c1-3fff-7e2a-a8fa-57cdcdf9cd02" xlink:to="loc_pcty_TaxCreditCarryforwardNetAmount_019f18c1-3fff-799b-8f22-2807ff6ceccf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TaxCreditCarryforwardExpirationDate_019f18c1-3fff-7bdf-807c-d3b82607e254" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TaxCreditCarryforwardExpirationDate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_TaxCreditCarryforwardAbstract_019f18c1-3fff-7e2a-a8fa-57cdcdf9cd02" xlink:to="loc_us-gaap_TaxCreditCarryforwardExpirationDate_019f18c1-3fff-7bdf-807c-d3b82607e254" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReconciliationOfUnrecognizedTaxBenefitsExcludingAmountsPertainingToExaminedTaxReturnsRollForward_019f18c1-3fff-7112-9aae-8ad5f53c5467" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReconciliationOfUnrecognizedTaxBenefitsExcludingAmountsPertainingToExaminedTaxReturnsRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_019f18c1-3fff-7d41-93af-8ced5eced0ce" xlink:to="loc_us-gaap_ReconciliationOfUnrecognizedTaxBenefitsExcludingAmountsPertainingToExaminedTaxReturnsRollForward_019f18c1-3fff-7112-9aae-8ad5f53c5467" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefits_019f18c1-3fff-723a-a2fb-f208a72b6c33" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrecognizedTaxBenefits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReconciliationOfUnrecognizedTaxBenefitsExcludingAmountsPertainingToExaminedTaxReturnsRollForward_019f18c1-3fff-7112-9aae-8ad5f53c5467" xlink:to="loc_us-gaap_UnrecognizedTaxBenefits_019f18c1-3fff-723a-a2fb-f208a72b6c33" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions_019f18c1-3fff-7439-b966-20b5b89206a8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReconciliationOfUnrecognizedTaxBenefitsExcludingAmountsPertainingToExaminedTaxReturnsRollForward_019f18c1-3fff-7112-9aae-8ad5f53c5467" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions_019f18c1-3fff-7439-b966-20b5b89206a8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromPriorPeriodTaxPositions_019f18c1-3fff-7917-8395-318a0f299e3e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromPriorPeriodTaxPositions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ReconciliationOfUnrecognizedTaxBenefitsExcludingAmountsPertainingToExaminedTaxReturnsRollForward_019f18c1-3fff-7112-9aae-8ad5f53c5467" xlink:to="loc_us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromPriorPeriodTaxPositions_019f18c1-3fff-7917-8395-318a0f299e3e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecognizedTaxBenefits_019f18c1-3fff-73cf-baf4-2e4606713693" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrecognizedTaxBenefits"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_StatuteOfLimitationsOnFilings_019f18c1-3fff-71b6-9062-ff1da666cc3e" xlink:href="pcty-20260630.xsd#pcty_StatuteOfLimitationsOnFilings"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingLossCarryforwardsLineItems_019f18c1-3fff-7d41-93af-8ced5eced0ce" xlink:to="loc_pcty_StatuteOfLimitationsOnFilings_019f18c1-3fff-71b6-9062-ff1da666cc3e" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/StockholdersEquityDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#StockholdersEquityDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/StockholdersEquityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiarySaleOfStockLineItems_019f18c1-3fff-7267-add4-1a8dcdb80158" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsidiarySaleOfStockLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiaryOrEquityMethodInvesteeSaleOfStockBySubsidiaryOrEquityInvesteeTable_019f18c1-3fff-765f-abab-f4229826b7da" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubsidiaryOrEquityMethodInvesteeSaleOfStockBySubsidiaryOrEquityInvesteeTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SubsidiarySaleOfStockLineItems_019f18c1-3fff-7267-add4-1a8dcdb80158" xlink:to="loc_us-gaap_SubsidiaryOrEquityMethodInvesteeSaleOfStockBySubsidiaryOrEquityInvesteeTable_019f18c1-3fff-765f-abab-f4229826b7da" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_019f18c1-3fff-76c6-8276-89c4ec00813f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_SubsidiaryOrEquityMethodInvesteeSaleOfStockBySubsidiaryOrEquityInvesteeTable_019f18c1-3fff-765f-abab-f4229826b7da" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_019f18c1-3fff-76c6-8276-89c4ec00813f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019f18c1-3fff-76c6-8276-89c4ec00813f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019f18c1-3fff-76c6-8276-89c4ec00813f" xlink:to="loc_us-gaap_EquityComponentDomain_019f18c1-3fff-76c6-8276-89c4ec00813f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019f18c1-3fff-7f2f-bab4-a637b41f20f4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019f18c1-3fff-76c6-8276-89c4ec00813f" xlink:to="loc_us-gaap_EquityComponentDomain_019f18c1-3fff-7f2f-bab4-a637b41f20f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_019f18c1-3fff-7d4c-bad0-8ff61de089d8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019f18c1-3fff-7f2f-bab4-a637b41f20f4" xlink:to="loc_us-gaap_CommonStockMember_019f18c1-3fff-7d4c-bad0-8ff61de089d8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_CommonStockNumberOfVotesPerShare_019f18c1-3fff-7d46-9fce-ec81d4fd8c18" xlink:href="pcty-20260630.xsd#pcty_CommonStockNumberOfVotesPerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsidiarySaleOfStockLineItems_019f18c1-3fff-7267-add4-1a8dcdb80158" xlink:to="loc_pcty_CommonStockNumberOfVotesPerShare_019f18c1-3fff-7d46-9fce-ec81d4fd8c18" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StockRepurchaseProgramAuthorizedAmount1_019f18c1-3fff-7279-b2d0-123e386c724f" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_StockRepurchaseProgramAuthorizedAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsidiarySaleOfStockLineItems_019f18c1-3fff-7267-add4-1a8dcdb80158" xlink:to="loc_srt_StockRepurchaseProgramAuthorizedAmount1_019f18c1-3fff-7279-b2d0-123e386c724f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_019f18c1-3fff-7762-a7dd-cdfe6088c3da" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockRepurchasedAndRetiredDuringPeriodShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsidiarySaleOfStockLineItems_019f18c1-3fff-7267-add4-1a8dcdb80158" xlink:to="loc_us-gaap_StockRepurchasedAndRetiredDuringPeriodShares_019f18c1-3fff-7762-a7dd-cdfe6088c3da" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019f18c1-3fff-7568-9b69-53f2e1821ead" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsidiarySaleOfStockLineItems_019f18c1-3fff-7267-add4-1a8dcdb80158" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019f18c1-3fff-7568-9b69-53f2e1821ead" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_019f8666-ea3a-7569-9384-f9dc06fcbc88" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SubsidiarySaleOfStockLineItems_019f18c1-3fff-7267-add4-1a8dcdb80158" xlink:to="loc_us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1_019f8666-ea3a-7569-9384-f9dc06fcbc88" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/BenefitPlansGeneralInformationDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#BenefitPlansGeneralInformationDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/BenefitPlansGeneralInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-73be-be06-78620b31cbf2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-7235-8fb0-a70ed6ad3e38" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-73be-be06-78620b31cbf2" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-7235-8fb0-a70ed6ad3e38" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_019f18c1-3fff-781e-aa5d-95b1ebd12feb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-7235-8fb0-a70ed6ad3e38" xlink:to="loc_us-gaap_PlanNameAxis_019f18c1-3fff-781e-aa5d-95b1ebd12feb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_019f18c1-3fff-781e-aa5d-95b1ebd12feb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_019f18c1-3fff-781e-aa5d-95b1ebd12feb" xlink:to="loc_us-gaap_PlanNameDomain_019f18c1-3fff-781e-aa5d-95b1ebd12feb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_019f18c1-3fff-73ae-96c1-77be966bd105" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_019f18c1-3fff-781e-aa5d-95b1ebd12feb" xlink:to="loc_us-gaap_PlanNameDomain_019f18c1-3fff-73ae-96c1-77be966bd105" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_EquityIncentivePlanMember_019f18c1-3fff-7126-9a5a-3cc3a4afc6e8" xlink:href="pcty-20260630.xsd#pcty_EquityIncentivePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_019f18c1-3fff-73ae-96c1-77be966bd105" xlink:to="loc_pcty_EquityIncentivePlanMember_019f18c1-3fff-7126-9a5a-3cc3a4afc6e8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_A2014EquityIncentivePlanMember_019f18c1-3fff-7930-a6a3-00f10e82b270" xlink:href="pcty-20260630.xsd#pcty_A2014EquityIncentivePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_019f18c1-3fff-73ae-96c1-77be966bd105" xlink:to="loc_pcty_A2014EquityIncentivePlanMember_019f18c1-3fff-7930-a6a3-00f10e82b270" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized_019f867b-80f4-732e-a9c3-78582f3ef583" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-73be-be06-78620b31cbf2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfAdditionalSharesAuthorized_019f867b-80f4-732e-a9c3-78582f3ef583" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_019f18c1-3fff-778f-9bd9-008d5c15b8e7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-73be-be06-78620b31cbf2" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_019f18c1-3fff-778f-9bd9-008d5c15b8e7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_019f18c1-3fff-72a0-89f9-317f0162118d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-73be-be06-78620b31cbf2" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_019f18c1-3fff-72a0-89f9-317f0162118d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfCapitalSharesReservedForIssuance_019f18c1-3fff-752c-894a-f0c370aeec4f" xlink:href="pcty-20260630.xsd#pcty_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfCapitalSharesReservedForIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-73be-be06-78620b31cbf2" xlink:to="loc_pcty_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfCapitalSharesReservedForIssuance_019f18c1-3fff-752c-894a-f0c370aeec4f" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/BenefitPlansCompensationExpenseDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#BenefitPlansCompensationExpenseDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/BenefitPlansCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019f18c1-3fff-73fc-a748-f929b7876de8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_019f18c1-3fff-75de-85a7-c4c04a1d3ad0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019f18c1-3fff-73fc-a748-f929b7876de8" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_019f18c1-3fff-75de-85a7-c4c04a1d3ad0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_019f18c1-3fff-7331-b533-9dea1bcbc1d0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_019f18c1-3fff-75de-85a7-c4c04a1d3ad0" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_019f18c1-3fff-7331-b533-9dea1bcbc1d0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_019f18c1-3fff-7331-b533-9dea1bcbc1d0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_019f18c1-3fff-7331-b533-9dea1bcbc1d0" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_019f18c1-3fff-7331-b533-9dea1bcbc1d0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_019f18c1-3fff-7590-bc95-11145f092551" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_019f18c1-3fff-7331-b533-9dea1bcbc1d0" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_019f18c1-3fff-7590-bc95-11145f092551" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementOfIncomeLocationBalanceAxis_019f18c1-3fff-7836-a5cb-191e043909b1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementOfIncomeLocationBalanceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_019f18c1-3fff-75de-85a7-c4c04a1d3ad0" xlink:to="loc_us-gaap_StatementOfIncomeLocationBalanceAxis_019f18c1-3fff-7836-a5cb-191e043909b1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019f18c1-3fff-7abe-8bfe-572084e85a8a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019f18c1-3fff-73fc-a748-f929b7876de8" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019f18c1-3fff-7abe-8bfe-572084e85a8a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_019f18c1-3fff-7770-ac4c-b185df2bcb5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019f18c1-3fff-73fc-a748-f929b7876de8" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_019f18c1-3fff-7770-ac4c-b185df2bcb5a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedAbstract_019f18c1-3fff-7c83-9a03-d0e512d9cb23" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019f18c1-3fff-73fc-a748-f929b7876de8" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedAbstract_019f18c1-3fff-7c83-9a03-d0e512d9cb23" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_019f18c1-3fff-74b1-9ff7-18e1788ad720" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedAbstract_019f18c1-3fff-7c83-9a03-d0e512d9cb23" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_019f18c1-3fff-74b1-9ff7-18e1788ad720" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_019f18c1-3fff-7d9a-99fd-e1986937c66f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedAbstract_019f18c1-3fff-7c83-9a03-d0e512d9cb23" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_019f18c1-3fff-7d9a-99fd-e1986937c66f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_ExcessIncomeTaxBenefitsForStockBasedCompensationArrangementsAbstract_019f18c1-3fff-73bf-a598-06785d71be98" xlink:href="pcty-20260630.xsd#pcty_ExcessIncomeTaxBenefitsForStockBasedCompensationArrangementsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019f18c1-3fff-73fc-a748-f929b7876de8" xlink:to="loc_pcty_ExcessIncomeTaxBenefitsForStockBasedCompensationArrangementsAbstract_019f18c1-3fff-73bf-a598-06785d71be98" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_019f18c1-3fff-723a-be05-5e12a8419f21" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_ExcessIncomeTaxBenefitsForStockBasedCompensationArrangementsAbstract_019f18c1-3fff-73bf-a598-06785d71be98" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_019f18c1-3fff-723a-be05-5e12a8419f21" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/BenefitPlansCompensationExpenseDetails_1" xlink:type="simple" xlink:href="pcty-20260630.xsd#BenefitPlansCompensationExpenseDetails_1"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/BenefitPlansCompensationExpenseDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019f18c1-3fff-73fc-a748-f929b7876de8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_019f18c1-3fff-75de-85a7-c4c04a1d3ad0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019f18c1-3fff-73fc-a748-f929b7876de8" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_019f18c1-3fff-75de-85a7-c4c04a1d3ad0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeAxis_019f18c1-3fff-7331-b533-9dea1bcbc1d0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetirementPlanTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_019f18c1-3fff-75de-85a7-c4c04a1d3ad0" xlink:to="loc_us-gaap_RetirementPlanTypeAxis_019f18c1-3fff-7331-b533-9dea1bcbc1d0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_019f18c1-3fff-7331-b533-9dea1bcbc1d0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_019f18c1-3fff-7331-b533-9dea1bcbc1d0" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_019f18c1-3fff-7331-b533-9dea1bcbc1d0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetirementPlanTypeDomain_019f18c1-3fff-7590-bc95-11145f092551" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetirementPlanTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RetirementPlanTypeAxis_019f18c1-3fff-7331-b533-9dea1bcbc1d0" xlink:to="loc_us-gaap_RetirementPlanTypeDomain_019f18c1-3fff-7590-bc95-11145f092551" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019f18c1-3fff-7abe-8bfe-572084e85a8a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019f18c1-3fff-73fc-a748-f929b7876de8" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019f18c1-3fff-7abe-8bfe-572084e85a8a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_019f18c1-3fff-7770-ac4c-b185df2bcb5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019f18c1-3fff-73fc-a748-f929b7876de8" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsCapitalizedAmount_019f18c1-3fff-7770-ac4c-b185df2bcb5a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedAbstract_019f18c1-3fff-7c83-9a03-d0e512d9cb23" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019f18c1-3fff-73fc-a748-f929b7876de8" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedAbstract_019f18c1-3fff-7c83-9a03-d0e512d9cb23" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_019f18c1-3fff-74b1-9ff7-18e1788ad720" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedAbstract_019f18c1-3fff-7c83-9a03-d0e512d9cb23" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedShareBasedAwardsOtherThanOptions_019f18c1-3fff-74b1-9ff7-18e1788ad720" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_019f18c1-3fff-7d9a-99fd-e1986937c66f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedAbstract_019f18c1-3fff-7c83-9a03-d0e512d9cb23" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_019f18c1-3fff-7d9a-99fd-e1986937c66f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_ExcessIncomeTaxBenefitsForStockBasedCompensationArrangementsAbstract_019f18c1-3fff-73bf-a598-06785d71be98" xlink:href="pcty-20260630.xsd#pcty_ExcessIncomeTaxBenefitsForStockBasedCompensationArrangementsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_019f18c1-3fff-73fc-a748-f929b7876de8" xlink:to="loc_pcty_ExcessIncomeTaxBenefitsForStockBasedCompensationArrangementsAbstract_019f18c1-3fff-73bf-a598-06785d71be98" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_019f18c1-3fff-723a-be05-5e12a8419f21" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_pcty_ExcessIncomeTaxBenefitsForStockBasedCompensationArrangementsAbstract_019f18c1-3fff-73bf-a598-06785d71be98" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationTaxBenefitFromCompensationExpense_019f18c1-3fff-723a-be05-5e12a8419f21" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/BenefitPlansStockOptionActivityDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#BenefitPlansStockOptionActivityDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/BenefitPlansStockOptionActivityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-722b-b9fc-b432fbc0cecd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-774b-9ef5-8f78f1cd7dfd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-722b-b9fc-b432fbc0cecd" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-774b-9ef5-8f78f1cd7dfd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-7dbf-871b-433fd71d0108" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-774b-9ef5-8f78f1cd7dfd" xlink:to="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-7dbf-871b-433fd71d0108" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7dbf-871b-433fd71d0108_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-7dbf-871b-433fd71d0108" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7dbf-871b-433fd71d0108_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7dfe-a292-9ec2e3f55467" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-7dbf-871b-433fd71d0108" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7dfe-a292-9ec2e3f55467" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_EmployeeAndNonemployeeStockOptionsMember_019f18c1-3fff-7b7f-b12a-c53d522b6f8d" xlink:href="pcty-20260630.xsd#pcty_EmployeeAndNonemployeeStockOptionsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7dfe-a292-9ec2e3f55467" xlink:to="loc_pcty_EmployeeAndNonemployeeStockOptionsMember_019f18c1-3fff-7b7f-b12a-c53d522b6f8d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019f18c1-3fff-7016-9edf-9fc0e108707e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-722b-b9fc-b432fbc0cecd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019f18c1-3fff-7016-9edf-9fc0e108707e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_019f18c1-3fff-7942-a8d8-aa8262d69982" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019f18c1-3fff-7016-9edf-9fc0e108707e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_019f18c1-3fff-7942-a8d8-aa8262d69982" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_019f8b7a-4179-7cfe-93a0-937055f9ec40" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019f18c1-3fff-7016-9edf-9fc0e108707e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsGrantsInPeriodGross_019f8b7a-4179-7cfe-93a0-937055f9ec40" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_019f18c1-3fff-73d3-88e7-8bf085381147" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019f18c1-3fff-7016-9edf-9fc0e108707e" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_019f18c1-3fff-73d3-88e7-8bf085381147" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_019f18c1-3fff-7201-86cd-1ca39bd91c4d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract_019f18c1-3fff-778c-a3d1-0d417dccaeab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-722b-b9fc-b432fbc0cecd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract_019f18c1-3fff-778c-a3d1-0d417dccaeab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_019f18c1-3fff-7452-90a2-5b12d8150fb9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsAdditionalDisclosuresAbstract_019f18c1-3fff-778c-a3d1-0d417dccaeab" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_019f18c1-3fff-7452-90a2-5b12d8150fb9" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/BenefitPlansRSUActivityDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#BenefitPlansRSUActivityDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/BenefitPlansRSUActivityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7fd5-ae38-f83d0a7c9fa6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-781a-af07-74fd8e325992" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7fd5-ae38-f83d0a7c9fa6" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-781a-af07-74fd8e325992" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-7b61-9ce8-fc13add00523" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-781a-af07-74fd8e325992" xlink:to="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-7b61-9ce8-fc13add00523" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7b61-9ce8-fc13add00523_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-7b61-9ce8-fc13add00523" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7b61-9ce8-fc13add00523_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7726-b251-57014817b52b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-7b61-9ce8-fc13add00523" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7726-b251-57014817b52b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_019f18c1-3fff-78b9-b5eb-a1730bb8752f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7726-b251-57014817b52b" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_019f18c1-3fff-78b9-b5eb-a1730bb8752f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019f18c1-3fff-735d-a833-4e6688f7ae5e" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-781a-af07-74fd8e325992" xlink:to="loc_srt_RangeAxis_019f18c1-3fff-735d-a833-4e6688f7ae5e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3fff-735d-a833-4e6688f7ae5e_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019f18c1-3fff-735d-a833-4e6688f7ae5e" xlink:to="loc_srt_RangeMember_019f18c1-3fff-735d-a833-4e6688f7ae5e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3fff-7702-9d6c-566c40ddda7a" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019f18c1-3fff-735d-a833-4e6688f7ae5e" xlink:to="loc_srt_RangeMember_019f18c1-3fff-7702-9d6c-566c40ddda7a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019f18c1-3fff-7c7f-86cb-bb265182962a" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3fff-7702-9d6c-566c40ddda7a" xlink:to="loc_srt_MinimumMember_019f18c1-3fff-7c7f-86cb-bb265182962a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019f18c1-3fff-75dc-807e-1e1193c178aa" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3fff-7702-9d6c-566c40ddda7a" xlink:to="loc_srt_MaximumMember_019f18c1-3fff-75dc-807e-1e1193c178aa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_019f18c1-3fff-73b9-b0d1-e8a081aefa69" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7fd5-ae38-f83d0a7c9fa6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_019f18c1-3fff-73b9-b0d1-e8a081aefa69" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-760b-8520-5a9adec16f4a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7fd5-ae38-f83d0a7c9fa6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-760b-8520-5a9adec16f4a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_019f18c1-3fff-7bc4-8193-fd4965ef46e4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-760b-8520-5a9adec16f4a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_019f18c1-3fff-7bc4-8193-fd4965ef46e4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_019f18c1-3fff-7aa8-9abb-4d305b3b4f3a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-760b-8520-5a9adec16f4a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_019f18c1-3fff-7aa8-9abb-4d305b3b4f3a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_019f18c1-3fff-7250-a8b3-632d08664bd9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-760b-8520-5a9adec16f4a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_019f18c1-3fff-7250-a8b3-632d08664bd9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_019f18c1-3fff-78e4-abe7-4c23377579f4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-760b-8520-5a9adec16f4a" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_019f18c1-3fff-78e4-abe7-4c23377579f4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_019f18c1-3fff-7a82-bd75-5d43ad1fffb4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-7335-bf57-b8499d529132" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7fd5-ae38-f83d0a7c9fa6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-7335-bf57-b8499d529132" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_019f18c1-3fff-7f99-86b0-6f8fe44bdfbe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-7335-bf57-b8499d529132" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_019f18c1-3fff-7f99-86b0-6f8fe44bdfbe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_019f18c1-3fff-78cf-a37b-745814c52dc5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-7335-bf57-b8499d529132" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_019f18c1-3fff-78cf-a37b-745814c52dc5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_019f18c1-3fff-7558-8b81-de5a7b247dac" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-7335-bf57-b8499d529132" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_019f18c1-3fff-7558-8b81-de5a7b247dac" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_019f18c1-3fff-7071-a8f6-cd4208fbbb99" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-7335-bf57-b8499d529132" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_019f18c1-3fff-7071-a8f6-cd4208fbbb99" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_019f18c1-3fff-78b0-8e7d-e305d24fd39c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/BenefitPlansPSUActivityDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#BenefitPlansPSUActivityDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/BenefitPlansPSUActivityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7a6c-8d28-996b32be1347" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-732d-bddd-0f55cdb0aa2f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7a6c-8d28-996b32be1347" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-732d-bddd-0f55cdb0aa2f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-7cbf-9590-19473ce4f0b8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-732d-bddd-0f55cdb0aa2f" xlink:to="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-7cbf-9590-19473ce4f0b8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7cbf-9590-19473ce4f0b8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-7cbf-9590-19473ce4f0b8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7cbf-9590-19473ce4f0b8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7da4-a138-64471d9f2370" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-7cbf-9590-19473ce4f0b8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7da4-a138-64471d9f2370" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_019f18c1-3fff-7319-9204-52aed9c8540c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7da4-a138-64471d9f2370" xlink:to="loc_us-gaap_PerformanceSharesMember_019f18c1-3fff-7319-9204-52aed9c8540c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019f18c1-3fff-798b-bce8-93b9ca9f1cd1" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-732d-bddd-0f55cdb0aa2f" xlink:to="loc_srt_RangeAxis_019f18c1-3fff-798b-bce8-93b9ca9f1cd1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3fff-798b-bce8-93b9ca9f1cd1_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019f18c1-3fff-798b-bce8-93b9ca9f1cd1" xlink:to="loc_srt_RangeMember_019f18c1-3fff-798b-bce8-93b9ca9f1cd1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3fff-71b0-8721-67896ef21667" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019f18c1-3fff-798b-bce8-93b9ca9f1cd1" xlink:to="loc_srt_RangeMember_019f18c1-3fff-71b0-8721-67896ef21667" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019f18c1-3fff-70b6-aa84-ca93f0168499" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3fff-71b0-8721-67896ef21667" xlink:to="loc_srt_MinimumMember_019f18c1-3fff-70b6-aa84-ca93f0168499" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019f18c1-3fff-74b0-93bb-c9908b0a7945" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3fff-71b0-8721-67896ef21667" xlink:to="loc_srt_MaximumMember_019f18c1-3fff-74b0-93bb-c9908b0a7945" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_PSUPerformanceMeasurementPeriod_019f18c1-3fff-70fd-9b3c-232a380785ca" xlink:href="pcty-20260630.xsd#pcty_PSUPerformanceMeasurementPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7a6c-8d28-996b32be1347" xlink:to="loc_pcty_PSUPerformanceMeasurementPeriod_019f18c1-3fff-70fd-9b3c-232a380785ca" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_019f18c1-3fff-7795-94a1-d8d2a8755ebd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7a6c-8d28-996b32be1347" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_019f18c1-3fff-7795-94a1-d8d2a8755ebd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_PercentageOfSharesTargetToEachPSU_019f18c1-3fff-7620-b85b-5b080f994cff" xlink:href="pcty-20260630.xsd#pcty_PercentageOfSharesTargetToEachPSU"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7a6c-8d28-996b32be1347" xlink:to="loc_pcty_PercentageOfSharesTargetToEachPSU_019f18c1-3fff-7620-b85b-5b080f994cff" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-7bb4-b5a1-fa0eb872c02d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7a6c-8d28-996b32be1347" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-7bb4-b5a1-fa0eb872c02d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_019f18c1-3fff-7bed-81f6-71c04ce7861c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-7bb4-b5a1-fa0eb872c02d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_019f18c1-3fff-7bed-81f6-71c04ce7861c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_019f18c1-3fff-7842-9b36-ae0171fe700b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-7bb4-b5a1-fa0eb872c02d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_019f18c1-3fff-7842-9b36-ae0171fe700b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_019f18c1-3fff-7737-bb26-f158867b7cd0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-7bb4-b5a1-fa0eb872c02d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_019f18c1-3fff-7737-bb26-f158867b7cd0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_019f18c1-3fff-72d1-bcff-9e9aa337ae86" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-7bb4-b5a1-fa0eb872c02d" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_019f18c1-3fff-72d1-bcff-9e9aa337ae86" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_019f18c1-3fff-7993-800d-4ff300730472" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-7f29-9405-bf3cdbc173a7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7a6c-8d28-996b32be1347" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-7f29-9405-bf3cdbc173a7" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_019f18c1-3fff-73c6-a511-c9ffdf2c3b4e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-7f29-9405-bf3cdbc173a7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_019f18c1-3fff-73c6-a511-c9ffdf2c3b4e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_019f18c1-3fff-7e2f-aef6-e3dbb8fcb9bd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-7f29-9405-bf3cdbc173a7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_019f18c1-3fff-7e2f-aef6-e3dbb8fcb9bd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_019f18c1-3fff-79c0-b723-7bb8bc73f251" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-7f29-9405-bf3cdbc173a7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_019f18c1-3fff-79c0-b723-7bb8bc73f251" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_019f18c1-3fff-7983-abe0-71821c682695" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-7f29-9405-bf3cdbc173a7" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_019f18c1-3fff-7983-abe0-71821c682695" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_019f18c1-3fff-7225-baa8-258b3434c0f9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/BenefitPlansMSUActivityDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#BenefitPlansMSUActivityDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/BenefitPlansMSUActivityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7924-b246-53fbc4596093" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-78b4-90fc-682b23c3327d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7924-b246-53fbc4596093" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-78b4-90fc-682b23c3327d" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-74d4-a5be-d29073dc6ca6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-78b4-90fc-682b23c3327d" xlink:to="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-74d4-a5be-d29073dc6ca6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-74d4-a5be-d29073dc6ca6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-74d4-a5be-d29073dc6ca6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-74d4-a5be-d29073dc6ca6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7a99-813d-3458c2fb769c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-74d4-a5be-d29073dc6ca6" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7a99-813d-3458c2fb769c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_MarketStockUnitsMember_019f18c1-3fff-710b-816d-ec75de7e6a95" xlink:href="pcty-20260630.xsd#pcty_MarketStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7a99-813d-3458c2fb769c" xlink:to="loc_pcty_MarketStockUnitsMember_019f18c1-3fff-710b-816d-ec75de7e6a95" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019f18c1-3fff-73b5-9dab-ba8a61bf62ca" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-78b4-90fc-682b23c3327d" xlink:to="loc_srt_RangeAxis_019f18c1-3fff-73b5-9dab-ba8a61bf62ca" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3fff-73b5-9dab-ba8a61bf62ca_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019f18c1-3fff-73b5-9dab-ba8a61bf62ca" xlink:to="loc_srt_RangeMember_019f18c1-3fff-73b5-9dab-ba8a61bf62ca_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3fff-7923-b4b4-58ef4cb0cea5" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019f18c1-3fff-73b5-9dab-ba8a61bf62ca" xlink:to="loc_srt_RangeMember_019f18c1-3fff-7923-b4b4-58ef4cb0cea5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019f18c1-3fff-7774-8f38-0101dcef1d3c" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3fff-7923-b4b4-58ef4cb0cea5" xlink:to="loc_srt_MaximumMember_019f18c1-3fff-7774-8f38-0101dcef1d3c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_019f18c1-3fff-7f4d-9f1e-90dbf66f2c92" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7924-b246-53fbc4596093" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_019f18c1-3fff-7f4d-9f1e-90dbf66f2c92" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_PercentageOfSharesTargetToEachMarketShareUnits_019f18c1-3fff-77f3-ba32-75fab385980b" xlink:href="pcty-20260630.xsd#pcty_PercentageOfSharesTargetToEachMarketShareUnits"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7924-b246-53fbc4596093" xlink:to="loc_pcty_PercentageOfSharesTargetToEachMarketShareUnits_019f18c1-3fff-77f3-ba32-75fab385980b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-7ddd-809d-b0723b242578" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7924-b246-53fbc4596093" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-7ddd-809d-b0723b242578" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_019f18c1-3fff-715d-84d7-abf672fb282e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-7ddd-809d-b0723b242578" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_019f18c1-3fff-715d-84d7-abf672fb282e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_019f18c1-3fff-7600-a19b-68df267336f8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-7ddd-809d-b0723b242578" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_019f18c1-3fff-7600-a19b-68df267336f8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_019f18c1-3fff-7807-a83c-91c09f024470" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-7ddd-809d-b0723b242578" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_019f18c1-3fff-7807-a83c-91c09f024470" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_019f18c1-3fff-7435-b1dd-c8ae246f9a72" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward_019f18c1-3fff-7ddd-809d-b0723b242578" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_019f18c1-3fff-7435-b1dd-c8ae246f9a72" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_019f18c1-3fff-7ae6-b8a1-a63eb3ec5b81" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-750b-8a1c-315124a52823" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7924-b246-53fbc4596093" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-750b-8a1c-315124a52823" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_019f18c1-3fff-7bf5-9c3d-e322045506b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-750b-8a1c-315124a52823" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_019f18c1-3fff-7bf5-9c3d-e322045506b2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_019f18c1-3fff-730f-9bca-e0a0ed4d6895" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-750b-8a1c-315124a52823" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_019f18c1-3fff-730f-9bca-e0a0ed4d6895" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_019f18c1-3fff-7d9f-a3e0-d59ba3d45d41" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-750b-8a1c-315124a52823" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_019f18c1-3fff-7d9f-a3e0-d59ba3d45d41" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_019f18c1-3fff-7ec5-9a61-a7b6139851b6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019f18c1-3fff-750b-8a1c-315124a52823" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_019f18c1-3fff-7ec5-9a61-a7b6139851b6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_019f18c1-3fff-7555-a0db-2654fb995a73" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_019f18c1-3fff-7af5-b69c-755d583d3300" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7924-b246-53fbc4596093" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_019f18c1-3fff-7af5-b69c-755d583d3300" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_019f18c1-3fff-72b4-82bd-06bc5801525a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_019f18c1-3fff-7af5-b69c-755d583d3300" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_019f18c1-3fff-72b4-82bd-06bc5801525a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_019f18c1-3fff-7d73-a789-a87e34ff791a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_019f18c1-3fff-7af5-b69c-755d583d3300" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_019f18c1-3fff-7d73-a789-a87e34ff791a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_019f18c1-3fff-7957-b354-d0617ce3e25f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_019f18c1-3fff-7af5-b69c-755d583d3300" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_019f18c1-3fff-7957-b354-d0617ce3e25f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_019f18c1-3fff-7bad-b4ea-7da0c91aa747" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_019f18c1-3fff-7af5-b69c-755d583d3300" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_019f18c1-3fff-7bad-b4ea-7da0c91aa747" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/BenefitPlansESPPInformationDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#BenefitPlansESPPInformationDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/BenefitPlansESPPInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7e8c-a370-d30fc676e620" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-7669-871b-f5ab681e2ee8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7e8c-a370-d30fc676e620" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-7669-871b-f5ab681e2ee8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-75e2-81a8-254865f627f9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-7669-871b-f5ab681e2ee8" xlink:to="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-75e2-81a8-254865f627f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-75e2-81a8-254865f627f9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-75e2-81a8-254865f627f9" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-75e2-81a8-254865f627f9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7587-b240-d6b8e691e291" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019f18c1-3fff-75e2-81a8-254865f627f9" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7587-b240-d6b8e691e291" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember_019f18c1-3fff-7e90-a649-455ad8834b39" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019f18c1-3fff-7587-b240-d6b8e691e291" xlink:to="loc_us-gaap_EmployeeStockMember_019f18c1-3fff-7e90-a649-455ad8834b39" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019f18c1-3fff-7837-a1c1-0632feebe959" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019f18c1-3fff-7669-871b-f5ab681e2ee8" xlink:to="loc_srt_RangeAxis_019f18c1-3fff-7837-a1c1-0632feebe959" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3fff-7837-a1c1-0632feebe959_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019f18c1-3fff-7837-a1c1-0632feebe959" xlink:to="loc_srt_RangeMember_019f18c1-3fff-7837-a1c1-0632feebe959_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019f18c1-3fff-753a-a892-414b769fcaa7" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019f18c1-3fff-7837-a1c1-0632feebe959" xlink:to="loc_srt_RangeMember_019f18c1-3fff-753a-a892-414b769fcaa7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019f18c1-3fff-70e8-a8c7-5243bf02a28e" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3fff-753a-a892-414b769fcaa7" xlink:to="loc_srt_MinimumMember_019f18c1-3fff-70e8-a8c7-5243bf02a28e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019f18c1-3fff-78d3-aee1-cff8c86237ad" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019f18c1-3fff-753a-a892-414b769fcaa7" xlink:to="loc_srt_MaximumMember_019f18c1-3fff-78d3-aee1-cff8c86237ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate_019f18c1-3fff-76f6-9464-65d7aee1e023" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7e8c-a370-d30fc676e620" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate_019f18c1-3fff-76f6-9464-65d7aee1e023" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent_019f18c1-3fff-752a-b54f-bf0f67595ae0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7e8c-a370-d30fc676e620" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent_019f18c1-3fff-752a-b54f-bf0f67595ae0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_019f18c1-3fff-7d9d-a9e0-e0f0c652c190" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7e8c-a370-d30fc676e620" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_019f18c1-3fff-7d9d-a9e0-e0f0c652c190" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_019f18c1-3fff-7777-b67a-e70685422470" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7e8c-a370-d30fc676e620" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_019f18c1-3fff-7777-b67a-e70685422470" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019f18c1-3fff-7681-b5f2-0507ecc6cf3a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7e8c-a370-d30fc676e620" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019f18c1-3fff-7681-b5f2-0507ecc6cf3a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_019f18c1-3fff-7041-8f3a-8ffacedeb855" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019f18c1-3fff-7e8c-a370-d30fc676e620" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_019f18c1-3fff-7041-8f3a-8ffacedeb855" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_019f18c1-3fff-7b22-a7fb-511c48463d73" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_019f18c1-3fff-7041-8f3a-8ffacedeb855" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedDividendRate_019f18c1-3fff-7b22-a7fb-511c48463d73" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_019f18c1-3fff-7e86-8952-536f68aeaa5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_019f18c1-3fff-7041-8f3a-8ffacedeb855" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsExpectedVolatilityRate_019f18c1-3fff-7e86-8952-536f68aeaa5a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_019f18c1-3fff-7f62-b412-2c9b9a9dabca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_019f18c1-3fff-7041-8f3a-8ffacedeb855" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardFairValueAssumptionsExpectedTerm1_019f18c1-3fff-7f62-b412-2c9b9a9dabca" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_019f18c1-3fff-7367-8448-eeb56f39c2c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsAndMethodologyAbstract_019f18c1-3fff-7041-8f3a-8ffacedeb855" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsRiskFreeInterestRate_019f18c1-3fff-7367-8448-eeb56f39c2c0" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/NetIncomePerShareSummaryofAntidilutiveSecuritiesDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#NetIncomePerShareSummaryofAntidilutiveSecuritiesDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/NetIncomePerShareSummaryofAntidilutiveSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_019f18c1-3fff-7efe-a3b4-6265c5e88010" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_019f18c1-3fff-731f-8d31-0ce1a300cd79" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_019f18c1-3fff-7efe-a3b4-6265c5e88010" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_019f18c1-3fff-731f-8d31-0ce1a300cd79" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_019f18c1-3fff-7641-a2e6-7f78544cdeec" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_019f18c1-3fff-731f-8d31-0ce1a300cd79" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_019f18c1-3fff-7641-a2e6-7f78544cdeec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019f18c1-3fff-7641-a2e6-7f78544cdeec_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_019f18c1-3fff-7641-a2e6-7f78544cdeec" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019f18c1-3fff-7641-a2e6-7f78544cdeec_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019f18c1-3fff-7527-8ac1-5c5ac71720dc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_019f18c1-3fff-7641-a2e6-7f78544cdeec" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019f18c1-3fff-7527-8ac1-5c5ac71720dc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_019f18c1-3fff-7d6b-afa6-b785df9e0452" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019f18c1-3fff-7527-8ac1-5c5ac71720dc" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_019f18c1-3fff-7d6b-afa6-b785df9e0452" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_019f18c1-3fff-7554-8ffe-997ef4e78652" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019f18c1-3fff-7527-8ac1-5c5ac71720dc" xlink:to="loc_us-gaap_PerformanceSharesMember_019f18c1-3fff-7554-8ffe-997ef4e78652" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_MarketStockUnitsMember_019f18c1-3fff-79f9-81b6-bce77550f38e" xlink:href="pcty-20260630.xsd#pcty_MarketStockUnitsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019f18c1-3fff-7527-8ac1-5c5ac71720dc" xlink:to="loc_pcty_MarketStockUnitsMember_019f18c1-3fff-79f9-81b6-bce77550f38e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_019f18c1-3fff-78a2-ae74-fc50cf5821e5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_019f18c1-3fff-7efe-a3b4-6265c5e88010" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_019f18c1-3fff-78a2-ae74-fc50cf5821e5" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.paylocity.com/role/SegmentReportingDetails" xlink:type="simple" xlink:href="pcty-20260630.xsd#SegmentReportingDetails"/>
  <link:definitionLink xlink:role="http://www.paylocity.com/role/SegmentReportingDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_019f18c1-3fff-7a31-a9a9-97e7e82fda56" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019f18c1-3fff-7202-9829-8788d7545d19" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019f18c1-3fff-7a31-a9a9-97e7e82fda56" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019f18c1-3fff-7202-9829-8788d7545d19" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_019f18c1-3fff-7607-aab8-b9da9e6ff33c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_019f18c1-3fff-7202-9829-8788d7545d19" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_019f18c1-3fff-7607-aab8-b9da9e6ff33c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019f18c1-3fff-7607-aab8-b9da9e6ff33c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019f18c1-3fff-7607-aab8-b9da9e6ff33c" xlink:to="loc_us-gaap_SegmentDomain_019f18c1-3fff-7607-aab8-b9da9e6ff33c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_019f18c1-3fff-79c8-8bf8-2ca334723bba" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_019f18c1-3fff-7607-aab8-b9da9e6ff33c" xlink:to="loc_us-gaap_SegmentDomain_019f18c1-3fff-79c8-8bf8-2ca334723bba" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_ReportableSegmentMember_019f18c1-3fff-7e5b-833a-7cb2d8fba23b" xlink:href="pcty-20260630.xsd#pcty_ReportableSegmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_019f18c1-3fff-79c8-8bf8-2ca334723bba" xlink:to="loc_pcty_ReportableSegmentMember_019f18c1-3fff-7e5b-833a-7cb2d8fba23b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfReportableSegments_019f18c1-3fff-7cb7-8b4e-91c7cd332f80" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NumberOfReportableSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019f18c1-3fff-7a31-a9a9-97e7e82fda56" xlink:to="loc_us-gaap_NumberOfReportableSegments_019f18c1-3fff-7cb7-8b4e-91c7cd332f80" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfOperatingSegments_019fac27-878e-7b56-a9f6-fe4485396afd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NumberOfOperatingSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019f18c1-3fff-7a31-a9a9-97e7e82fda56" xlink:to="loc_us-gaap_NumberOfOperatingSegments_019fac27-878e-7b56-a9f6-fe4485396afd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_019f18c1-3fff-73a3-a8b3-8fbdc9def1a0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Revenues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019f18c1-3fff-7a31-a9a9-97e7e82fda56" xlink:to="loc_us-gaap_Revenues_019f18c1-3fff-73a3-a8b3-8fbdc9def1a0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_CostOfGoodsAndServicesSoldAdjusted_019f18c1-3fff-7f48-b791-743789d79c56" xlink:href="pcty-20260630.xsd#pcty_CostOfGoodsAndServicesSoldAdjusted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019f18c1-3fff-7a31-a9a9-97e7e82fda56" xlink:to="loc_pcty_CostOfGoodsAndServicesSoldAdjusted_019f18c1-3fff-7f48-b791-743789d79c56" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_SellingAndMarketingExpenseAdjusted_019f18c1-3fff-7532-910d-f7d39bd12255" xlink:href="pcty-20260630.xsd#pcty_SellingAndMarketingExpenseAdjusted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019f18c1-3fff-7a31-a9a9-97e7e82fda56" xlink:to="loc_pcty_SellingAndMarketingExpenseAdjusted_019f18c1-3fff-7532-910d-f7d39bd12255" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_ResearchAndDevelopmentExpenseAdjusted_019f18c1-3fff-73ce-bfef-0a5038da8731" xlink:href="pcty-20260630.xsd#pcty_ResearchAndDevelopmentExpenseAdjusted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019f18c1-3fff-7a31-a9a9-97e7e82fda56" xlink:to="loc_pcty_ResearchAndDevelopmentExpenseAdjusted_019f18c1-3fff-73ce-bfef-0a5038da8731" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_GeneralAndAdministrativeExpenseAdjusted_019f18c1-3fff-7cbe-8dac-868c0530399e" xlink:href="pcty-20260630.xsd#pcty_GeneralAndAdministrativeExpenseAdjusted"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019f18c1-3fff-7a31-a9a9-97e7e82fda56" xlink:to="loc_pcty_GeneralAndAdministrativeExpenseAdjusted_019f18c1-3fff-7cbe-8dac-868c0530399e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonoperatingIncomeExpense_019f18c1-3fff-7437-8872-d2ee33aaddb3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NonoperatingIncomeExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019f18c1-3fff-7a31-a9a9-97e7e82fda56" xlink:to="loc_us-gaap_NonoperatingIncomeExpense_019f18c1-3fff-7437-8872-d2ee33aaddb3" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019f18c1-3fff-776e-adcf-4166197c2fa8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019f18c1-3fff-7a31-a9a9-97e7e82fda56" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019f18c1-3fff-776e-adcf-4166197c2fa8" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingOtherItemAmount_019f18c1-3fff-7226-accd-fc87090a3110" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentReportingOtherItemAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019f18c1-3fff-7a31-a9a9-97e7e82fda56" xlink:to="loc_us-gaap_SegmentReportingOtherItemAmount_019f18c1-3fff-7226-accd-fc87090a3110" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019f18c1-3fff-714e-a0bc-2b9fad57aa5b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_019f18c1-3fff-7a31-a9a9-97e7e82fda56" xlink:to="loc_us-gaap_NetIncomeLoss_019f18c1-3fff-714e-a0bc-2b9fad57aa5b" xlink:type="arc" order="10"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2026/ecd-2026.xsd#IndividualsOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ecd_AllIndividualsMember" xlink:href="https://xbrl.sec.gov/ecd/2026/ecd-2026.xsd#ecd_AllIndividualsMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_StevenR.BeauchampMember_019f2995-c421-7117-8f86-c3e0dd464771" xlink:href="pcty-20260630.xsd#pcty_StevenR.BeauchampMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_pcty_StevenR.BeauchampMember_019f2995-c421-7117-8f86-c3e0dd464771" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_IRIEFamilyTrustMember_019fa4f0-c647-7ac9-b204-92708d012f00" xlink:href="pcty-20260630.xsd#pcty_IRIEFamilyTrustMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_pcty_IRIEFamilyTrustMember_019fa4f0-c647-7ac9-b204-92708d012f00" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/role/TradingArrangementsOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2026/ecd-2026.xsd#TradingArrangmentsOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/role/TradingArrangementsOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ecd_AllTradingArrangementsMember" xlink:href="https://xbrl.sec.gov/ecd/2026/ecd-2026.xsd#ecd_AllTradingArrangementsMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_pcty_StevenR.BeauchampMember_019f2995-c421-7117-8f86-c3e0dd464771" xlink:href="pcty-20260630.xsd#pcty_StevenR.BeauchampMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllTradingArrangementsMember" xlink:to="loc_pcty_StevenR.BeauchampMember_019f2995-c421-7117-8f86-c3e0dd464771" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fasb.org/srt/role/srt-eedm/ExtensibleEnumerationLists" xlink:type="simple" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-roles-2026.xsd#eedm1"/>
  <link:definitionLink xlink:role="http://fasb.org/srt/role/srt-eedm/ExtensibleEnumerationLists" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrentAbstract"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent" xlink:type="arc" order="41"/>
  </link:definitionLink>
</link:linkbase>
