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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:edc14ca0-2ff0-4110-a4d3-5555955d07b1,g:abb121f0-1665-49e9-98bb-62aa4b83b6d1-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:mtg="http://www.mgic.com/20231231" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:dtr-types1="http://www.xbrl.org/dtr/type/2020-01-21" xmlns:dtr-types="http://www.xbrl.org/dtr/type/2022-03-31" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.mgic.com/20231231">
  <xs:import namespace="http://fasb.org/srt/2023" schemaLocation="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd"/>
  <xs:import namespace="http://fasb.org/us-gaap/2023" schemaLocation="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd"/>
  <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="http://www.xbrl.org/2003/xlink-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/linkbase" schemaLocation="http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/dtr/type/2020-01-21" schemaLocation="https://www.xbrl.org/dtr/type/2020-01-21/types.xsd"/>
  <xs:import namespace="http://www.xbrl.org/dtr/type/2022-03-31" schemaLocation="https://www.xbrl.org/dtr/type/2022-03-31/types.xsd"/>
  <xs:import namespace="http://xbrl.org/2005/xbrldt" schemaLocation="http://www.xbrl.org/2005/xbrldt-2005.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/dei/2023" schemaLocation="https://xbrl.sec.gov/dei/2023/dei-2023.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/ecd/2023" schemaLocation="https://xbrl.sec.gov/ecd/2023/ecd-2023.xsd"/>
  <xs:annotation>
    <xs:appinfo>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="mtg-20231231_pre.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="mtg-20231231_def.xml" xlink:role="http://www.xbrl.org/2003/role/definitionLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="mtg-20231231_lab.xml" xlink:role="http://www.xbrl.org/2003/role/labelLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="mtg-20231231_cal.xml" xlink:role="http://www.xbrl.org/2003/role/calculationLinkbaseRef" xlink:type="simple"/>
      <link:roleType id="DocumentandEntityInformation" roleURI="http://www.mgic.com/role/DocumentandEntityInformation">
        <link:definition>0000001 - Document - Document and Entity Information</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="AuditInformation" roleURI="http://www.mgic.com/role/AuditInformation">
        <link:definition>0000002 - Document - Audit Information</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDBALANCESHEETS" roleURI="http://www.mgic.com/role/CONSOLIDATEDBALANCESHEETS">
        <link:definition>0000003 - Statement - CONSOLIDATED BALANCE SHEETS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDBALANCESHEETSParenthetical" roleURI="http://www.mgic.com/role/CONSOLIDATEDBALANCESHEETSParenthetical">
        <link:definition>0000004 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFOPERATIONS" roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS">
        <link:definition>0000005 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME">
        <link:definition>0000006 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY" roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY">
        <link:definition>0000007 - Statement - CONSOLIDATED STATEMENTS OF SHAREHOLDERS' EQUITY</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CONSOLIDATEDSTATEMENTSOFCASHFLOWS" roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS">
        <link:definition>0000008 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NatureofBusiness" roleURI="http://www.mgic.com/role/NatureofBusiness">
        <link:definition>0000009 - Disclosure - Nature of Business</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BasisofPresentation" roleURI="http://www.mgic.com/role/BasisofPresentation">
        <link:definition>0000010 - Disclosure - Basis of Presentation</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SignificantAccountingPolicies" roleURI="http://www.mgic.com/role/SignificantAccountingPolicies">
        <link:definition>0000011 - Disclosure - Significant Accounting Policies</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EarningsperShare" roleURI="http://www.mgic.com/role/EarningsperShare">
        <link:definition>0000012 - Disclosure - Earnings per Share</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Investments" roleURI="http://www.mgic.com/role/Investments">
        <link:definition>0000013 - Disclosure - Investments</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueMeasurements" roleURI="http://www.mgic.com/role/FairValueMeasurements">
        <link:definition>0000014 - Disclosure - Fair Value Measurements</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Debt" roleURI="http://www.mgic.com/role/Debt">
        <link:definition>0000015 - Disclosure - Debt</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LossReserves" roleURI="http://www.mgic.com/role/LossReserves">
        <link:definition>0000016 - Disclosure - Loss Reserves</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Reinsurance" roleURI="http://www.mgic.com/role/Reinsurance">
        <link:definition>0000017 - Disclosure - Reinsurance</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="OtherComprehensiveIncomeLoss" roleURI="http://www.mgic.com/role/OtherComprehensiveIncomeLoss">
        <link:definition>0000018 - Disclosure - Other Comprehensive Income (Loss)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BenefitPlans" roleURI="http://www.mgic.com/role/BenefitPlans">
        <link:definition>0000019 - Disclosure - Benefit Plans</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxes" roleURI="http://www.mgic.com/role/IncomeTaxes">
        <link:definition>0000020 - Disclosure - Income Taxes</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ShareholdersEquity" roleURI="http://www.mgic.com/role/ShareholdersEquity">
        <link:definition>0000021 - Disclosure - Shareholders' Equity</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StatutoryInformation" roleURI="http://www.mgic.com/role/StatutoryInformation">
        <link:definition>0000022 - Disclosure - Statutory Information</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SharebasedCompensationPlans" roleURI="http://www.mgic.com/role/SharebasedCompensationPlans">
        <link:definition>0000023 - Disclosure - Share-based Compensation Plans</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Leases" roleURI="http://www.mgic.com/role/Leases">
        <link:definition>0000024 - Disclosure - Leases</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LitigationandContingencies" roleURI="http://www.mgic.com/role/LitigationandContingencies">
        <link:definition>0000025 - Disclosure - Litigation and Contingencies</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIES" roleURI="http://www.mgic.com/role/SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIES">
        <link:definition>0000026 - Disclosure - SCHEDULE I - SUMMARY OF INVESTMENTS - OTHER THAN INVESTMENTS IN RELATED PARTIES</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANT" roleURI="http://www.mgic.com/role/SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANT">
        <link:definition>0000027 - Disclosure - SCHEDULE II - CONDENSED FINANCIAL INFORMATION OF REGISTRANT</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SCHEDULEIVREINSURANCE" roleURI="http://www.mgic.com/role/SCHEDULEIVREINSURANCE">
        <link:definition>0000028 - Disclosure - SCHEDULE IV - REINSURANCE</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SignificantAccountingPoliciesPolicies" roleURI="http://www.mgic.com/role/SignificantAccountingPoliciesPolicies">
        <link:definition>9954471 - Disclosure - Significant Accounting Policies (Policies)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EarningsperShareTables" roleURI="http://www.mgic.com/role/EarningsperShareTables">
        <link:definition>9954472 - Disclosure - Earnings per Share (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentsTables" roleURI="http://www.mgic.com/role/InvestmentsTables">
        <link:definition>9954473 - Disclosure - Investments (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueMeasurementsTables" roleURI="http://www.mgic.com/role/FairValueMeasurementsTables">
        <link:definition>9954474 - Disclosure - Fair Value Measurements (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DebtTables" roleURI="http://www.mgic.com/role/DebtTables">
        <link:definition>9954475 - Disclosure - Debt (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LossReservesTables" roleURI="http://www.mgic.com/role/LossReservesTables">
        <link:definition>9954476 - Disclosure - Loss Reserves (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ReinsuranceTables" roleURI="http://www.mgic.com/role/ReinsuranceTables">
        <link:definition>9954477 - Disclosure - Reinsurance (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="OtherComprehensiveIncomeLossTables" roleURI="http://www.mgic.com/role/OtherComprehensiveIncomeLossTables">
        <link:definition>9954478 - Disclosure - Other Comprehensive Income (Loss) (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BenefitPlansTables" roleURI="http://www.mgic.com/role/BenefitPlansTables">
        <link:definition>9954479 - Disclosure - Benefit Plans (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxesTables" roleURI="http://www.mgic.com/role/IncomeTaxesTables">
        <link:definition>9954480 - Disclosure - Income Taxes (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StatutoryInformationTables" roleURI="http://www.mgic.com/role/StatutoryInformationTables">
        <link:definition>9954481 - Disclosure - Statutory Information (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SharebasedCompensationPlansTables" roleURI="http://www.mgic.com/role/SharebasedCompensationPlansTables">
        <link:definition>9954482 - Disclosure - Share-based Compensation Plans (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesTables" roleURI="http://www.mgic.com/role/LeasesTables">
        <link:definition>9954483 - Disclosure - Leases (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NatureofBusinessDetails" roleURI="http://www.mgic.com/role/NatureofBusinessDetails">
        <link:definition>9954484 - Disclosure - Nature of Business (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SignificantAccountingPoliciesHomeOfficeandEquipmentDetails" roleURI="http://www.mgic.com/role/SignificantAccountingPoliciesHomeOfficeandEquipmentDetails">
        <link:definition>9954485 - Disclosure - Significant Accounting Policies - Home Office and Equipment (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SignificantAccountingPoliciesAdditionalInformationDetails" roleURI="http://www.mgic.com/role/SignificantAccountingPoliciesAdditionalInformationDetails">
        <link:definition>9954486 - Disclosure - Significant Accounting Policies - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EarningsperShareDetails" roleURI="http://www.mgic.com/role/EarningsperShareDetails">
        <link:definition>9954487 - Disclosure - Earnings per Share (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentsDetails" roleURI="http://www.mgic.com/role/InvestmentsDetails">
        <link:definition>9954488 - Disclosure - Investments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentsAmortizedCostandFairValuesofDebtSecuritiesDetails" roleURI="http://www.mgic.com/role/InvestmentsAmortizedCostandFairValuesofDebtSecuritiesDetails">
        <link:definition>9954489 - Disclosure - Investments - Amortized Cost and Fair Values of Debt Securities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentsEquitySecuritiesDetails" roleURI="http://www.mgic.com/role/InvestmentsEquitySecuritiesDetails">
        <link:definition>9954490 - Disclosure - Investments - Equity Securities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentsNetGainsLossesOnInvestmentsandOtherFinancialInstrumentsDetails" roleURI="http://www.mgic.com/role/InvestmentsNetGainsLossesOnInvestmentsandOtherFinancialInstrumentsDetails">
        <link:definition>9954491 - Disclosure - Investments - Net Gains (Losses) On Investments and Other Financial Instruments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentsSecuritiesInUnrealizedLossPositionDetails" roleURI="http://www.mgic.com/role/InvestmentsSecuritiesInUnrealizedLossPositionDetails">
        <link:definition>9954492 - Disclosure - Investments - Securities In Unrealized Loss Position (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentsNetUnrealizedGainsLossesofInvestmentsDetails" roleURI="http://www.mgic.com/role/InvestmentsNetUnrealizedGainsLossesofInvestmentsDetails">
        <link:definition>9954493 - Disclosure - Investments - Net Unrealized Gains (Losses) of Investments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InvestmentsNetInvestmentIncomeDetails" roleURI="http://www.mgic.com/role/InvestmentsNetInvestmentIncomeDetails">
        <link:definition>9954494 - Disclosure - Investments - Net Investment Income (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueMeasurementsDetails" roleURI="http://www.mgic.com/role/FairValueMeasurementsDetails">
        <link:definition>9954495 - Disclosure - Fair Value Measurements (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueMeasurementsAssetsandLiabilitiesNotMeasuredatFairValueDetails" roleURI="http://www.mgic.com/role/FairValueMeasurementsAssetsandLiabilitiesNotMeasuredatFairValueDetails">
        <link:definition>9954496 - Disclosure - Fair Value Measurements - Assets and Liabilities Not Measured at Fair Value (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DebtSummaryofObligationsDetails" roleURI="http://www.mgic.com/role/DebtSummaryofObligationsDetails">
        <link:definition>9954497 - Disclosure - Debt - Summary of Obligations (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DebtDetails" roleURI="http://www.mgic.com/role/DebtDetails">
        <link:definition>9954498 - Disclosure - Debt (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LossReservesNarrativeDetails" roleURI="http://www.mgic.com/role/LossReservesNarrativeDetails">
        <link:definition>9954499 - Disclosure - Loss Reserves - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LossReservesReconciliationofChangesinLossReservesDetails" roleURI="http://www.mgic.com/role/LossReservesReconciliationofChangesinLossReservesDetails">
        <link:definition>9954500 - Disclosure - Loss Reserves - Reconciliation of Changes in Loss Reserves (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LossReservesPriorYearLossReservesDetails" roleURI="http://www.mgic.com/role/LossReservesPriorYearLossReservesDetails">
        <link:definition>9954501 - Disclosure - Loss Reserves - Prior Year Loss Reserves (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LossReservesDefaultInventoryReconciliationDetails" roleURI="http://www.mgic.com/role/LossReservesDefaultInventoryReconciliationDetails">
        <link:definition>9954502 - Disclosure - Loss Reserves - Default Inventory Reconciliation (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LossReservesAgingofPrimaryDefaultInventoryDetails" roleURI="http://www.mgic.com/role/LossReservesAgingofPrimaryDefaultInventoryDetails">
        <link:definition>9954503 - Disclosure - Loss Reserves - Aging of Primary Default Inventory (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ReinsuranceSummaryofReinsuranceAgreementsDetails" roleURI="http://www.mgic.com/role/ReinsuranceSummaryofReinsuranceAgreementsDetails">
        <link:definition>9954504 - Disclosure - Reinsurance - Summary of Reinsurance Agreements (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ReinsuranceNarrativeDetails" roleURI="http://www.mgic.com/role/ReinsuranceNarrativeDetails">
        <link:definition>9954505 - Disclosure - Reinsurance - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ReinsuranceQuotaShareAgreementTermsDetails" roleURI="http://www.mgic.com/role/ReinsuranceQuotaShareAgreementTermsDetails">
        <link:definition>9954506 - Disclosure - Reinsurance - Quota Share Agreement Terms (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ReinsuranceExcessofLossReinsuranceDetails" roleURI="http://www.mgic.com/role/ReinsuranceExcessofLossReinsuranceDetails">
        <link:definition>9954507 - Disclosure - Reinsurance - Excess of Loss Reinsurance (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ReinsuranceHomeReEntitiesTotalAssetsDetails" roleURI="http://www.mgic.com/role/ReinsuranceHomeReEntitiesTotalAssetsDetails">
        <link:definition>9954508 - Disclosure - Reinsurance - Home Re Entities Total Assets (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="OtherComprehensiveIncomeLossPretaxComponentsofOtherComprehensiveIncomeLossandRelatedIncomeTaxBenefitExpenseDetails" roleURI="http://www.mgic.com/role/OtherComprehensiveIncomeLossPretaxComponentsofOtherComprehensiveIncomeLossandRelatedIncomeTaxBenefitExpenseDetails">
        <link:definition>9954509 - Disclosure - Other Comprehensive Income (Loss) - Pretax Components of Other Comprehensive Income (Loss) and Related Income Tax Benefit (Expense) (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="OtherComprehensiveIncomeLossPretaxandRelatedIncomeTaxBenefitExpenseComponentsDetails" roleURI="http://www.mgic.com/role/OtherComprehensiveIncomeLossPretaxandRelatedIncomeTaxBenefitExpenseComponentsDetails">
        <link:definition>9954510 - Disclosure - Other Comprehensive Income (Loss) - Pretax and Related Income Tax Benefit (Expense) Components (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="OtherComprehensiveIncomeLossRollForwardforAOCIDetails" roleURI="http://www.mgic.com/role/OtherComprehensiveIncomeLossRollForwardforAOCIDetails">
        <link:definition>9954511 - Disclosure - Other Comprehensive Income (Loss) - Roll-Forward for AOCI (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BenefitPlansComponentsofNetPeriodicBenefitCostsDetails" roleURI="http://www.mgic.com/role/BenefitPlansComponentsofNetPeriodicBenefitCostsDetails">
        <link:definition>9954512 - Disclosure - Benefit Plans - Components of Net Periodic Benefit Costs (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BenefitPlansDevelopmentofFundedStatusDetails" roleURI="http://www.mgic.com/role/BenefitPlansDevelopmentofFundedStatusDetails">
        <link:definition>9954513 - Disclosure - Benefit Plans - Development of Funded Status (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BenefitPlansAccumulatedOtherComprehensiveIncomeDetails" roleURI="http://www.mgic.com/role/BenefitPlansAccumulatedOtherComprehensiveIncomeDetails">
        <link:definition>9954514 - Disclosure - Benefit Plans - Accumulated Other Comprehensive Income (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BenefitPlansChangeinProjectBenefitAccumulatedBenefitObligationsDetails" roleURI="http://www.mgic.com/role/BenefitPlansChangeinProjectBenefitAccumulatedBenefitObligationsDetails">
        <link:definition>9954515 - Disclosure - Benefit Plans - Change in Project Benefit/Accumulated Benefit Obligations (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BenefitPlansChangeinPlanAssetsDetails" roleURI="http://www.mgic.com/role/BenefitPlansChangeinPlanAssetsDetails">
        <link:definition>9954516 - Disclosure - Benefit Plans - Change in Plan Assets (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BenefitPlansChangeinAccumulatedOtherComprehensiveIncomeAOCIandExpectedAmortizationDetails" roleURI="http://www.mgic.com/role/BenefitPlansChangeinAccumulatedOtherComprehensiveIncomeAOCIandExpectedAmortizationDetails">
        <link:definition>9954517 - Disclosure - Benefit Plans - Change in Accumulated Other Comprehensive Income (AOCI) and Expected Amortization (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BenefitPlansActuarialAssumptionsandYearEndAssetAllocationsDetails" roleURI="http://www.mgic.com/role/BenefitPlansActuarialAssumptionsandYearEndAssetAllocationsDetails">
        <link:definition>9954518 - Disclosure - Benefit Plans - Actuarial Assumptions and Year-End Asset Allocations (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BenefitPlansFairValueofPlanAssetsDetails" roleURI="http://www.mgic.com/role/BenefitPlansFairValueofPlanAssetsDetails">
        <link:definition>9954519 - Disclosure - Benefit Plans - Fair Value of Plan Assets (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BenefitPlansAdditionalDisclosuresDetails" roleURI="http://www.mgic.com/role/BenefitPlansAdditionalDisclosuresDetails">
        <link:definition>9954520 - Disclosure - Benefit Plans - Additional Disclosures (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BenefitPlansNarrativeDetails" roleURI="http://www.mgic.com/role/BenefitPlansNarrativeDetails">
        <link:definition>9954521 - Disclosure - Benefit Plans - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxesDetails" roleURI="http://www.mgic.com/role/IncomeTaxesDetails">
        <link:definition>9954522 - Disclosure - Income Taxes (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxesDetails_1" roleURI="http://www.mgic.com/role/IncomeTaxesDetails_1">
        <link:definition>9954522 - Disclosure - Income Taxes (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ShareholdersEquityDetails" roleURI="http://www.mgic.com/role/ShareholdersEquityDetails">
        <link:definition>9954523 - Disclosure - Shareholders' Equity (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StatutoryInformationNarrativeDetails" roleURI="http://www.mgic.com/role/StatutoryInformationNarrativeDetails">
        <link:definition>9954524 - Disclosure - Statutory Information - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StatutoryInformationStatutoryfinancialinformationofinsurancesubsidiariesDetails" roleURI="http://www.mgic.com/role/StatutoryInformationStatutoryfinancialinformationofinsurancesubsidiariesDetails">
        <link:definition>9954525 - Disclosure - Statutory Information - Statutory financial information of insurance subsidiaries (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="StatutoryInformationSurpluscontributionsanddividendsofinsurancesubsidiariesDetails" roleURI="http://www.mgic.com/role/StatutoryInformationSurpluscontributionsanddividendsofinsurancesubsidiariesDetails">
        <link:definition>9954526 - Disclosure - Statutory Information - Surplus contributions and dividends of insurance subsidiaries (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SharebasedCompensationPlansDetails" roleURI="http://www.mgic.com/role/SharebasedCompensationPlansDetails">
        <link:definition>9954527 - Disclosure - Share-based Compensation Plans (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SharebasedCompensationPlansNarrativeDetails" roleURI="http://www.mgic.com/role/SharebasedCompensationPlansNarrativeDetails">
        <link:definition>9954528 - Disclosure - Share-based Compensation Plans - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesDetails" roleURI="http://www.mgic.com/role/LeasesDetails">
        <link:definition>9954529 - Disclosure - Leases (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIESDetails" roleURI="http://www.mgic.com/role/SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIESDetails">
        <link:definition>9954530 - Disclosure - SCHEDULE I - SUMMARY OF INVESTMENTS - OTHER THAN INVESTMENTS IN RELATED PARTIES (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTDetails" roleURI="http://www.mgic.com/role/SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTDetails">
        <link:definition>9954531 - Disclosure - SCHEDULE II - CONDENSED FINANCIAL INFORMATION OF REGISTRANT (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTSUPPLEMENTARYNOTESDetails" roleURI="http://www.mgic.com/role/SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTSUPPLEMENTARYNOTESDetails">
        <link:definition>9954532 - Disclosure - SCHEDULE II - CONDENSED FINANCIAL INFORMATION OF REGISTRANT - SUPPLEMENTARY NOTES (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SCHEDULEIVREINSURANCEDetails" roleURI="http://www.mgic.com/role/SCHEDULEIVREINSURANCEDetails">
        <link:definition>9954533 - Disclosure - SCHEDULE IV - REINSURANCE (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
    </xs:appinfo>
  </xs:annotation>
  <xs:element id="mtg_DefinedContributionPlanEmployerMatchingContributionPercentOfMatchNextTwoPercentContributed" abstract="false" name="DefinedContributionPlanEmployerMatchingContributionPercentOfMatchNextTwoPercentContributed" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_PrimaryDefaultInventoryFourToElevenMonths" abstract="false" name="PrimaryDefaultInventoryFourToElevenMonths" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsThresholdForPrivateMortgageInsurerEligibilityRequirementsForTerminationElection" abstract="false" name="ReinsuranceQuotaShareReinsuranceAgreementTermsThresholdForPrivateMortgageInsurerEligibilityRequirementsForTerminationElection" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_QuotaShareReinsuranceTransactions20172018Member" abstract="true" name="QuotaShareReinsuranceTransactions20172018Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_A2023TraditionalXOLMember" abstract="true" name="A2023TraditionalXOLMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="mtg_IncreaseDecreaseInExpectedClaimRateMember" abstract="true" name="IncreaseDecreaseInExpectedClaimRateMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_HomeRe20191HomeRe20211AndHomeRe20212Member" abstract="true" name="HomeRe20191HomeRe20211AndHomeRe20212Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="mtg_MinimumNumberOfPaymentsPastDueToBeInDefault" abstract="false" name="MinimumNumberOfPaymentsPastDueToBeInDefault" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="mtg_QuotaShareReinsuranceTransaction2021And20222021NIWMember" abstract="true" name="QuotaShareReinsuranceTransaction2021And20222021NIWMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_DefinedBenefitPlanFutureEarningsPeriodUsedInDeterminingExpectedAverageRateOfEarnings" abstract="false" name="DefinedBenefitPlanFutureEarningsPeriodUsedInDeterminingExpectedAverageRateOfEarnings" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="mtg_PrimaryDefaultInventoryPercentage" abstract="false" name="PrimaryDefaultInventoryPercentage" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationandBenefitsEmployeeBenefits" abstract="false" name="DeferredTaxLiabilitiesTaxDeferredExpenseCompensationandBenefitsEmployeeBenefits" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_ReinsuranceRetentionPolicyDebtIssuedToCoverInsuranceTerm" abstract="false" name="ReinsuranceRetentionPolicyDebtIssuedToCoverInsuranceTerm" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="mtg_SummaryOfRestrictedStockOrRestrictedStockUnitActivityAbstract" abstract="true" name="SummaryOfRestrictedStockOrRestrictedStockUnitActivityAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="mtg_AgingOfPrimaryDefaultInventoryTableTextBlock" abstract="false" name="AgingOfPrimaryDefaultInventoryTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="mtg_IncreaseDecreaseInProfitCommissionReceivable" abstract="false" name="IncreaseDecreaseInProfitCommissionReceivable" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_SignificantAccountingPoliciesLineItems" abstract="true" name="SignificantAccountingPoliciesLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="mtg_RSUsNonEmployeeDirectorsMember" abstract="true" name="RSUsNonEmployeeDirectorsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_PrimaryDefaultInventoryTwelveMonthsOrMore" abstract="false" name="PrimaryDefaultInventoryTwelveMonthsOrMore" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="mtg_MortgageGuarantyInsuranceCorporationMember" abstract="true" name="MortgageGuarantyInsuranceCorporationMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_StockIssuedDuringPeriodValueTreasuryStockReissuedForShareBasedCompensation" abstract="false" name="StockIssuedDuringPeriodValueTreasuryStockReissuedForShareBasedCompensation" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_HomeRe20231Member" abstract="true" name="HomeRe20231Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="mtg_ReinsuranceRetentionPolicyPercentOfTotalTrustAssetsInvestedInCashOrDirectU.S.FederalGovernmentObligations" abstract="false" name="ReinsuranceRetentionPolicyPercentOfTotalTrustAssetsInvestedInCashOrDirectU.S.FederalGovernmentObligations" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_FivePointSevenFivePercentSeniorNotesMember" abstract="true" name="FivePointSevenFivePercentSeniorNotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_Percentofinternationalmutualfundsequityallocationinemergingmarkets" abstract="false" name="Percentofinternationalmutualfundsequityallocationinemergingmarkets" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_QuotaShareReinsuranceTransaction2020And20212021NIWMember" abstract="true" name="QuotaShareReinsuranceTransaction2020And20212021NIWMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_QuotaShareReinsuranceTransaction2020Member" abstract="true" name="QuotaShareReinsuranceTransaction2020Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_HomeRe20201Member" abstract="true" name="HomeRe20201Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_ScheduleOfQuotaShareReinsuranceAgreementsTableTextBlock" abstract="false" name="ScheduleOfQuotaShareReinsuranceAgreementsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="mtg_ScheduleOfChangesInFairValueOfPlanAssetsAndOtherComprehensiveIncomeLossTableTextBlock" abstract="false" name="ScheduleOfChangesInFairValueOfPlanAssetsAndOtherComprehensiveIncomeLossTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="mtg_ConvertibleJuniorDebenturesat9perannumDue2063Member" abstract="true" name="ConvertibleJuniorDebenturesat9perannumDue2063Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_LossesIncurredAbstract" abstract="true" name="LossesIncurredAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="mtg_NumberOfJurisdictionsWithRiskToCapitalRequirements" abstract="false" name="NumberOfJurisdictionsWithRiskToCapitalRequirements" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="mtg_QuotaShareReinsuranceTransaction20242024NIWMember" abstract="true" name="QuotaShareReinsuranceTransaction20242024NIWMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsCedingCommissionPercent" abstract="false" name="ReinsuranceQuotaShareReinsuranceAgreementTermsCedingCommissionPercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_GainLossOnDebtExtinghuishmentCashPortion" abstract="false" name="GainLossOnDebtExtinghuishmentCashPortion" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_AccountsReceivableDueFromAffiliates" abstract="false" name="AccountsReceivableDueFromAffiliates" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_ReinsuranceCedingCommissionEarned" abstract="false" name="ReinsuranceCedingCommissionEarned" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_MinimumAndMaximumAllocationRangesForFixedIncomeSecuritiesAndEquitySecuritiesTableTextBlock" abstract="false" name="MinimumAndMaximumAllocationRangesForFixedIncomeSecuritiesAndEquitySecuritiesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="mtg_InternationalMutualFundsMember" abstract="true" name="InternationalMutualFundsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_ExcessOfLossReinsuranceTransactionsMember" abstract="true" name="ExcessOfLossReinsuranceTransactionsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsCedingRatePercentOptionOne" abstract="false" name="ReinsuranceQuotaShareReinsuranceAgreementTermsCedingRatePercentOptionOne" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_A2020PlanMember" abstract="true" name="A2020PlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_DefinedBenefitPlanMinimumValueOfOutstandingNoncallableBondsUsedInHypotheticalCashFlowBondMatchingExercise" abstract="false" name="DefinedBenefitPlanMinimumValueOfOutstandingNoncallableBondsUsedInHypotheticalCashFlowBondMatchingExercise" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_PrimaryDefaultInventoryOtherItemsRemoved" abstract="false" name="PrimaryDefaultInventoryOtherItemsRemoved" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="mtg_StatutoryCapitalRequirementsRiskToCapitalRatio" abstract="false" name="StatutoryCapitalRequirementsRiskToCapitalRatio" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:pureItemType"/>
  <xs:element id="mtg_DividendDistributionOfInvestmentInSubsidiary" abstract="false" name="DividendDistributionOfInvestmentInSubsidiary" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_NetdeferredtaxassetliabilityTableTextBlock" abstract="false" name="NetdeferredtaxassetliabilityTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="mtg_PrimaryDefaultInventoryFourToElevenMonthsPercentage" abstract="false" name="PrimaryDefaultInventoryFourToElevenMonthsPercentage" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_ExcessOfLossReinsuranceTransactionsHomeReTransactionsMember" abstract="true" name="ExcessOfLossReinsuranceTransactionsHomeReTransactionsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsLifetimeLossRatioCap" abstract="false" name="ReinsuranceQuotaShareReinsuranceAgreementTermsLifetimeLossRatioCap" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_IncreaseDecreaseInReinsuranceRecoverableOnPaidLosses" abstract="false" name="IncreaseDecreaseInReinsuranceRecoverableOnPaidLosses" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_PrimaryDefaultInventoryRescissionsAndDenials" abstract="false" name="PrimaryDefaultInventoryRescissionsAndDenials" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="mtg_QuotaShareReinsuranceTransaction2022And20232023NIWMember" abstract="true" name="QuotaShareReinsuranceTransaction2022And20232023NIWMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_AuditInformationAbstract" abstract="true" name="AuditInformationAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="mtg_RestrictedStockAndRestrictedStockUnitsMember" abstract="true" name="RestrictedStockAndRestrictedStockUnitsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_PrimaryDefaultInventoryThreeMonthsOrLess" abstract="false" name="PrimaryDefaultInventoryThreeMonthsOrLess" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="mtg_DevelopmentOfFundedStatusTableTextBlock" abstract="false" name="DevelopmentOfFundedStatusTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue" abstract="false" name="AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_IncreaseDecreaseRelatedToPoolReservesLAEReservesAndReinsuranceMember" abstract="true" name="IncreaseDecreaseRelatedToPoolReservesLAEReservesAndReinsuranceMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_PrimaryDefaultInventoryNewNotices" abstract="false" name="PrimaryDefaultInventoryNewNotices" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost" abstract="false" name="AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_RollforwardOfPrimaryDefaultInventoryTableTextBlock" abstract="false" name="RollforwardOfPrimaryDefaultInventoryTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="mtg_StatutoryAccountingPracticesContingencyReserve" abstract="false" name="StatutoryAccountingPracticesContingencyReserve" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_OnePercentagePointIncreaseDecreaseInAverageClaimRateReserveFactorMember" abstract="true" name="OnePercentagePointIncreaseDecreaseInAverageClaimRateReserveFactorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_QuotaShareReinsuranceTransactions20152019Member" abstract="true" name="QuotaShareReinsuranceTransactions20152019Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_StatutoryAccountingPracticesStatutoryAmountAvailableForDividendPaymentsWithoutRegulatoryApprovalMeasurementMeasurementPeriod" abstract="false" name="StatutoryAccountingPracticesStatutoryAmountAvailableForDividendPaymentsWithoutRegulatoryApprovalMeasurementMeasurementPeriod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="mtg_PercentageOfStatutoryPolicyholdersSurplusUsedToDetermineMaximumAllowableDividends" abstract="false" name="PercentageOfStatutoryPolicyholdersSurplusUsedToDetermineMaximumAllowableDividends" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_AmountOfRequiredMpp" abstract="false" name="AmountOfRequiredMpp" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_PrimaryDefaultInventoryThreeMonthsOrLessPercentage" abstract="false" name="PrimaryDefaultInventoryThreeMonthsOrLessPercentage" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_StatutoryAccountingPracticesStatutoryAmountAvailableforDividendPaymentswithoutRegulatoryApprovalMeasurementDividendPaymentPeriod" abstract="false" name="StatutoryAccountingPracticesStatutoryAmountAvailableforDividendPaymentswithoutRegulatoryApprovalMeasurementDividendPaymentPeriod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="mtg_QuotaShareReinsuranceTransaction2022And20232022NIWMember" abstract="true" name="QuotaShareReinsuranceTransaction2022And20232022NIWMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_DiscretionaryProfitSharingContributionAsPercentageOfParticipantsEligibleCompensation" abstract="false" name="DiscretionaryProfitSharingContributionAsPercentageOfParticipantsEligibleCompensation" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_PrimaryDefaultInventoryCures" abstract="false" name="PrimaryDefaultInventoryCures" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="mtg_AmountOfPolicyholdersPositionAboveOrBelowRequiredRegulatoryMinimum" abstract="false" name="AmountOfPolicyholdersPositionAboveOrBelowRequiredRegulatoryMinimum" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_ReinsuranceRetentionPolicyExcessOfLossReinsuranceCoverages" abstract="false" name="ReinsuranceRetentionPolicyExcessOfLossReinsuranceCoverages" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_DomesticMutualFundsMember" abstract="true" name="DomesticMutualFundsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsContingentTerminationFee" abstract="false" name="ReinsuranceQuotaShareReinsuranceAgreementTermsContingentTerminationFee" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_PrimaryDefaultInventoryPaids" abstract="false" name="PrimaryDefaultInventoryPaids" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="mtg_PremiumRefundLiabilityExpectedClaimPayments" abstract="false" name="PremiumRefundLiabilityExpectedClaimPayments" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_ReinsuranceRetentionPolicyReductionInInsuranceLinkedNotes" abstract="false" name="ReinsuranceRetentionPolicyReductionInInsuranceLinkedNotes" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_DirectDomesticPrimaryRiskInForce" abstract="false" name="DirectDomesticPrimaryRiskInForce" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_PrimaryDefaultInventory" abstract="false" name="PrimaryDefaultInventory" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="mtg_ParentheticalInformationAbstract" abstract="true" name="ParentheticalInformationAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="mtg_PooledEquityAccountsMember" abstract="true" name="PooledEquityAccountsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_LossesPaidAbstract" abstract="true" name="LossesPaidAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="mtg_DirectDomesticPrimaryInsuranceInForce" abstract="false" name="DirectDomesticPrimaryInsuranceInForce" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_PremiumDeficiencyReservesPolicyTextBlock" abstract="false" name="PremiumDeficiencyReservesPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="mtg_DefinedBenefitPlanMaximuminvestmentininternationalmutualfunds" abstract="false" name="DefinedBenefitPlanMaximuminvestmentininternationalmutualfunds" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_FixedIncomeSecuritiesAbstract" abstract="true" name="FixedIncomeSecuritiesAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="mtg_TaxAndLossBondsHeld" abstract="false" name="TaxAndLossBondsHeld" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_DilutiveSecuritiesReductionInPotentiallyDilutiveSharesDueToDebtExtinguishment" abstract="false" name="DilutiveSecuritiesReductionInPotentiallyDilutiveSharesDueToDebtExtinguishment" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="mtg_SignificantAccountingPoliciesTable" abstract="true" name="SignificantAccountingPoliciesTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="mtg_ReinsuranceTerminations" abstract="false" name="ReinsuranceTerminations" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_PrimaryDefaultInventoryTwelveMonthsOrMorePercentOfPrimaryDefaultInventoryInDefaultForTwelveMonthsOrMoreInDefaultForMoreThanThirtySixConsecutiveMonths" abstract="false" name="PrimaryDefaultInventoryTwelveMonthsOrMorePercentOfPrimaryDefaultInventoryInDefaultForTwelveMonthsOrMoreInDefaultForMoreThanThirtySixConsecutiveMonths" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_CreditUnionQuotaShareReinsuranceTransactionMember" abstract="true" name="CreditUnionQuotaShareReinsuranceTransactionMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsSubjectToPerformanceConditionsPercent" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsSubjectToPerformanceConditionsPercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_DefinedContributionPlanEmployerMatchingContributionPercentOfEmployeesGrossPayNextTwoPercentContributed" abstract="false" name="DefinedContributionPlanEmployerMatchingContributionPercentOfEmployeesGrossPayNextTwoPercentContributed" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_AgingOfPrimaryDefaultInventoryAbstract" abstract="true" name="AgingOfPrimaryDefaultInventoryAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="mtg_QuotaShareReinsuranceTransaction2021And20222022NIWMember" abstract="true" name="QuotaShareReinsuranceTransaction2021And20222022NIWMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_AmortizationPeriodExcessofLossReinsuranceCoverage" abstract="false" name="AmortizationPeriodExcessofLossReinsuranceCoverage" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="mtg_QuotaShareReinsuranceTransactionsMember" abstract="true" name="QuotaShareReinsuranceTransactionsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_ProceedsFromSaleMaturityAndCollectionOfSecurities" abstract="false" name="ProceedsFromSaleMaturityAndCollectionOfSecurities" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_AdjustmentsToAdditionalPaidInCapitalConversionOfConvertibleDebt" abstract="false" name="AdjustmentsToAdditionalPaidInCapitalConversionOfConvertibleDebt" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_DebtInstrumentConvertibleNumberOfEquityInstrumentsIfDebtConverted" abstract="false" name="DebtInstrumentConvertibleNumberOfEquityInstrumentsIfDebtConverted" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="mtg_QuotaShareReinsuranceTransaction2019Member" abstract="true" name="QuotaShareReinsuranceTransaction2019Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_HomeRe20221Member" abstract="true" name="HomeRe20221Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsCedingRatePercentOptionTwo" abstract="false" name="ReinsuranceQuotaShareReinsuranceAgreementTermsCedingRatePercentOptionTwo" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_ReinsuranceRetentionPolicyInitialAmountRetained" abstract="false" name="ReinsuranceRetentionPolicyInitialAmountRetained" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_Risktocapitalratioatendofperiod" abstract="false" name="Risktocapitalratioatendofperiod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="mtg_MinimumPercentagesOfGainLossConsiderForAmortization" abstract="false" name="MinimumPercentagesOfGainLossConsiderForAmortization" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_DeferredTaxAssetsLiabilitiesNetOther" abstract="false" name="DeferredTaxAssetsLiabilitiesNetOther" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_LossReserveRollForward" abstract="true" name="LossReserveRollForward" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="mtg_DebtInstrumentOwnershipPercentageThresholdDeclarationOfDueAndPayable" abstract="false" name="DebtInstrumentOwnershipPercentageThresholdDeclarationOfDueAndPayable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_HomeRe20191Member" abstract="true" name="HomeRe20191Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_PrimaryDefaultInventoryTwelveMonthsOrMorePercentage" abstract="false" name="PrimaryDefaultInventoryTwelveMonthsOrMorePercentage" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_PrincipalAmountOfNotesUsedInDeterminingConversionRate" abstract="false" name="PrincipalAmountOfNotesUsedInDeterminingConversionRate" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_A2022TraditionalXOLMember" abstract="true" name="A2022TraditionalXOLMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_OtherInvestedAssetsFairValueDisclosure" abstract="false" name="OtherInvestedAssetsFairValueDisclosure" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_NetGainsLossesOnInvestmentsAndOtherFinancialInstrumentsTableTextBlock" abstract="false" name="NetGainsLossesOnInvestmentsAndOtherFinancialInstrumentsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="mtg_PercentofinternationalmutualfundsequityallocationincompaniesprimarilybasedinEuropeandPacificBasin" abstract="false" name="PercentofinternationalmutualfundsequityallocationincompaniesprimarilybasedinEuropeandPacificBasin" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_QuotaShareReinsuranceTransaction2020And20212020NIWMember" abstract="true" name="QuotaShareReinsuranceTransaction2020And20212020NIWMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_HomeRe20212Member" abstract="true" name="HomeRe20212Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_QuotaShareReinsuranceTransaction20232023NIWMember" abstract="true" name="QuotaShareReinsuranceTransaction20232023NIWMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_NetGainsLossesOnInvestmentsAndOtherFinancialInstruments" abstract="false" name="NetGainsLossesOnInvestmentsAndOtherFinancialInstruments" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_HomeRe20211Member" abstract="true" name="HomeRe20211Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_DefinedBenefitPlanBenefitsPaidDirectlyByCompany" abstract="false" name="DefinedBenefitPlanBenefitsPaidDirectlyByCompany" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_InvestmentInSubsidiariesAtEquityInNetAssets" abstract="false" name="InvestmentInSubsidiariesAtEquityInNetAssets" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsQuotaSharePercent" abstract="false" name="ReinsuranceQuotaShareReinsuranceAgreementTermsQuotaSharePercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_FivePointTwoFivePercentSeniorNotesMember" abstract="true" name="FivePointTwoFivePercentSeniorNotesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_StatutoryCapitalAbstract" abstract="true" name="StatutoryCapitalAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="mtg_PrimaryDefaultInventoryClaimsReceivedInventory" abstract="false" name="PrimaryDefaultInventoryClaimsReceivedInventory" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="mtg_RealEstateAcquiredMember" abstract="true" name="RealEstateAcquiredMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_ReinsuranceRetentionPolicyFundingPercentage" abstract="false" name="ReinsuranceRetentionPolicyFundingPercentage" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:pureItemType"/>
  <xs:element id="mtg_MinimumPercentageReturnShouldExceedGrowthInConsumerPriceIndexAnnually" abstract="false" name="MinimumPercentageReturnShouldExceedGrowthInConsumerPriceIndexAnnually" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="mtg_UnvestedRestrictedStockUnitsMember" abstract="true" name="UnvestedRestrictedStockUnitsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_NatureOfBusinessAbstract" abstract="true" name="NatureOfBusinessAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="mtg_HomeRe20181Member" abstract="true" name="HomeRe20181Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_SeniorNotesFairValueDisclosure" abstract="false" name="SeniorNotesFairValueDisclosure" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_ReinsuranceAgreementOptionalRightPercentOfReinsuranceCoverageThreshold" abstract="false" name="ReinsuranceAgreementOptionalRightPercentOfReinsuranceCoverageThreshold" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="mtg_A1000IncreaseDecreaseInAverageSeverityReserveFactorMember" abstract="true" name="A1000IncreaseDecreaseInAverageSeverityReserveFactorMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_PrimaryDefaultInventoryRollForward" abstract="true" name="PrimaryDefaultInventoryRollForward" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="mtg_StatutoryCapitalRequirementsAbstract" abstract="true" name="StatutoryCapitalRequirementsAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="mtg_HomeRespecialpurposeinsurersMember" abstract="true" name="HomeRespecialpurposeinsurersMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="mtg_ScheduleofInvestmentAllocationStrategiesTableTextBlock" abstract="false" name="ScheduleofInvestmentAllocationStrategiesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="mtg_ReinsuranceProfitCommission" abstract="false" name="ReinsuranceProfitCommission" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="mtg_ReinsuranceQuotaShareReinsuranceAgreementTermsAnnualLossRatioCap" abstract="false" name="ReinsuranceQuotaShareReinsuranceAgreementTermsAnnualLossRatioCap" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
</xs:schema>
