{"cik":723531,"accession":"0001193125-26-307785","metadata":{"formType":"Form 10-K","formDescription":"Annual report [Section 13 and 15(d), not S-K Item 405]","accession":"0001193125-26-307785","filingDate":"2026-07-17","accepted":"2026-07-17 16:05:21","periodOfReport":"2026-05-31","documentCount":129},"urls":{"index":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/0001193125-26-307785-index.htm","archive":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785","viewer":"https://www.sec.gov/cgi-bin/viewer?action=view&cik=723531&accession_number=0001193125-26-307785&xbrl_type=f","homepage":"https://www.sec.gov/Archives/edgar/data/723531/0001193125-26-307785-index.html","text":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/0001193125-26-307785.txt","headers":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/0001193125-26-307785-index-headers.html"},"primaryDocument":{"seq":1,"description":"10-K","filename":"payx-20260531.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/payx-20260531.htm","type":"10-K","size":6069553,"isXBRL":true},"documents":[{"seq":1,"description":"10-K","filename":"payx-20260531.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/payx-20260531.htm","type":"10-K","size":6069553,"isXBRL":true},{"seq":2,"description":"EX-19.1","filename":"payx-ex19_1.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/payx-ex19_1.htm","type":"EX-19.1","size":101754,"isXBRL":false},{"seq":3,"description":"EX-21.1","filename":"payx-ex21_1.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/payx-ex21_1.htm","type":"EX-21.1","size":47140,"isXBRL":false},{"seq":4,"description":"EX-23.1","filename":"payx-ex23_1.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/payx-ex23_1.htm","type":"EX-23.1","size":3985,"isXBRL":false},{"seq":5,"description":"EX-24.1","filename":"payx-ex24_1.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/payx-ex24_1.htm","type":"EX-24.1","size":63200,"isXBRL":false},{"seq":6,"description":"EX-31.1","filename":"payx-ex31_1.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/payx-ex31_1.htm","type":"EX-31.1","size":21032,"isXBRL":false},{"seq":7,"description":"EX-31.2","filename":"payx-ex31_2.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/payx-ex31_2.htm","type":"EX-31.2","size":21049,"isXBRL":false},{"seq":8,"description":"EX-32.1","filename":"payx-ex32_1.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/payx-ex32_1.htm","type":"EX-32.1","size":15908,"isXBRL":false},{"seq":9,"description":"EX-32.2","filename":"payx-ex32_2.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/payx-ex32_2.htm","type":"EX-32.2","size":15932,"isXBRL":false}],"dataFiles":[{"seq":133,"description":"EXTRACTED XBRL INSTANCE DOCUMENT","filename":"payx-20260531_htm.xml","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/payx-20260531_htm.xml","type":"XML","size":6305027,"isXBRL":false}],"xbrl":{"available":true,"statements":[{"htmlFileName":"R2.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R2.htm","longName":"75010 - Statement - Consolidated Statements of Income and Comprehensive Income","shortName":"Consolidated Statements of Income and Comprehensive Income","reportType":"Sheet","menuCategory":"Statements","position":2,"role":"http://www.paychex.com/20260531/taxonomy/role/StatementConsolidatedStatementsOfIncomeAndComprehensiveIncome","instance":"payx-20260531.htm"},{"htmlFileName":"R3.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R3.htm","longName":"75020 - Statement - Consolidated Balance Sheets","shortName":"Consolidated Balance Sheets","reportType":"Sheet","menuCategory":"Statements","position":3,"role":"http://www.paychex.com/20260531/taxonomy/role/StatementConsolidatedBalanceSheets","instance":"payx-20260531.htm"},{"htmlFileName":"R4.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R4.htm","longName":"75030 - Statement - Consolidated Balance Sheets (Parenthetical)","shortName":"Consolidated Balance Sheets (Parenthetical)","reportType":"Sheet","menuCategory":"Statements","position":4,"role":"http://www.paychex.com/20260531/taxonomy/role/StatementConsolidatedBalanceSheetsParenthetical","instance":"payx-20260531.htm"},{"htmlFileName":"R5.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R5.htm","longName":"75040 - Statement - Consolidated Statements of Stockholders' Equity","shortName":"Consolidated Statements of Stockholders' Equity","reportType":"Sheet","menuCategory":"Statements","position":5,"role":"http://www.paychex.com/20260531/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquity","instance":"payx-20260531.htm"},{"htmlFileName":"R6.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R6.htm","longName":"75050 - Statement - Consolidated Statements of Stockholders' Equity (Parenthetical)","shortName":"Consolidated Statements of Stockholders' Equity (Parenthetical)","reportType":"Sheet","menuCategory":"Statements","position":6,"role":"http://www.paychex.com/20260531/taxonomy/role/StatementConsolidatedStatementsOfStockholdersEquityParenthetical","instance":"payx-20260531.htm"},{"htmlFileName":"R7.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R7.htm","longName":"75060 - Statement - Consolidated Statements of Cash Flows","shortName":"Consolidated Statements of Cash Flows","reportType":"Sheet","menuCategory":"Statements","position":7,"role":"http://www.paychex.com/20260531/taxonomy/role/StatementConsolidatedStatementsOfCashFlows","instance":"payx-20260531.htm"}],"notes":[{"htmlFileName":"R8.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R8.htm","longName":"995410 - Disclosure - Pay vs Performance Disclosure","shortName":"Pay vs Performance Disclosure","reportType":"Sheet","menuCategory":"Notes","position":8,"role":"http://xbrl.sec.gov/ecd/role/PvpDisclosure","instance":"payx-20260531.htm"},{"htmlFileName":"R9.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R9.htm","longName":"995445 - Disclosure - Insider Trading Arrangements","shortName":"Insider Trading Arrangements","reportType":"Sheet","menuCategory":"Notes","position":9,"role":"http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements","instance":"payx-20260531.htm"},{"htmlFileName":"R10.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R10.htm","longName":"995447 - Disclosure - Insider Trading Policies and Procedures","shortName":"Insider Trading Policies and Procedures","reportType":"Sheet","menuCategory":"Notes","position":10,"role":"http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc","instance":"payx-20260531.htm"},{"htmlFileName":"R11.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R11.htm","longName":"995457 - Disclosure - Cybersecurity Risk Management, Strategy, and Governance Disclosure","shortName":"Cybersecurity Risk Management, Strategy, and Governance Disclosure","reportType":"Sheet","menuCategory":"Notes","position":11,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureCybersecurityRiskManagementStrategyAndGovernanceDisclosure","instance":"payx-20260531.htm"},{"htmlFileName":"R12.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R12.htm","longName":"995467 - Disclosure - Description of Business, Basis of Presentation, and Significant Accounting Policies","shortName":"Description of Business, Basis of Presentation, and Significant Accounting Policies","reportType":"Sheet","menuCategory":"Notes","position":12,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureDescriptionOfBusinessBasisOfPresentationAndSignificantAccountingPolicies","instance":"payx-20260531.htm"},{"htmlFileName":"R13.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R13.htm","longName":"995477 - Disclosure - Service Revenue","shortName":"Service Revenue","reportType":"Sheet","menuCategory":"Notes","position":13,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureServiceRevenue","instance":"payx-20260531.htm"},{"htmlFileName":"R14.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R14.htm","longName":"995487 - Disclosure - Basic and Diluted Earnings Per Share","shortName":"Basic and Diluted Earnings Per Share","reportType":"Sheet","menuCategory":"Notes","position":14,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureBasicAndDilutedEarningsPerShare","instance":"payx-20260531.htm"},{"htmlFileName":"R15.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R15.htm","longName":"995497 - Disclosure - Business Combinations","shortName":"Business Combinations","reportType":"Sheet","menuCategory":"Notes","position":15,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureBusinessCombinations","instance":"payx-20260531.htm"},{"htmlFileName":"R16.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R16.htm","longName":"995507 - Disclosure - Other Income, Net","shortName":"Other Income, Net","reportType":"Sheet","menuCategory":"Notes","position":16,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureOtherIncomeNet","instance":"payx-20260531.htm"},{"htmlFileName":"R17.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R17.htm","longName":"995517 - Disclosure - Stock-Based Compensation Plans","shortName":"Stock-Based Compensation Plans","reportType":"Sheet","menuCategory":"Notes","position":17,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureStockBasedCompensationPlans","instance":"payx-20260531.htm"},{"htmlFileName":"R18.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R18.htm","longName":"995527 - Disclosure - Funds Held for Clients and Corporate Investments","shortName":"Funds Held for Clients and Corporate Investments","reportType":"Sheet","menuCategory":"Notes","position":18,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureFundsHeldForClientsAndCorporateInvestments","instance":"payx-20260531.htm"},{"htmlFileName":"R19.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R19.htm","longName":"995537 - Disclosure - Fair Value Measurements","shortName":"Fair Value Measurements","reportType":"Sheet","menuCategory":"Notes","position":19,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureFairValueMeasurements","instance":"payx-20260531.htm"},{"htmlFileName":"R20.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R20.htm","longName":"995547 - Disclosure - Leases","shortName":"Leases","reportType":"Sheet","menuCategory":"Notes","position":20,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureLeases","instance":"payx-20260531.htm"},{"htmlFileName":"R21.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R21.htm","longName":"995557 - Disclosure - Property and Equipment, Net of Accumulated Depreciation","shortName":"Property and Equipment, Net of Accumulated Depreciation","reportType":"Sheet","menuCategory":"Notes","position":21,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosurePropertyAndEquipmentNetOfAccumulatedDepreciation","instance":"payx-20260531.htm"},{"htmlFileName":"R22.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R22.htm","longName":"995567 - Disclosure - Goodwill and Intangible Assets, Net of Accumulated Amortization","shortName":"Goodwill and Intangible Assets, Net of Accumulated Amortization","reportType":"Sheet","menuCategory":"Notes","position":22,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsNetOfAccumulatedAmortization","instance":"payx-20260531.htm"},{"htmlFileName":"R23.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R23.htm","longName":"995577 - Disclosure - Income Taxes","shortName":"Income Taxes","reportType":"Sheet","menuCategory":"Notes","position":23,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureIncomeTaxes","instance":"payx-20260531.htm"},{"htmlFileName":"R24.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R24.htm","longName":"995587 - Disclosure - Short-term Financing","shortName":"Short-term Financing","reportType":"Sheet","menuCategory":"Notes","position":24,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureShortTermFinancing","instance":"payx-20260531.htm"},{"htmlFileName":"R25.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R25.htm","longName":"995597 - Disclosure - Long-Term Financing","shortName":"Long-Term Financing","reportType":"Sheet","menuCategory":"Notes","position":25,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureLongTermFinancing","instance":"payx-20260531.htm"},{"htmlFileName":"R26.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R26.htm","longName":"995607 - Disclosure - Supplemental Cash Flow Information","shortName":"Supplemental Cash Flow Information","reportType":"Sheet","menuCategory":"Notes","position":26,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureSupplementalCashFlowInformation","instance":"payx-20260531.htm"},{"htmlFileName":"R27.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R27.htm","longName":"995617 - Disclosure - Employee Benefit Plans","shortName":"Employee Benefit Plans","reportType":"Sheet","menuCategory":"Notes","position":27,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureEmployeeBenefitPlans","instance":"payx-20260531.htm"},{"htmlFileName":"R28.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R28.htm","longName":"995627 - Disclosure - Commitments and Contingencies","shortName":"Commitments and Contingencies","reportType":"Sheet","menuCategory":"Notes","position":28,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureCommitmentsAndContingencies","instance":"payx-20260531.htm"},{"htmlFileName":"R29.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R29.htm","longName":"995637 - Disclosure - Segment Reporting","shortName":"Segment Reporting","reportType":"Sheet","menuCategory":"Notes","position":29,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureSegmentReporting","instance":"payx-20260531.htm"},{"htmlFileName":"R30.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R30.htm","longName":"995647 - Disclosure - Valuation and Qualifying Accounts","shortName":"Valuation and Qualifying Accounts","reportType":"Sheet","menuCategory":"Notes","position":30,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureValuationAndQualifyingAccounts","instance":"payx-20260531.htm"}],"tables":[{"htmlFileName":"R32.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R32.htm","longName":"995667 - Disclosure - Description of Business, Basis of Presentation, and Significant Accounting Policies (Tables)","shortName":"Description of Business, Basis of Presentation, and Significant Accounting Policies (Tables)","reportType":"Sheet","menuCategory":"Tables","position":32,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureDescriptionOfBusinessBasisOfPresentationAndSignificantAccountingPoliciesTables","instance":"payx-20260531.htm"},{"htmlFileName":"R33.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R33.htm","longName":"995677 - Disclosure - Service Revenue (Tables)","shortName":"Service Revenue (Tables)","reportType":"Sheet","menuCategory":"Tables","position":33,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureServiceRevenueTables","instance":"payx-20260531.htm"},{"htmlFileName":"R34.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R34.htm","longName":"995687 - Disclosure - Basic and Diluted Earnings Per Share (Tables)","shortName":"Basic and Diluted Earnings Per Share (Tables)","reportType":"Sheet","menuCategory":"Tables","position":34,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureBasicAndDilutedEarningsPerShareTables","instance":"payx-20260531.htm"},{"htmlFileName":"R35.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R35.htm","longName":"995697 - Disclosure - Business Combinations (Tables)","shortName":"Business Combinations (Tables)","reportType":"Sheet","menuCategory":"Tables","position":35,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureBusinessCombinationsTables","instance":"payx-20260531.htm"},{"htmlFileName":"R36.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R36.htm","longName":"995707 - Disclosure - Other Income, Net (Tables)","shortName":"Other Income, Net (Tables)","reportType":"Sheet","menuCategory":"Tables","position":36,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureOtherIncomeNetTables","instance":"payx-20260531.htm"},{"htmlFileName":"R37.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R37.htm","longName":"995717 - Disclosure - Stock-Based Compensation Plans (Tables)","shortName":"Stock-Based Compensation Plans (Tables)","reportType":"Sheet","menuCategory":"Tables","position":37,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureStockBasedCompensationPlansTables","instance":"payx-20260531.htm"},{"htmlFileName":"R38.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R38.htm","longName":"995727 - Disclosure - Funds Held for Clients and Corporate Investments (Tables)","shortName":"Funds Held for Clients and Corporate Investments (Tables)","reportType":"Sheet","menuCategory":"Tables","position":38,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureFundsHeldForClientsAndCorporateInvestmentsTables","instance":"payx-20260531.htm"},{"htmlFileName":"R39.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R39.htm","longName":"995737 - Disclosure - Fair Value Measurements (Tables)","shortName":"Fair Value Measurements (Tables)","reportType":"Sheet","menuCategory":"Tables","position":39,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureFairValueMeasurementsTables","instance":"payx-20260531.htm"},{"htmlFileName":"R40.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R40.htm","longName":"995747 - Disclosure - Leases (Tables)","shortName":"Leases (Tables)","reportType":"Sheet","menuCategory":"Tables","position":40,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureLeasesTables","instance":"payx-20260531.htm"},{"htmlFileName":"R41.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R41.htm","longName":"995757 - Disclosure - Property and Equipment, Net of Accumulated Depreciation (Tables)","shortName":"Property and Equipment, Net of Accumulated Depreciation (Tables)","reportType":"Sheet","menuCategory":"Tables","position":41,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosurePropertyAndEquipmentNetOfAccumulatedDepreciationTables","instance":"payx-20260531.htm"},{"htmlFileName":"R42.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R42.htm","longName":"995767 - Disclosure - Goodwill and Intangible Assets, Net of Accumulated Amortization (Tables)","shortName":"Goodwill and Intangible Assets, Net of Accumulated Amortization (Tables)","reportType":"Sheet","menuCategory":"Tables","position":42,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsNetOfAccumulatedAmortizationTables","instance":"payx-20260531.htm"},{"htmlFileName":"R43.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R43.htm","longName":"995777 - Disclosure - Income Taxes (Tables)","shortName":"Income Taxes (Tables)","reportType":"Sheet","menuCategory":"Tables","position":43,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureIncomeTaxesTables","instance":"payx-20260531.htm"},{"htmlFileName":"R44.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R44.htm","longName":"995787 - Disclosure - Short-term Financing (Tables)","shortName":"Short-term Financing (Tables)","reportType":"Sheet","menuCategory":"Tables","position":44,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureShortTermFinancingTables","instance":"payx-20260531.htm"},{"htmlFileName":"R45.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R45.htm","longName":"995797 - Disclosure - Long-Term Financing (Tables)","shortName":"Long-Term Financing (Tables)","reportType":"Sheet","menuCategory":"Tables","position":45,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureLongTermFinancingTables","instance":"payx-20260531.htm"},{"htmlFileName":"R46.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R46.htm","longName":"995807 - Disclosure - Commitments and Contingencies (Tables)","shortName":"Commitments and Contingencies (Tables)","reportType":"Sheet","menuCategory":"Tables","position":46,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureCommitmentsAndContingenciesTables","instance":"payx-20260531.htm"},{"htmlFileName":"R47.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R47.htm","longName":"995817 - Disclosure - Segment Reporting (Tables)","shortName":"Segment Reporting (Tables)","reportType":"Sheet","menuCategory":"Tables","position":47,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureSegmentReportingTables","instance":"payx-20260531.htm"}],"details":[{"htmlFileName":"R48.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R48.htm","longName":"995827 - Disclosure - Description of Business, Basis of Presentation, and Significant Accounting Policies (Narrative) (Details)","shortName":"Description of Business, Basis of Presentation, and Significant Accounting Policies (Narrative) (Details)","reportType":"Sheet","menuCategory":"Details","position":48,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureDescriptionOfBusinessBasisOfPresentationAndSignificantAccountingPoliciesNarrativeDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R49.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R49.htm","longName":"995837 - Disclosure - Description of Business, Basis of Presentation, and Significant Accounting Policies (Summary of Accounts Receivable, Net of Allowance for Credit Losses) (Details)","shortName":"Description of Business, Basis of Presentation, and Significant Accounting Policies (Summary of Accounts Receivable, Net of Allowance for Credit Losses) (Details)","reportType":"Sheet","menuCategory":"Details","position":49,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureDescriptionOfBusinessBasisOfPresentationAndSignificantAccountingPoliciesSummaryOfAccountsReceivableNetOfAllowanceForCreditLosses","instance":"payx-20260531.htm"},{"htmlFileName":"R50.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R50.htm","longName":"995847 - Disclosure - Description of Business, Basis of Presentation, and Significant Accounting Policies (Schedule of Allowance for Credit Losses Activity Related to Accounts Receivables) (Details)","shortName":"Description of Business, Basis of Presentation, and Significant Accounting Policies (Schedule of Allowance for Credit Losses Activity Related to Accounts Receivables) (Details)","reportType":"Sheet","menuCategory":"Details","position":50,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureDescriptionOfBusinessBasisOfPresentationAndSignificantAccountingPoliciesScheduleOfAllowanceForCreditLossesActivityRelatedToAccoun","instance":"payx-20260531.htm"},{"htmlFileName":"R51.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R51.htm","longName":"995857 - Disclosure - Description of Business, Basis of Presentation, and Significant Accounting Policies (Estimated Useful Lives of Depreciable Assets) (Details)","shortName":"Description of Business, Basis of Presentation, and Significant Accounting Policies (Estimated Useful Lives of Depreciable Assets) (Details)","reportType":"Sheet","menuCategory":"Details","position":51,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureDescriptionOfBusinessBasisOfPresentationAndSignificantAccountingPoliciesEstimatedUsefulLivesOfDepreciableAssetsDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R52.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R52.htm","longName":"995867 - Disclosure - Description of Business, Basis of Presentation, and Significant Accounting Policies (Summary of Estimated Useful Lives of Amortizable Assets) (Details)","shortName":"Description of Business, Basis of Presentation, and Significant Accounting Policies (Summary of Estimated Useful Lives of Amortizable Assets) (Details)","reportType":"Sheet","menuCategory":"Details","position":52,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureDescriptionOfBusinessBasisOfPresentationAndSignificantAccountingPoliciesSummaryOfEstimatedUsefulLivesOfAmortizableAssetsDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R53.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R53.htm","longName":"995877 - Disclosure - Service Revenue (Narrative) (Details)","shortName":"Service Revenue (Narrative) (Details)","reportType":"Sheet","menuCategory":"Details","position":53,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureServiceRevenueNarrativeDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R54.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R54.htm","longName":"995887 - Disclosure - Service Revenue (Summary of PEO Pass-Through Costs Netted in Revenue) (Details)","shortName":"Service Revenue (Summary of PEO Pass-Through Costs Netted in Revenue) (Details)","reportType":"Sheet","menuCategory":"Details","position":54,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureServiceRevenueSummaryOfPeoPassThroughCostsNettedInRevenueDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R55.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R55.htm","longName":"995897 - Disclosure - Service Revenue (Summary of Changes in Deferred Revenue Related to Material Rights Performance Obligations) (Details)","shortName":"Service Revenue (Summary of Changes in Deferred Revenue Related to Material Rights Performance Obligations) (Details)","reportType":"Sheet","menuCategory":"Details","position":55,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureServiceRevenueSummaryOfChangesInDeferredRevenueRelatedToMaterialRightsPerformanceObligationsDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R56.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R56.htm","longName":"995907 - Disclosure - Service Revenue (Narrative) (Performance Obligation) (Details)","shortName":"Service Revenue (Narrative) (Performance Obligation) (Details)","reportType":"Sheet","menuCategory":"Details","position":56,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureServiceRevenueNarrativePerformanceObligationDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R57.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R57.htm","longName":"995917 - Disclosure - Service Revenue (Summary of Changes in Deferred Costs to Obtain and Fulfill Contracts) (Details)","shortName":"Service Revenue (Summary of Changes in Deferred Costs to Obtain and Fulfill Contracts) (Details)","reportType":"Sheet","menuCategory":"Details","position":57,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureServiceRevenueSummaryOfChangesInDeferredCostsToObtainAndFulfillContractsDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R58.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R58.htm","longName":"995927 - Disclosure - Basic and Diluted Earnings Per Share (Basic and Diluted Earnings Per Share) (Details)","shortName":"Basic and Diluted Earnings Per Share (Basic and Diluted Earnings Per Share) (Details)","reportType":"Sheet","menuCategory":"Details","position":58,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureBasicAndDilutedEarningsPerShareBasicAndDilutedEarningsPerShareDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R59.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R59.htm","longName":"995937 - Disclosure - Business Combinations (Narrative) (Details)","shortName":"Business Combinations (Narrative) (Details)","reportType":"Sheet","menuCategory":"Details","position":59,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureBusinessCombinationsNarrativeDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R60.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R60.htm","longName":"995947 - Disclosure - Business Combinations - Summary of the Components of the Purchase Consideration (Details)","shortName":"Business Combinations - Summary of the Components of the Purchase Consideration (Details)","reportType":"Sheet","menuCategory":"Details","position":60,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureBusinessCombinationsSummaryOfTheComponentsOfThePurchaseConsiderationDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R61.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R61.htm","longName":"995957 - Disclosure - Business Combinations - Summary of Purchase Price Allocation (Details)","shortName":"Business Combinations - Summary of Purchase Price Allocation (Details)","reportType":"Sheet","menuCategory":"Details","position":61,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPurchasePriceAllocationDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R62.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R62.htm","longName":"995967 - Disclosure - Business Combinations - Summary of Preliminary Fair Values Allocated to Identifiable Intangible Assets and their Estimated Useful Lives (Details)","shortName":"Business Combinations - Summary of Preliminary Fair Values Allocated to Identifiable Intangible Assets and their Estimated Useful Lives (Details)","reportType":"Sheet","menuCategory":"Details","position":62,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureBusinessCombinationsSummaryOfPreliminaryFairValuesAllocatedToIdentifiableIntangibleAssetsAndTheirEstimatedUsefulLivesDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R63.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R63.htm","longName":"995977 - Disclosure - Business Combinations - Summary of Unaudited Pro Forma Financial Information (Details)","shortName":"Business Combinations - Summary of Unaudited Pro Forma Financial Information (Details)","reportType":"Sheet","menuCategory":"Details","position":63,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureBusinessCombinationsSummaryOfUnauditedProFormaFinancialInformationDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R64.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R64.htm","longName":"995987 - Disclosure - Other Income, Net (Schedule of Other Income, Net) (Details)","shortName":"Other Income, Net (Schedule of Other Income, Net) (Details)","reportType":"Sheet","menuCategory":"Details","position":64,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureOtherIncomeNetScheduleOfOtherIncomeNetDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R65.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R65.htm","longName":"995997 - Disclosure - Stock-Based Compensation Plans (Narrative) (Details)","shortName":"Stock-Based Compensation Plans (Narrative) (Details)","reportType":"Sheet","menuCategory":"Details","position":65,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureStockBasedCompensationPlansNarrativeDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R66.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R66.htm","longName":"996007 - Disclosure - Stock-Based Compensation Plans (Stock Option Activity) (Details)","shortName":"Stock-Based Compensation Plans (Stock Option Activity) (Details)","reportType":"Sheet","menuCategory":"Details","position":66,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureStockBasedCompensationPlansStockOptionActivityDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R67.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R67.htm","longName":"996017 - Disclosure - Stock-Based Compensation Plans (Other Information Pertaining to Stock Option) (Details)","shortName":"Stock-Based Compensation Plans (Other Information Pertaining to Stock Option) (Details)","reportType":"Sheet","menuCategory":"Details","position":67,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureStockBasedCompensationPlansOtherInformationPertainingToStockOptionDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R68.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R68.htm","longName":"996027 - Disclosure - Stock-Based Compensation Plans (Weighted-Average Assumptions) (Details)","shortName":"Stock-Based Compensation Plans (Weighted-Average Assumptions) (Details)","reportType":"Sheet","menuCategory":"Details","position":68,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureStockBasedCompensationPlansWeightedAverageAssumptionsDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R69.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R69.htm","longName":"996037 - Disclosure - Stock-Based Compensation Plans (Time-Based RSUs and RSAs Activity) (Details)","shortName":"Stock-Based Compensation Plans (Time-Based RSUs and RSAs Activity) (Details)","reportType":"Sheet","menuCategory":"Details","position":69,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureStockbasedCompensationPlansTimebasedRsusAndRsasActivityDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R70.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R70.htm","longName":"996057 - Disclosure - Stock-Based Compensation Plans (Other Information Pertaining to Time-Based RSUs and RSAs) (Details)","shortName":"Stock-Based Compensation Plans (Other Information Pertaining to Time-Based RSUs and RSAs) (Details)","reportType":"Sheet","menuCategory":"Details","position":70,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureStockbasedCompensationPlansOtherInformationPertainingToTimebasedRsusAndRsasDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R71.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R71.htm","longName":"996067 - Disclosure - Stock-Based Compensation Plans (Performance-Based RSUs and RSAs Activity) (Details)","shortName":"Stock-Based Compensation Plans (Performance-Based RSUs and RSAs Activity) (Details)","reportType":"Sheet","menuCategory":"Details","position":71,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureStockbasedCompensationPlansPerformancebasedRsusAndRsasActivityDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R72.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R72.htm","longName":"996077 - Disclosure - Stock-Based Compensation Plans (Other Information Pertaining to Performance-Based RSUs and RSAs) (Details)","shortName":"Stock-Based Compensation Plans (Other Information Pertaining to Performance-Based RSUs and RSAs) (Details)","reportType":"Sheet","menuCategory":"Details","position":72,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureStockbasedCompensationPlansOtherInformationPertainingToPerformancebasedRsusAndRsasDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R73.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R73.htm","longName":"996087 - Disclosure - Stock-Based Compensation Plans (Weighted-Average Assumptions of Performance-Based RSUs) (Details)","shortName":"Stock-Based Compensation Plans (Weighted-Average Assumptions of Performance-Based RSUs) (Details)","reportType":"Sheet","menuCategory":"Details","position":73,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureStockbasedCompensationPlansWeightedaverageAssumptionsOfPerformancebasedRsusDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R74.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R74.htm","longName":"996097 - Disclosure - Funds Held for Clients and Corporate Investments (Funds Held for Clients and Corporate Investments) (Details)","shortName":"Funds Held for Clients and Corporate Investments (Funds Held for Clients and Corporate Investments) (Details)","reportType":"Sheet","menuCategory":"Details","position":74,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureFundsHeldForClientsAndCorporateInvestmentsFundsHeldForClientsAndCorporateInvestmentsDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R75.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R75.htm","longName":"996107 - Disclosure - Funds Held for Clients and Corporate Investments (Narrative) (Details)","shortName":"Funds Held for Clients and Corporate Investments (Narrative) (Details)","reportType":"Sheet","menuCategory":"Details","position":75,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureFundsHeldForClientsAndCorporateInvestmentsNarrativeDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R76.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R76.htm","longName":"996117 - Disclosure - Funds Held for Clients and Corporate Investments (Classification of Investments on Consolidated Balance Sheets) (Details)","shortName":"Funds Held for Clients and Corporate Investments (Classification of Investments on Consolidated Balance Sheets) (Details)","reportType":"Sheet","menuCategory":"Details","position":76,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureFundsHeldForClientsAndCorporateInvestmentsClassificationOfInvestmentsOnConsolidatedBalanceSheetsDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R77.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R77.htm","longName":"996127 - Disclosure - Funds Held for Clients and Corporate Investments (Securities in Unrealized Loss Position) (Details)","shortName":"Funds Held for Clients and Corporate Investments (Securities in Unrealized Loss Position) (Details)","reportType":"Sheet","menuCategory":"Details","position":77,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureFundsHeldForClientsAndCorporateInvestmentsSecuritiesInUnrealizedLossPositionDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R78.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R78.htm","longName":"996137 - Disclosure - Funds Held for Clients and Corporate Investments (Realized Gains and Losses from Sale of Available-for-sale Securities) (Details)","shortName":"Funds Held for Clients and Corporate Investments (Realized Gains and Losses from Sale of Available-for-sale Securities) (Details)","reportType":"Sheet","menuCategory":"Details","position":78,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureFundsHeldForClientsAndCorporateInvestmentsRealizedGainsAndLossesFromSaleOfAvailableForSaleSecuritiesDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R79.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R79.htm","longName":"996147 - Disclosure - Funds Held for Clients and Corporate Investments (Amortized Cost and Fair Value of Available-for-Sale Securities by Contractual Maturity) (Details)","shortName":"Funds Held for Clients and Corporate Investments (Amortized Cost and Fair Value of Available-for-Sale Securities by Contractual Maturity) (Details)","reportType":"Sheet","menuCategory":"Details","position":79,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureFundsHeldForClientsAndCorporateInvestmentsAmortizedCostAndFairValueOfAvailableForSaleSecuritiesByContractualMaturityDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R80.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R80.htm","longName":"996157 - Disclosure - Fair Value Measurements (Financial Assets and Liabilities Measured at Fair Value on Recurring Basis) (Details)","shortName":"Fair Value Measurements (Financial Assets and Liabilities Measured at Fair Value on Recurring Basis) (Details)","reportType":"Sheet","menuCategory":"Details","position":80,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureFairValueMeasurementsFinancialAssetsAndLiabilitiesMeasuredAtFairValueOnRecurringBasisDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R81.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R81.htm","longName":"996167 - Disclosure - Fair Value Measurements (Schedule of Amortized Cost and Fair Value of Borrowings) (Details)","shortName":"Fair Value Measurements (Schedule of Amortized Cost and Fair Value of Borrowings) (Details)","reportType":"Sheet","menuCategory":"Details","position":81,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureFairValueMeasurementsScheduleOfAmortizedCostAndFairValueOfBorrowingsDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R82.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R82.htm","longName":"996177 - Disclosure - Leases (Narrative) (Details)","shortName":"Leases (Narrative) (Details)","reportType":"Sheet","menuCategory":"Details","position":82,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureLeasesNarrativeDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R83.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R83.htm","longName":"996187 - Disclosure - Leases (Supplemental Balance Sheet Information Related to Leases) (Details)","shortName":"Leases (Supplemental Balance Sheet Information Related to Leases) (Details)","reportType":"Sheet","menuCategory":"Details","position":83,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureLeasesSupplementalBalanceSheetInformationRelatedToLeasesDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R84.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R84.htm","longName":"996197 - Disclosure - Leases (Components of Lease Expense) (Details)","shortName":"Leases (Components of Lease Expense) (Details)","reportType":"Sheet","menuCategory":"Details","position":84,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureLeasesComponentsOfLeaseExpenseDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R85.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R85.htm","longName":"996207 - Disclosure - Leases (Supplemental Cash Flow Information Related to Leases) (Details)","shortName":"Leases (Supplemental Cash Flow Information Related to Leases) (Details)","reportType":"Sheet","menuCategory":"Details","position":85,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureLeasesSupplementalCashFlowInformationRelatedToLeasesDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R86.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R86.htm","longName":"996217 - Disclosure - Leases - (Future Lease Payments) (Details)","shortName":"Leases - (Future Lease Payments) (Details)","reportType":"Sheet","menuCategory":"Details","position":86,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureLeasesFutureLeasePaymentsDetails1","instance":"payx-20260531.htm"},{"htmlFileName":"R87.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R87.htm","longName":"996237 - Disclosure - Property and Equipment, Net of Accumulated Depreciation (Components of Property and Equipment, at Cost) (Details)","shortName":"Property and Equipment, Net of Accumulated Depreciation (Components of Property and Equipment, at Cost) (Details)","reportType":"Sheet","menuCategory":"Details","position":87,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosurePropertyAndEquipmentNetOfAccumulatedDepreciationComponentsOfPropertyAndEquipmentAtCostDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R88.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R88.htm","longName":"996247 - Disclosure - Property and Equipment, Net of Accumulated Depreciation (Narrative) (Details)","shortName":"Property and Equipment, Net of Accumulated Depreciation (Narrative) (Details)","reportType":"Sheet","menuCategory":"Details","position":88,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosurePropertyAndEquipmentNetOfAccumulatedDepreciationNarrativeDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R89.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R89.htm","longName":"996257 - Disclosure - Goodwill and Intangible Assets, Net of Accumulated Amortization (Narrative) (Details)","shortName":"Goodwill and Intangible Assets, Net of Accumulated Amortization (Narrative) (Details)","reportType":"Sheet","menuCategory":"Details","position":89,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsNetOfAccumulatedAmortizationNarrativeDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R90.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R90.htm","longName":"996267 - Disclosure - Goodwill and Intangible Assets, Net of Accumulated Amortization (Change in Goodwill) (Details)","shortName":"Goodwill and Intangible Assets, Net of Accumulated Amortization (Change in Goodwill) (Details)","reportType":"Sheet","menuCategory":"Details","position":90,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsNetOfAccumulatedAmortizationChangeInGoodwillDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R91.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R91.htm","longName":"996277 - Disclosure - Goodwill and Intangible Assets, Net of Accumulated Amortization (Components of Intangible Assets, at Cost) (Details)","shortName":"Goodwill and Intangible Assets, Net of Accumulated Amortization (Components of Intangible Assets, at Cost) (Details)","reportType":"Sheet","menuCategory":"Details","position":91,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsNetOfAccumulatedAmortizationComponentsOfIntangibleAssetsAtCostDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R92.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R92.htm","longName":"996287 - Disclosure - Goodwill and Intangible Assets, Net of Accumulated Amortization (Estimated Amortization Expense) (Details)","shortName":"Goodwill and Intangible Assets, Net of Accumulated Amortization (Estimated Amortization Expense) (Details)","reportType":"Sheet","menuCategory":"Details","position":92,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureGoodwillAndIntangibleAssetsNetOfAccumulatedAmortizationEstimatedAmortizationExpenseDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R93.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R93.htm","longName":"996297 - Disclosure - Income Taxes (Narrative) (Details)","shortName":"Income Taxes (Narrative) (Details)","reportType":"Sheet","menuCategory":"Details","position":93,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureIncomeTaxesNarrativeDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R94.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R94.htm","longName":"996307 - Disclosure - Income Taxes (Components of Deferred Tax Assets and Liabilities) (Details)","shortName":"Income Taxes (Components of Deferred Tax Assets and Liabilities) (Details)","reportType":"Sheet","menuCategory":"Details","position":94,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureIncomeTaxesComponentsOfDeferredTaxAssetsAndLiabilitiesDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R95.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R95.htm","longName":"996317 - Disclosure - Income Taxes (Components of Provision for Income Taxes) (Details)","shortName":"Income Taxes (Components of Provision for Income Taxes) (Details)","reportType":"Sheet","menuCategory":"Details","position":95,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureIncomeTaxesComponentsOfProvisionForIncomeTaxesDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R96.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R96.htm","longName":"996327 - Disclosure - Income Taxes (Reconciliation of U.S. Federal Statutory Tax Rate) (Details)","shortName":"Income Taxes (Reconciliation of U.S. Federal Statutory Tax Rate) (Details)","reportType":"Sheet","menuCategory":"Details","position":96,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureIncomeTaxesReconciliationOfUsFederalStatutoryTaxRateDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R97.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R97.htm","longName":"996337 - Disclosure - Income Taxes - (Summary of Income Taxes Paid, Net of Refunds By Significant Jurisdiction) (Details)","shortName":"Income Taxes - (Summary of Income Taxes Paid, Net of Refunds By Significant Jurisdiction) (Details)","reportType":"Sheet","menuCategory":"Details","position":97,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureIncomeTaxesSummaryOfIncomeTaxesPaidNetOfRefundsBySignificantJurisdictionDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R98.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R98.htm","longName":"996347 - Disclosure - Income Taxes (Reconciliation of Gross Unrecognized Tax Benefits, Not Including Interest or Other Potential Offsetting Effects) (Details)","shortName":"Income Taxes (Reconciliation of Gross Unrecognized Tax Benefits, Not Including Interest or Other Potential Offsetting Effects) (Details)","reportType":"Sheet","menuCategory":"Details","position":98,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureIncomeTaxesReconciliationOfGrossUnrecognizedTaxBenefitsNotIncludingInterestOrOtherPotentialOffsettingEffectsDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R99.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R99.htm","longName":"996357 - Disclosure - Short-term Financing (Narrative) (Details)","shortName":"Short-term Financing (Narrative) (Details)","reportType":"Sheet","menuCategory":"Details","position":99,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureShortTermFinancingNarrativeDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R100.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R100.htm","longName":"996367 - Disclosure - Short-term Financing (Description of Credit Facilities) (Details)","shortName":"Short-term Financing (Description of Credit Facilities) (Details)","reportType":"Sheet","menuCategory":"Details","position":100,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureShortTermFinancingDescriptionOfCreditFacilitiesDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R101.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R101.htm","longName":"996377 - Disclosure - Short-term Financing (Description of Credit Facilities) (Parenthetical) (Details)","shortName":"Short-term Financing (Description of Credit Facilities) (Parenthetical) (Details)","reportType":"Sheet","menuCategory":"Details","position":101,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureShorttermFinancingDescriptionOfCreditFacilitiesParentheticalDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R102.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R102.htm","longName":"996387 - Disclosure - Long-Term Financing (Schedule of Long-Term Debt, at Amortized Cost) (Details)","shortName":"Long-Term Financing (Schedule of Long-Term Debt, at Amortized Cost) (Details)","reportType":"Sheet","menuCategory":"Details","position":102,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureLongTermFinancingScheduleOfLongTermDebtAtAmortizedCostDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R103.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R103.htm","longName":"996397 - Disclosure - Long-Term Financing (Schedule of Long-Term Debt, at Amortized Cost) (Parenthetical) (Details)","shortName":"Long-Term Financing (Schedule of Long-Term Debt, at Amortized Cost) (Parenthetical) (Details)","reportType":"Sheet","menuCategory":"Details","position":103,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureLongtermFinancingScheduleOfLongtermDebtAtAmortizedCostParentheticalDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R104.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R104.htm","longName":"996407 - Disclosure - Long-Term Financing (Narrative) (Details)","shortName":"Long-Term Financing (Narrative) (Details)","reportType":"Sheet","menuCategory":"Details","position":104,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureLongTermFinancingNarrativeDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R105.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R105.htm","longName":"996417 - Disclosure - Supplemental Cash Flow Information (Narrative) (Details)","shortName":"Supplemental Cash Flow Information (Narrative) (Details)","reportType":"Sheet","menuCategory":"Details","position":105,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureSupplementalCashFlowInformationNarrativeDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R106.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R106.htm","longName":"996427 - Disclosure - Employee Benefit Plans (Narrative) (Details)","shortName":"Employee Benefit Plans (Narrative) (Details)","reportType":"Sheet","menuCategory":"Details","position":106,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureEmployeeBenefitPlansNarrativeDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R107.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R107.htm","longName":"996437 - Disclosure - Commitments and Contingencies (Narrative) (Details)","shortName":"Commitments and Contingencies (Narrative) (Details)","reportType":"Sheet","menuCategory":"Details","position":107,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureCommitmentsAndContingenciesNarrativeDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R108.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R108.htm","longName":"996447 - Disclosure - Commitments and Contingencies (Minimum Future Payment Obligations) (Details)","shortName":"Commitments and Contingencies (Minimum Future Payment Obligations) (Details)","reportType":"Sheet","menuCategory":"Details","position":108,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureCommitmentsAndContingenciesMinimumFuturePaymentObligationsDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R109.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R109.htm","longName":"996457 - Disclosure - Segment Reporting - Schedule of Total Revenue, Net Income and Significant Expenses Used by the CODM (Details)","shortName":"Segment Reporting - Schedule of Total Revenue, Net Income and Significant Expenses Used by the CODM (Details)","reportType":"Sheet","menuCategory":"Details","position":109,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureSegmentReportingScheduleOfTotalRevenueNetIncomeAndSignificantExpensesUsedByTheCodmDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R110.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R110.htm","longName":"996467 - Disclosure - Segment Reporting - Additional Information (Details)","shortName":"Segment Reporting - Additional Information (Details)","reportType":"Sheet","menuCategory":"Details","position":110,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureSegmentReportingAdditionalInformationDetails","instance":"payx-20260531.htm"},{"htmlFileName":"R111.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R111.htm","longName":"996477 - Disclosure - Valuation and Qualifying Accounts (Details)","shortName":"Valuation and Qualifying Accounts (Details)","reportType":"Sheet","menuCategory":"Details","position":111,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureValuationAndQualifyingAccountsDetails","instance":"payx-20260531.htm"}],"cover":[{"htmlFileName":"R1.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R1.htm","longName":"75000 - Document - Document and Entity Information","shortName":"Document and Entity Information","reportType":"Sheet","menuCategory":"Cover","position":1,"role":"http://www.paychex.com/20260531/taxonomy/role/DocumentDocumentAndEntityInformation","instance":"payx-20260531.htm"}],"policies":[{"htmlFileName":"R31.htm","url":"https://www.sec.gov/Archives/edgar/data/723531/000119312526307785/R31.htm","longName":"995657 - Disclosure - Description of Business, Basis of Presentation, and Significant Accounting Policies (Policy)","shortName":"Description of Business, Basis of Presentation, and Significant Accounting Policies (Policy)","reportType":"Sheet","menuCategory":"Policies","position":31,"role":"http://www.paychex.com/20260531/taxonomy/role/DisclosureDescriptionOfBusinessBasisOfPresentationAndSignificantAccountingPoliciesPolicy","instance":"payx-20260531.htm"}]}}