<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.20.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>295</ContextCount>
  <ElementCount>425</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>84</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001002 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1002003 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1003004 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/CONSOLIDATEDBALANCESHEETS</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1004005 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/CONSOLIDATEDBALANCESHEETSParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1005006 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1006007 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/CONSOLIDATEDSTATEMENTSOFCHANGESINSHAREHOLDERSEQUITY</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>2101101 - Disclosure - Business and summary of significant accounting policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/Businessandsummaryofsignificantaccountingpolicies</Role>
      <ShortName>Business and summary of significant accounting policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2106102 - Disclosure - Business segments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/Businesssegments</Role>
      <ShortName>Business segments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2112103 - Disclosure - Revenue recognition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/Revenuerecognition</Role>
      <ShortName>Revenue recognition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2118104 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2123105 - Disclosure - Earnings per share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/Earningspershare</Role>
      <ShortName>Earnings per share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2127106 - Disclosure - Business combinations and disposals</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/Businesscombinationsanddisposals</Role>
      <ShortName>Business combinations and disposals</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2136107 - Disclosure - Income taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/Incometaxes</Role>
      <ShortName>Income taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2145108 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/Debt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2147109 - Disclosure - Balance sheet components</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/Balancesheetcomponents</Role>
      <ShortName>Balance sheet components</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2153110 - Disclosure - Commitments and contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/Commitmentsandcontingencies</Role>
      <ShortName>Commitments and contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2155111 - Disclosure - Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/Equity</Role>
      <ShortName>Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2159112 - Disclosure - Employee benefit plans and deferred compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/Employeebenefitplansanddeferredcompensation</Role>
      <ShortName>Employee benefit plans and deferred compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2161113 - Disclosure - Quarterly information (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/Quarterlyinformationunaudited</Role>
      <ShortName>Quarterly information (unaudited)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2164114 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2202201 - Disclosure - Business and summary of significant accounting policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinessandsummaryofsignificantaccountingpoliciesPolicies</Role>
      <ShortName>Business and summary of significant accounting policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2303301 - Disclosure - Business and summary of significant accounting policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinessandsummaryofsignificantaccountingpoliciesTables</Role>
      <ShortName>Business and summary of significant accounting policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.maximus.com/role/Businessandsummaryofsignificantaccountingpolicies</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2307302 - Disclosure - Business segments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinesssegmentsTables</Role>
      <ShortName>Business segments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.maximus.com/role/Businesssegments</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2313303 - Disclosure - Revenue recognition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/RevenuerecognitionTables</Role>
      <ShortName>Revenue recognition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.maximus.com/role/Revenuerecognition</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2319304 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.maximus.com/role/Leases</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2324305 - Disclosure - Earnings per share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/EarningspershareTables</Role>
      <ShortName>Earnings per share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.maximus.com/role/Earningspershare</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2328306 - Disclosure - Business combinations and disposals (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinesscombinationsanddisposalsTables</Role>
      <ShortName>Business combinations and disposals (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.maximus.com/role/Businesscombinationsanddisposals</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2337307 - Disclosure - Income taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/IncometaxesTables</Role>
      <ShortName>Income taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.maximus.com/role/Incometaxes</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2348308 - Disclosure - Balance sheet components (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BalancesheetcomponentsTables</Role>
      <ShortName>Balance sheet components (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.maximus.com/role/Balancesheetcomponents</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2356309 - Disclosure - Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/EquityTables</Role>
      <ShortName>Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.maximus.com/role/Equity</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2362310 - Disclosure - Quarterly information (unaudited) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/QuarterlyinformationunauditedTables</Role>
      <ShortName>Quarterly information (unaudited) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.maximus.com/role/Quarterlyinformationunaudited</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2404401 - Disclosure - Business and summary of significant accounting policies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinessandsummaryofsignificantaccountingpoliciesNarrativeDetails</Role>
      <ShortName>Business and summary of significant accounting policies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.maximus.com/role/BusinessandsummaryofsignificantaccountingpoliciesTables</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2405402 - Disclosure - Business and summary of significant accounting policies - Changes Due to Adoption of Topic 842 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinessandsummaryofsignificantaccountingpoliciesChangesDuetoAdoptionofTopic842Details</Role>
      <ShortName>Business and summary of significant accounting policies - Changes Due to Adoption of Topic 842 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2408403 - Disclosure - Business segments - Schedule of Segment Reporting Results By Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinesssegmentsScheduleofSegmentReportingResultsBySegmentDetails</Role>
      <ShortName>Business segments - Schedule of Segment Reporting Results By Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2409404 - Disclosure - Business segments - Revenue from External Customers by Geographic Areas (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinesssegmentsRevenuefromExternalCustomersbyGeographicAreasDetails</Role>
      <ShortName>Business segments - Revenue from External Customers by Geographic Areas (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2410405 - Disclosure - Business segments - Schedule of Identifiable Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinesssegmentsScheduleofIdentifiableAssetsDetails</Role>
      <ShortName>Business segments - Schedule of Identifiable Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2411406 - Disclosure - Business segments - Schedule of Long-Lived Assets by Geographical Areas (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinesssegmentsScheduleofLongLivedAssetsbyGeographicalAreasDetails</Role>
      <ShortName>Business segments - Schedule of Long-Lived Assets by Geographical Areas (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2414407 - Disclosure - Revenue recognition - Disaggregation of Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/RevenuerecognitionDisaggregationofRevenueDetails</Role>
      <ShortName>Revenue recognition - Disaggregation of Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2415408 - Disclosure - Revenue recognition - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/RevenuerecognitionNarrativeDetails</Role>
      <ShortName>Revenue recognition - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2416409 - Disclosure - Revenue recognition - Remaining Performance Obligation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/RevenuerecognitionRemainingPerformanceObligationDetails</Role>
      <ShortName>Revenue recognition - Remaining Performance Obligation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2417410 - Disclosure - Revenue recognition - Accounts Receivable Reserves (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/RevenuerecognitionAccountsReceivableReservesDetails</Role>
      <ShortName>Revenue recognition - Accounts Receivable Reserves (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2420411 - Disclosure - Leases - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/LeasesNarrativeDetails</Role>
      <ShortName>Leases - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2421412 - Disclosure - Leases - Lease Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/LeasesLeaseCostsDetails</Role>
      <ShortName>Leases - Lease Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2422413 - Disclosure - Leases - Remaining Lease Payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/LeasesRemainingLeasePaymentsDetails</Role>
      <ShortName>Leases - Remaining Lease Payments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2425414 - Disclosure - Earnings per share - Schedule of the Components of Basic and Diluted Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/EarningspershareScheduleoftheComponentsofBasicandDilutedEarningsPerShareDetails</Role>
      <ShortName>Earnings per share - Schedule of the Components of Basic and Diluted Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2426415 - Disclosure - Earnings per share - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/EarningspershareNarrativeDetails</Role>
      <ShortName>Earnings per share - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2429416 - Disclosure - Business combinations and disposals - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinesscombinationsanddisposalsNarrativeDetails</Role>
      <ShortName>Business combinations and disposals - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2430417 - Disclosure - Business combinations and disposals - Schedule of Assets and Liabilities Recorded in the Company's Financial Statements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinesscombinationsanddisposalsScheduleofAssetsandLiabilitiesRecordedintheCompanysFinancialStatementsDetails</Role>
      <ShortName>Business combinations and disposals - Schedule of Assets and Liabilities Recorded in the Company's Financial Statements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2431418 - Disclosure - Business combinations and disposals - Schedule of the Valuation of the Intangible Assets Acquired (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinesscombinationsanddisposalsScheduleoftheValuationoftheIntangibleAssetsAcquiredDetails</Role>
      <ShortName>Business combinations and disposals - Schedule of the Valuation of the Intangible Assets Acquired (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2432419 - Disclosure - Business combinations and disposals - Pro forma information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinesscombinationsanddisposalsProformainformationDetails</Role>
      <ShortName>Business combinations and disposals - Pro forma information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2433420 - Disclosure - Business combinations and disposals - Schedule of Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinesscombinationsanddisposalsScheduleofGoodwillDetails</Role>
      <ShortName>Business combinations and disposals - Schedule of Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2434421 - Disclosure - Business combinations and disposals - Schedule of Finite-Lived Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinesscombinationsanddisposalsScheduleofFiniteLivedIntangibleAssetsDetails</Role>
      <ShortName>Business combinations and disposals - Schedule of Finite-Lived Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2435422 - Disclosure - Business combinations and disposals - Schedule of Future Estimated Amortization Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BusinesscombinationsanddisposalsScheduleofFutureEstimatedAmortizationExpenseDetails</Role>
      <ShortName>Business combinations and disposals - Schedule of Future Estimated Amortization Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2438423 - Disclosure - Income taxes - Schedule of Components of Income From Continuing Operations before Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/IncometaxesScheduleofComponentsofIncomeFromContinuingOperationsbeforeIncomeTaxesDetails</Role>
      <ShortName>Income taxes - Schedule of Components of Income From Continuing Operations before Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2439424 - Disclosure - Income taxes - Provision for Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/IncometaxesProvisionforIncomeTaxesDetails</Role>
      <ShortName>Income taxes - Provision for Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2440425 - Disclosure - Income taxes - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/IncometaxesNarrativeDetails</Role>
      <ShortName>Income taxes - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2441426 - Disclosure - Income taxes - Reconciliation of Tax Provision Using the Federal Statutory Income Tax Rate to Reported Provision (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/IncometaxesReconciliationofTaxProvisionUsingtheFederalStatutoryIncomeTaxRatetoReportedProvisionDetails</Role>
      <ShortName>Income taxes - Reconciliation of Tax Provision Using the Federal Statutory Income Tax Rate to Reported Provision (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2442427 - Disclosure - Income taxes - Schedule of Deferred Tax Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/IncometaxesScheduleofDeferredTaxAssetsandLiabilitiesDetails</Role>
      <ShortName>Income taxes - Schedule of Deferred Tax Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2443428 - Disclosure - Income taxes - Schedule of Net Deferred Tax Position (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/IncometaxesScheduleofNetDeferredTaxPositionDetails</Role>
      <ShortName>Income taxes - Schedule of Net Deferred Tax Position (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2444429 - Disclosure - Income taxes - Summary of Income Tax Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/IncometaxesSummaryofIncomeTaxContingenciesDetails</Role>
      <ShortName>Income taxes - Summary of Income Tax Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2446430 - Disclosure - Debt - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/DebtNarrativeDetails</Role>
      <ShortName>Debt - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2449431 - Disclosure - Balance sheet components - Schedule of cash, cash equivalents and restricted cash (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BalancesheetcomponentsScheduleofcashcashequivalentsandrestrictedcashDetails</Role>
      <ShortName>Balance sheet components - Schedule of cash, cash equivalents and restricted cash (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2450432 - Disclosure - Balance sheet components - Schedule of Property and Equipment, at cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BalancesheetcomponentsScheduleofPropertyandEquipmentatcostDetails</Role>
      <ShortName>Balance sheet components - Schedule of Property and Equipment, at cost (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>2451433 - Disclosure - Balance sheet components - Schedule of Components of Capitalized Computer Software (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BalancesheetcomponentsScheduleofComponentsofCapitalizedComputerSoftwareDetails</Role>
      <ShortName>Balance sheet components - Schedule of Components of Capitalized Computer Software (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>2452434 - Disclosure - Balance sheet components - Schedule of Deferred Contract Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/BalancesheetcomponentsScheduleofDeferredContractCostsDetails</Role>
      <ShortName>Balance sheet components - Schedule of Deferred Contract Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>2454435 - Disclosure - Commitments and contingencies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/CommitmentsandcontingenciesNarrativeDetails</Role>
      <ShortName>Commitments and contingencies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>2457436 - Disclosure - Equity - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/EquityNarrativeDetails</Role>
      <ShortName>Equity - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>2458437 - Disclosure - Equity - Summary of the Company's RSU Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/EquitySummaryoftheCompanysRSUActivityDetails</Role>
      <ShortName>Equity - Summary of the Company's RSU Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>2460438 - Disclosure - Employee benefit plans and deferred compensation - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/EmployeebenefitplansanddeferredcompensationNarrativeDetails</Role>
      <ShortName>Employee benefit plans and deferred compensation - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.maximus.com/role/Employeebenefitplansanddeferredcompensation</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>2463439 - Disclosure - Quarterly information (unaudited) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/QuarterlyinformationunauditedDetails</Role>
      <ShortName>Quarterly information (unaudited) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.maximus.com/role/QuarterlyinformationunauditedTables</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="mms-20200930.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>2465440 - Disclosure - Subsequent Events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.maximus.com/role/SubsequentEventsDetails</Role>
      <ShortName>Subsequent Events (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.maximus.com/role/SubsequentEvents</ParentRole>
      <Position>72</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" original="mms-20200930.htm">mms-20200930.htm</File>
    <File>mms-20200930.xsd</File>
    <File>mms-20200930_cal.xml</File>
    <File>mms-20200930_def.xml</File>
    <File>mms-20200930_lab.xml</File>
    <File>mms-20200930_pre.xml</File>
    <File>mms2020-09x30x10kex211.htm</File>
    <File>mms2020-09x30x10kex231.htm</File>
    <File>mms2020-09x30x10kex311.htm</File>
    <File>mms2020-09x30x10kex312.htm</File>
    <File>mms2020-09x30x10kex321.htm</File>
    <File>mms2020-09x30x10kex322.htm</File>
    <File>mms2020-09x30x10kex42.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>mms-20200930_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/us-gaap/2020-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2020-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2020-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/country/2020-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
