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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019fd8fc-79d4-7551-9fea-e04f1bda5538,g:6f1c0651-8048-4fd8-9364-146a74354164-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item"/>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="mtg-20260930.xsd#CONSOLIDATEDBALANCESHEETS"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019fd8fc-7b17-7d2f-a4ca-69cfcaba29cd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_019fd8fc-7b17-7141-aefb-96c1347e3c73" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019fd8fc-7b17-7d2f-a4ca-69cfcaba29cd" xlink:to="loc_us-gaap_CommitmentsAndContingencies_019fd8fc-7b17-7141-aefb-96c1347e3c73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019fd8fc-7b17-7247-84fb-9c60cd1d6504" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019fd8fc-7b17-7d2f-a4ca-69cfcaba29cd" xlink:to="loc_us-gaap_Liabilities_019fd8fc-7b17-7247-84fb-9c60cd1d6504" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019fd8fc-7b17-73b2-b06c-4d473807046d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019fd8fc-7b17-7d2f-a4ca-69cfcaba29cd" xlink:to="loc_us-gaap_StockholdersEquity_019fd8fc-7b17-73b2-b06c-4d473807046d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019fd8fc-7b17-78cd-b0d3-08e74a680f05" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_019fd8fc-7b17-7074-8ae0-719b8db79405" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Investments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd8fc-7b17-78cd-b0d3-08e74a680f05" xlink:to="loc_us-gaap_Investments_019fd8fc-7b17-7074-8ae0-719b8db79405" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019fd8fc-7b17-7c9c-8369-ff212a77ea51" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd8fc-7b17-78cd-b0d3-08e74a680f05" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019fd8fc-7b17-7c9c-8369-ff212a77ea51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_019fd8fc-7b17-7f05-9250-e37a8d728263" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashAndCashEquivalents"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd8fc-7b17-78cd-b0d3-08e74a680f05" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_019fd8fc-7b17-7f05-9250-e37a8d728263" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedInvestmentIncomeReceivable_019fd8fc-7b17-7207-b037-5ab880080488" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedInvestmentIncomeReceivable"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd8fc-7b17-78cd-b0d3-08e74a680f05" xlink:to="loc_us-gaap_AccruedInvestmentIncomeReceivable_019fd8fc-7b17-7207-b037-5ab880080488" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments_019fd8fc-7b17-7839-b1ba-6aadc55c7c28" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd8fc-7b17-78cd-b0d3-08e74a680f05" xlink:to="loc_us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments_019fd8fc-7b17-7839-b1ba-6aadc55c7c28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceRecoverablesOnPaidLosses_019fd8fc-7b17-7d2c-8208-722198afbfbe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReinsuranceRecoverablesOnPaidLosses"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd8fc-7b17-78cd-b0d3-08e74a680f05" xlink:to="loc_us-gaap_ReinsuranceRecoverablesOnPaidLosses_019fd8fc-7b17-7d2c-8208-722198afbfbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsReceivableAtCarryingValue_019fd8fc-7b17-7a22-8dcd-787c8a292529" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PremiumsReceivableAtCarryingValue"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd8fc-7b17-78cd-b0d3-08e74a680f05" xlink:to="loc_us-gaap_PremiumsReceivableAtCarryingValue_019fd8fc-7b17-7a22-8dcd-787c8a292529" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_019fd8fc-7b17-7ec3-845c-0deb200baf77" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd8fc-7b17-78cd-b0d3-08e74a680f05" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_019fd8fc-7b17-7ec3-845c-0deb200baf77" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredPolicyAcquisitionCosts_019fd8fc-7b17-7868-9f26-88e44dfc9f6b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredPolicyAcquisitionCosts"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd8fc-7b17-78cd-b0d3-08e74a680f05" xlink:to="loc_us-gaap_DeferredPolicyAcquisitionCosts_019fd8fc-7b17-7868-9f26-88e44dfc9f6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_019fd8fc-7b17-7005-ab7d-1339ba09c68d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd8fc-7b17-78cd-b0d3-08e74a680f05" xlink:to="loc_us-gaap_OtherAssets_019fd8fc-7b17-7005-ab7d-1339ba09c68d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_019fd8fc-7b17-7bde-bd76-8cf68a244421" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019fd8fc-7b17-78cd-b0d3-08e74a680f05" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_019fd8fc-7b17-7bde-bd76-8cf68a244421" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019fd8fc-7b17-7aec-9545-d653ca14e1e3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019fd8fc-7b17-7599-bcb4-8d15ea55fd36" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019fd8fc-7b17-7aec-9545-d653ca14e1e3" xlink:to="loc_us-gaap_CommonStockValue_019fd8fc-7b17-7599-bcb4-8d15ea55fd36" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_019fd8fc-7b17-7541-9221-3a4a70548b78" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019fd8fc-7b17-7aec-9545-d653ca14e1e3" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_019fd8fc-7b17-7541-9221-3a4a70548b78" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019fd8fc-7b17-763b-8f4b-09e12f2d6a90" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019fd8fc-7b17-7aec-9545-d653ca14e1e3" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019fd8fc-7b17-763b-8f4b-09e12f2d6a90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019fd8fc-7b17-77a7-97aa-39c9e87de30a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019fd8fc-7b17-7aec-9545-d653ca14e1e3" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019fd8fc-7b17-77a7-97aa-39c9e87de30a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019fd8fc-7b17-754a-a903-f8b4ca3f4093" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_019fd8fc-7b17-7948-8472-846e3a8dd7d2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd8fc-7b17-754a-a903-f8b4ca3f4093" xlink:to="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_019fd8fc-7b17-7948-8472-846e3a8dd7d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnearnedPremiums_019fd8fc-7b17-7cbb-b974-b1f9adf6cc68" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnearnedPremiums"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd8fc-7b17-754a-a903-f8b4ca3f4093" xlink:to="loc_us-gaap_UnearnedPremiums_019fd8fc-7b17-7cbb-b974-b1f9adf6cc68" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_019fd8fc-7b17-7420-a851-33d3822e5798" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd8fc-7b17-754a-a903-f8b4ca3f4093" xlink:to="loc_us-gaap_OtherLiabilities_019fd8fc-7b17-7420-a851-33d3822e5798" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotes_019fd8fc-7b17-7202-b9f8-93cedc83e2c1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SeniorNotes"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd8fc-7b17-754a-a903-f8b4ca3f4093" xlink:to="loc_us-gaap_SeniorNotes_019fd8fc-7b17-7202-b9f8-93cedc83e2c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_TransferableFederalTaxCreditPayable_019fd8fc-7b17-7a03-957d-4fce38ba1bb4" xlink:href="mtg-20260930.xsd#mtg_TransferableFederalTaxCreditPayable"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019fd8fc-7b17-754a-a903-f8b4ca3f4093" xlink:to="loc_mtg_TransferableFederalTaxCreditPayable_019fd8fc-7b17-7a03-957d-4fce38ba1bb4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_019fd8fc-7b17-71ea-afb7-639ee72717ff" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Investments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019fd8fc-7b17-77bd-8422-006ac76b79ee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_019fd8fc-7b17-71ea-afb7-639ee72717ff" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019fd8fc-7b17-77bd-8422-006ac76b79ee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInvestments_019fd8fc-7b17-794e-87dc-0cb9776d465f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherInvestments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_019fd8fc-7b17-71ea-afb7-639ee72717ff" xlink:to="loc_us-gaap_OtherInvestments_019fd8fc-7b17-794e-87dc-0cb9776d465f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_019fd8fc-7b17-72fa-bea8-e907ff6c7113" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_019fd8fc-7b17-71ea-afb7-639ee72717ff" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_019fd8fc-7b17-72fa-bea8-e907ff6c7113" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="mtg-20260930.xsd#CONSOLIDATEDSTATEMENTSOFOPERATIONS"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsEarnedNet_019fd8fc-7b17-7926-937f-52b6bc7d43f0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PremiumsEarnedNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsWrittenNet_019fd8fc-7b17-752c-9ed8-93e6fcc9a095" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PremiumsWrittenNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNet_019fd8fc-7b17-7926-937f-52b6bc7d43f0" xlink:to="loc_us-gaap_PremiumsWrittenNet_019fd8fc-7b17-752c-9ed8-93e6fcc9a095" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInUnearnedPremiumsNet_019fd8fc-7b17-7053-969e-b1d4d49e2cdc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInUnearnedPremiumsNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNet_019fd8fc-7b17-7926-937f-52b6bc7d43f0" xlink:to="loc_us-gaap_IncreaseDecreaseInUnearnedPremiumsNet_019fd8fc-7b17-7053-969e-b1d4d49e2cdc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019fd8fc-7b17-7dc7-bf82-0b45a0070cd8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019fd8fc-7b17-7a8b-a224-5b05b300dfc8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019fd8fc-7b17-7dc7-bf82-0b45a0070cd8" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019fd8fc-7b17-7a8b-a224-5b05b300dfc8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019fd8fc-7b17-7b2e-b1ea-435d13fb3b70" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019fd8fc-7b17-7dc7-bf82-0b45a0070cd8" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019fd8fc-7b17-7b2e-b1ea-435d13fb3b70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_019fd8fc-7b17-7582-aed8-a95d38ddfcbd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Revenues"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIncome_019fd8fc-7b17-705e-8004-349c94a57886" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_019fd8fc-7b17-7582-aed8-a95d38ddfcbd" xlink:to="loc_us-gaap_OtherIncome_019fd8fc-7b17-705e-8004-349c94a57886" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_019fd8fc-7b17-7d0b-b3c9-3a999a5674b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetInvestmentIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_019fd8fc-7b17-7582-aed8-a95d38ddfcbd" xlink:to="loc_us-gaap_NetInvestmentIncome_019fd8fc-7b17-7d0b-b3c9-3a999a5674b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsEarnedNet_019fd8fc-7b17-7f53-9685-4030d7a3e677" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PremiumsEarnedNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_019fd8fc-7b17-7582-aed8-a95d38ddfcbd" xlink:to="loc_us-gaap_PremiumsEarnedNet_019fd8fc-7b17-7f53-9685-4030d7a3e677" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_NetGainsLossesOnInvestmentsAndOtherFinancialInstruments_019fd8fc-7b17-7dff-a3ca-e4e6037c8a93" xlink:href="mtg-20260930.xsd#mtg_NetGainsLossesOnInvestmentsAndOtherFinancialInstruments"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_019fd8fc-7b17-7582-aed8-a95d38ddfcbd" xlink:to="loc_mtg_NetGainsLossesOnInvestmentsAndOtherFinancialInstruments_019fd8fc-7b17-7dff-a3ca-e4e6037c8a93" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsWrittenNet_019fd8fc-7b17-7470-b6e5-cd0eae9459cb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PremiumsWrittenNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DirectPremiumsWritten_019fd8fc-7b17-7976-8c35-ec358bb86c1c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DirectPremiumsWritten"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsWrittenNet_019fd8fc-7b17-7470-b6e5-cd0eae9459cb" xlink:to="loc_us-gaap_DirectPremiumsWritten_019fd8fc-7b17-7976-8c35-ec358bb86c1c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssumedPremiumsWritten_019fd8fc-7b17-7f76-88b9-9c3a626ff5f9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssumedPremiumsWritten"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsWrittenNet_019fd8fc-7b17-7470-b6e5-cd0eae9459cb" xlink:to="loc_us-gaap_AssumedPremiumsWritten_019fd8fc-7b17-7f76-88b9-9c3a626ff5f9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CededPremiumsWritten_019fd8fc-7b17-78c8-8847-edfe3b45595b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CededPremiumsWritten"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsWrittenNet_019fd8fc-7b17-7470-b6e5-cd0eae9459cb" xlink:to="loc_us-gaap_CededPremiumsWritten_019fd8fc-7b17-78c8-8847-edfe3b45595b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BenefitsLossesAndExpenses_019fd8fc-7b17-749b-b32c-4a673d4908c2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BenefitsLossesAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherUnderwritingExpense_019fd8fc-7b17-7a19-b087-0ec0d069c33f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherUnderwritingExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_019fd8fc-7b17-749b-b32c-4a673d4908c2" xlink:to="loc_us-gaap_OtherUnderwritingExpense_019fd8fc-7b17-7a19-b087-0ec0d069c33f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_019fd8fc-7b17-7696-9a6f-e156e9745bf6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpenseDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_019fd8fc-7b17-749b-b32c-4a673d4908c2" xlink:to="loc_us-gaap_InterestExpenseDebt_019fd8fc-7b17-7696-9a6f-e156e9745bf6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredNet_019fd8fc-7b17-7534-81e3-55d8f3280e51" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PolicyholderBenefitsAndClaimsIncurredNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_019fd8fc-7b17-749b-b32c-4a673d4908c2" xlink:to="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredNet_019fd8fc-7b17-7534-81e3-55d8f3280e51" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredPolicyAcquisitionCostAmortizationExpense_019fd8fc-7b17-746d-815a-3b9e9ea18a70" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredPolicyAcquisitionCostAmortizationExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_019fd8fc-7b17-749b-b32c-4a673d4908c2" xlink:to="loc_us-gaap_DeferredPolicyAcquisitionCostAmortizationExpense_019fd8fc-7b17-746d-815a-3b9e9ea18a70" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019fd8fc-7b17-7ba0-91c6-bf4d32d72f4e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BenefitsLossesAndExpenses_019fd8fc-7b17-776a-a28c-977b764fe45b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BenefitsLossesAndExpenses"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019fd8fc-7b17-7ba0-91c6-bf4d32d72f4e" xlink:to="loc_us-gaap_BenefitsLossesAndExpenses_019fd8fc-7b17-776a-a28c-977b764fe45b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_019fd8fc-7b17-7dc2-b12f-eb55e73c9d81" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019fd8fc-7b17-7ba0-91c6-bf4d32d72f4e" xlink:to="loc_us-gaap_Revenues_019fd8fc-7b17-7dc2-b12f-eb55e73c9d81" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="simple" xlink:href="mtg-20260930.xsd#CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019fd8fc-7b17-7d9d-9934-c3d55c34fd2f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_019fd8fc-7b17-71e8-b223-a27b625a142e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019fd8fc-7b17-7d9d-9934-c3d55c34fd2f" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_019fd8fc-7b17-71e8-b223-a27b625a142e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_019fd8fc-7b17-7978-83c2-f8c693483d7c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019fd8fc-7b17-7d9d-9934-c3d55c34fd2f" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_019fd8fc-7b17-7978-83c2-f8c693483d7c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_019fd8fc-7b17-79f9-ac4c-c5d5ded62815" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019fd8fc-7b17-76a0-b1e0-acf31236e28e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019fd8fc-7b17-79f9-ac4c-c5d5ded62815" xlink:to="loc_us-gaap_NetIncomeLoss_019fd8fc-7b17-76a0-b1e0-acf31236e28e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019fd8fc-7b17-7354-8ce0-b325bd957787" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019fd8fc-7b17-79f9-ac4c-c5d5ded62815" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019fd8fc-7b17-7354-8ce0-b325bd957787" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="mtg-20260930.xsd#CONSOLIDATEDSTATEMENTSOFCASHFLOWS"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd8fc-7b17-7bbb-85a6-b73c4ea55d72" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019fd8fc-7b17-7b0e-8f34-56f134416a40" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd8fc-7b17-7bbb-85a6-b73c4ea55d72" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019fd8fc-7b17-7b0e-8f34-56f134416a40" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_019fd8fc-7b17-7467-911f-4ca0eec4f474" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireInvestments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd8fc-7b17-7bbb-85a6-b73c4ea55d72" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_019fd8fc-7b17-7467-911f-4ca0eec4f474" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_019fd8fc-7b17-7eb1-b8ce-0909b41901c2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd8fc-7b17-7bbb-85a6-b73c4ea55d72" xlink:to="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_019fd8fc-7b17-7eb1-b8ce-0909b41901c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ProceedsFromMaturityOfFixedIncomeSecurities_019fd8fc-7b17-7c78-a4b0-7bd96d762b80" xlink:href="mtg-20260930.xsd#mtg_ProceedsFromMaturityOfFixedIncomeSecurities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd8fc-7b17-7bbb-85a6-b73c4ea55d72" xlink:to="loc_mtg_ProceedsFromMaturityOfFixedIncomeSecurities_019fd8fc-7b17-7c78-a4b0-7bd96d762b80" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_019fd8fc-7b17-7857-a19f-ab151cdb7153" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-7cc3-a092-ae657abe8e62" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_019fd8fc-7b17-7857-a19f-ab151cdb7153" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-7cc3-a092-ae657abe8e62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd8fc-7b17-7328-9adb-6abbedd5099d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_019fd8fc-7b17-7857-a19f-ab151cdb7153" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019fd8fc-7b17-7328-9adb-6abbedd5099d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd8fc-7b17-70d2-b799-57c2a72ae09c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_019fd8fc-7b17-7857-a19f-ab151cdb7153" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd8fc-7b17-70d2-b799-57c2a72ae09c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-779b-99ad-cce69f12c3f2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019fd8fc-7b17-7530-a6db-bb2256103b4e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-779b-99ad-cce69f12c3f2" xlink:to="loc_us-gaap_NetIncomeLoss_019fd8fc-7b17-7530-a6db-bb2256103b4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_019fd8fc-7b17-7eb8-9088-4438b2bb0f86" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepreciationAmortizationAndAccretionNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-779b-99ad-cce69f12c3f2" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_019fd8fc-7b17-7eb8-9088-4438b2bb0f86" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019fd8fc-7b17-79c3-ba0d-a50f2b4231a4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-779b-99ad-cce69f12c3f2" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019fd8fc-7b17-79c3-ba0d-a50f2b4231a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_019fd8fc-7b17-78dd-8f6f-33470b1d4595" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-779b-99ad-cce69f12c3f2" xlink:to="loc_us-gaap_ShareBasedCompensation_019fd8fc-7b17-78dd-8f6f-33470b1d4595" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_NetGainsLossesOnInvestmentsAndOtherFinancialInstruments_019fd8fc-7b17-7aa2-8ca6-b6cfa56ad424" xlink:href="mtg-20260930.xsd#mtg_NetGainsLossesOnInvestmentsAndOtherFinancialInstruments"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-779b-99ad-cce69f12c3f2" xlink:to="loc_mtg_NetGainsLossesOnInvestmentsAndOtherFinancialInstruments_019fd8fc-7b17-7aa2-8ca6-b6cfa56ad424" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_019fd8fc-7b17-790a-b092-5f8ac0386ac6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-779b-99ad-cce69f12c3f2" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_019fd8fc-7b17-790a-b092-5f8ac0386ac6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInReinsuranceRecoverable_019fd8fc-7b17-7331-9573-16f809572b78" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInReinsuranceRecoverable"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-779b-99ad-cce69f12c3f2" xlink:to="loc_us-gaap_IncreaseDecreaseInReinsuranceRecoverable_019fd8fc-7b17-7331-9573-16f809572b78" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_IncreaseDecreaseInReinsuranceRecoverableOnPaidLosses_019fd8fc-7b17-796a-8980-23789f1ba31c" xlink:href="mtg-20260930.xsd#mtg_IncreaseDecreaseInReinsuranceRecoverableOnPaidLosses"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-779b-99ad-cce69f12c3f2" xlink:to="loc_mtg_IncreaseDecreaseInReinsuranceRecoverableOnPaidLosses_019fd8fc-7b17-796a-8980-23789f1ba31c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPremiumsReceivable_019fd8fc-7b17-7109-a52a-97ede42e5e43" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInPremiumsReceivable"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-779b-99ad-cce69f12c3f2" xlink:to="loc_us-gaap_IncreaseDecreaseInPremiumsReceivable_019fd8fc-7b17-7109-a52a-97ede42e5e43" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDeferredPolicyAcquisitionCosts_019fd8fc-7b17-7e3b-9d44-164ac28781d6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInDeferredPolicyAcquisitionCosts"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-779b-99ad-cce69f12c3f2" xlink:to="loc_us-gaap_IncreaseDecreaseInDeferredPolicyAcquisitionCosts_019fd8fc-7b17-7e3b-9d44-164ac28781d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInLiabilityForClaimsAndClaimsAdjustmentExpenseReserve_019fd8fc-7b17-7d6b-967e-cdc8274aec01" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInLiabilityForClaimsAndClaimsAdjustmentExpenseReserve"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-779b-99ad-cce69f12c3f2" xlink:to="loc_us-gaap_IncreaseDecreaseInLiabilityForClaimsAndClaimsAdjustmentExpenseReserve_019fd8fc-7b17-7d6b-967e-cdc8274aec01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInUnearnedPremiums_019fd8fc-7b17-7a57-82d9-7116a8642cf9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInUnearnedPremiums"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-779b-99ad-cce69f12c3f2" xlink:to="loc_us-gaap_IncreaseDecreaseInUnearnedPremiums_019fd8fc-7b17-7a57-82d9-7116a8642cf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_019fd8fc-7b17-76bb-8642-6129b64b2243" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-779b-99ad-cce69f12c3f2" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_019fd8fc-7b17-76bb-8642-6129b64b2243" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_019fd8fc-7b17-725e-9c2e-3a90bbabdca0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019fd8fc-7b17-779b-99ad-cce69f12c3f2" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_019fd8fc-7b17-725e-9c2e-3a90bbabdca0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd8fc-7b17-74ae-9280-6427612147da" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019fd8fc-7b17-7cf7-b08f-fb8820b28204" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd8fc-7b17-74ae-9280-6427612147da" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019fd8fc-7b17-7cf7-b08f-fb8820b28204" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_019fd8fc-7b17-7d0d-abb0-b13eecfe62a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd8fc-7b17-74ae-9280-6427612147da" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_019fd8fc-7b17-7d0d-abb0-b13eecfe62a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_019fd8fc-7b17-75cb-8e1e-ce47b9973a9c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019fd8fc-7b17-74ae-9280-6427612147da" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_019fd8fc-7b17-75cb-8e1e-ce47b9973a9c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/EarningsperShareDetails" xlink:type="simple" xlink:href="mtg-20260930.xsd#EarningsperShareDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/EarningsperShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019fd8fc-7b17-70d9-9b7a-e9ced097184b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019fd8fc-7b17-7287-a7aa-64e741611281" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019fd8fc-7b17-70d9-9b7a-e9ced097184b" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019fd8fc-7b17-7287-a7aa-64e741611281" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019fd8fc-7b17-7a3f-ae37-5b1c18080f0b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019fd8fc-7b17-70d9-9b7a-e9ced097184b" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019fd8fc-7b17-7a3f-ae37-5b1c18080f0b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/InvestmentsAmortizedCostandFairValuesofDebtSecuritiesDetails" xlink:type="simple" xlink:href="mtg-20260930.xsd#InvestmentsAmortizedCostandFairValuesofDebtSecuritiesDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/InvestmentsAmortizedCostandFairValuesofDebtSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_019fd8fc-7b17-7b4c-ad01-26a84a4f2f48" xlink:href="mtg-20260930.xsd#mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019fd8fc-7b17-7729-aaf4-dd35ec691052" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_019fd8fc-7b17-7b4c-ad01-26a84a4f2f48" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019fd8fc-7b17-7729-aaf4-dd35ec691052" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019fd8fc-7b17-79c6-a64b-749e8f0f45f5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_019fd8fc-7b17-7b4c-ad01-26a84a4f2f48" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019fd8fc-7b17-79c6-a64b-749e8f0f45f5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_019fd8fc-7b17-75c3-bde1-54377a43a85d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_019fd8fc-7b17-7b4c-ad01-26a84a4f2f48" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_019fd8fc-7b17-75c3-bde1-54377a43a85d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_019fd8fc-7b17-7a73-be73-4454db2206ea" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_019fd8fc-7b17-7b4c-ad01-26a84a4f2f48" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_019fd8fc-7b17-7a73-be73-4454db2206ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_019fd8fc-7b17-7969-826d-20c70aa16c9c" xlink:href="mtg-20260930.xsd#mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019fd8fc-7b17-7231-8436-af960f8ea569" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_019fd8fc-7b17-7969-826d-20c70aa16c9c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019fd8fc-7b17-7231-8436-af960f8ea569" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019fd8fc-7b17-7da9-a76f-0e8b86694149" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_019fd8fc-7b17-7969-826d-20c70aa16c9c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019fd8fc-7b17-7da9-a76f-0e8b86694149" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019fd8fc-7b17-7894-96f7-4281f3704c53" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_019fd8fc-7b17-7969-826d-20c70aa16c9c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019fd8fc-7b17-7894-96f7-4281f3704c53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_019fd8fc-7b17-7405-a495-f86f292b1c2a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_019fd8fc-7b17-7969-826d-20c70aa16c9c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_019fd8fc-7b17-7405-a495-f86f292b1c2a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019fd8fc-7b17-75a6-869f-8d4ebf9b1283" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_019fd8fc-7b17-7d38-87fd-9eb07acb0e29" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019fd8fc-7b17-75a6-869f-8d4ebf9b1283" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_019fd8fc-7b17-7d38-87fd-9eb07acb0e29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_019fd8fc-7b17-7f8c-be9e-8fbe28bb596f" xlink:href="mtg-20260930.xsd#mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019fd8fc-7b17-75a6-869f-8d4ebf9b1283" xlink:to="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_019fd8fc-7b17-7f8c-be9e-8fbe28bb596f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_019fd8fc-7b17-7487-a06c-ab49aa0e37d6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_019fd8fc-7b17-73b9-be88-94f1919aa187" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_019fd8fc-7b17-7487-a06c-ab49aa0e37d6" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_019fd8fc-7b17-73b9-be88-94f1919aa187" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_019fd8fc-7b17-75ca-9578-082e30ee9ea4" xlink:href="mtg-20260930.xsd#mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_019fd8fc-7b17-7487-a06c-ab49aa0e37d6" xlink:to="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_019fd8fc-7b17-75ca-9578-082e30ee9ea4" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/InvestmentsSecuritiesInUnrealizedLossPositionDetails" xlink:type="simple" xlink:href="mtg-20260930.xsd#InvestmentsSecuritiesInUnrealizedLossPositionDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/InvestmentsSecuritiesInUnrealizedLossPositionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_019fd8fc-7b17-7bc8-9363-2e8ab0c97347" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_019fd8fc-7b17-7ad1-951f-2a351cf742b1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_019fd8fc-7b17-7bc8-9363-2e8ab0c97347" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_019fd8fc-7b17-7ad1-951f-2a351cf742b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_019fd8fc-7b17-7fe2-800d-50110d318db5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_019fd8fc-7b17-7bc8-9363-2e8ab0c97347" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_019fd8fc-7b17-7fe2-800d-50110d318db5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019fd8fc-7b17-729f-a9fc-90282ac6ca35" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_019fd8fc-7b17-7ee6-a678-573d8ec85768" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019fd8fc-7b17-729f-a9fc-90282ac6ca35" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_019fd8fc-7b17-7ee6-a678-573d8ec85768" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_019fd8fc-7b17-74e5-8b2f-668b25d7fcf0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019fd8fc-7b17-729f-a9fc-90282ac6ca35" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_019fd8fc-7b17-74e5-8b2f-668b25d7fcf0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurementsDetails" xlink:type="simple" xlink:href="mtg-20260930.xsd#FairValueMeasurementsDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/FairValueMeasurementsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_019fd8fc-7b17-773a-989b-999280a05635" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019fd8fc-7b17-70b8-b797-1479719d832e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019fd8fc-7b17-773a-989b-999280a05635" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019fd8fc-7b17-70b8-b797-1479719d832e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_019fd8fc-7b17-744f-9d53-d5748ae2436b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019fd8fc-7b17-773a-989b-999280a05635" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_019fd8fc-7b17-744f-9d53-d5748ae2436b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsFairValueDisclosure_019fd8fc-7b17-7a75-971a-ce66ae28524b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019fd8fc-7b17-773a-989b-999280a05635" xlink:to="loc_us-gaap_OtherAssetsFairValueDisclosure_019fd8fc-7b17-7a75-971a-ce66ae28524b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceSummaryofPremiumsEarnedandLossesIncurredDetails" xlink:type="simple" xlink:href="mtg-20260930.xsd#ReinsuranceSummaryofPremiumsEarnedandLossesIncurredDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ReinsuranceSummaryofPremiumsEarnedandLossesIncurredDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsEarnedNet_019fd8fc-7b17-76a5-b819-fcd37488c466" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PremiumsEarnedNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DirectPremiumsEarned_019fd8fc-7b17-71eb-a599-15a93f223199" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DirectPremiumsEarned"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNet_019fd8fc-7b17-76a5-b819-fcd37488c466" xlink:to="loc_us-gaap_DirectPremiumsEarned_019fd8fc-7b17-71eb-a599-15a93f223199" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssumedPremiumsEarned_019fd8fc-7b17-7d52-b485-c6d924966d17" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssumedPremiumsEarned"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNet_019fd8fc-7b17-76a5-b819-fcd37488c466" xlink:to="loc_us-gaap_AssumedPremiumsEarned_019fd8fc-7b17-7d52-b485-c6d924966d17" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CededPremiumsEarned_019fd8fc-7b17-7094-8616-79b48d5d7322" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CededPremiumsEarned"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNet_019fd8fc-7b17-76a5-b819-fcd37488c466" xlink:to="loc_us-gaap_CededPremiumsEarned_019fd8fc-7b17-7094-8616-79b48d5d7322" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredNet_019fd8fc-7b17-7e83-804d-eb9f9e1403d2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PolicyholderBenefitsAndClaimsIncurredNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredGross_019fd8fc-7b17-73f2-848a-874db6bf1534" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PolicyholderBenefitsAndClaimsIncurredGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredNet_019fd8fc-7b17-7e83-804d-eb9f9e1403d2" xlink:to="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredGross_019fd8fc-7b17-73f2-848a-874db6bf1534" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PolicyholderBenefitsAndClaimsIncurredAssumedNetOfAdjustments_019fd8fc-7b17-79d5-8c68-90a893d4e641" xlink:href="mtg-20260930.xsd#mtg_PolicyholderBenefitsAndClaimsIncurredAssumedNetOfAdjustments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredNet_019fd8fc-7b17-7e83-804d-eb9f9e1403d2" xlink:to="loc_mtg_PolicyholderBenefitsAndClaimsIncurredAssumedNetOfAdjustments_019fd8fc-7b17-79d5-8c68-90a893d4e641" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountCeded_019fd8fc-7b17-7a83-8685-841751940681" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountCeded"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredNet_019fd8fc-7b17-7e83-804d-eb9f9e1403d2" xlink:to="loc_us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountCeded_019fd8fc-7b17-7a83-8685-841751940681" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesReconciliationofBeginningandEndingBalancesDetails" xlink:type="simple" xlink:href="mtg-20260930.xsd#LossReservesReconciliationofBeginningandEndingBalancesDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/LossReservesReconciliationofBeginningandEndingBalancesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1_019fd8fc-7bd8-78f0-b061-6a5e78c11809" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense_019fd8fc-7bd8-7de8-9f7a-193a8264423f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1_019fd8fc-7bd8-78f0-b061-6a5e78c11809" xlink:to="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense_019fd8fc-7bd8-7de8-9f7a-193a8264423f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense_019fd8fc-7bd8-7224-b208-9c49eab5aa6e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1_019fd8fc-7bd8-78f0-b061-6a5e78c11809" xlink:to="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense_019fd8fc-7bd8-7224-b208-9c49eab5aa6e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet_019fd8fc-7bd8-72a8-9ca7-579ec79f6710" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_019fd8fc-7bd8-7775-b080-3be1dcfea146" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet_019fd8fc-7bd8-72a8-9ca7-579ec79f6710" xlink:to="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_019fd8fc-7bd8-7775-b080-3be1dcfea146" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments_019fd8fc-7bd8-7c23-b5a6-14b699525b50" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet_019fd8fc-7bd8-72a8-9ca7-579ec79f6710" xlink:to="loc_us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments_019fd8fc-7bd8-7c23-b5a6-14b699525b50" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_019fd8fc-7bd8-7deb-b3d8-95e7128e82f9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForLossesAndLossAdjustmentExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1_019fd8fc-7bd8-7f45-b812-f47ef3c118d5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_019fd8fc-7bd8-7deb-b3d8-95e7128e82f9" xlink:to="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1_019fd8fc-7bd8-7f45-b812-f47ef3c118d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1_019fd8fc-7bd8-72fa-a903-32a557dc48a7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_019fd8fc-7bd8-7deb-b3d8-95e7128e82f9" xlink:to="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1_019fd8fc-7bd8-72fa-a903-32a557dc48a7" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/OtherComprehensiveIncomePretaxandRelatedIncomeTaxBenefitExpenseComponentsofOtherComprehensiveIncomeLossDetails" xlink:type="simple" xlink:href="mtg-20260930.xsd#OtherComprehensiveIncomePretaxandRelatedIncomeTaxBenefitExpenseComponentsofOtherComprehensiveIncomeLossDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/OtherComprehensiveIncomePretaxandRelatedIncomeTaxBenefitExpenseComponentsofOtherComprehensiveIncomeLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019fd8fc-7bd8-7a9c-883e-082a3ca7c202" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019fd8fc-7bd8-7d95-8090-38230aa036ff" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019fd8fc-7bd8-7a9c-883e-082a3ca7c202" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019fd8fc-7bd8-7d95-8090-38230aa036ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019fd8fc-7bd8-7f05-a8a8-abc215df6247" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019fd8fc-7bd8-7a9c-883e-082a3ca7c202" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019fd8fc-7bd8-7f05-a8a8-abc215df6247" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansDetails" xlink:type="simple" xlink:href="mtg-20260930.xsd#BenefitPlansDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019fd8fc-7bd8-70b6-b1e9-ff2692b150cc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_019fd8fc-7bd8-7060-af44-3c91128561ed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019fd8fc-7bd8-70b6-b1e9-ff2692b150cc" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_019fd8fc-7bd8-7060-af44-3c91128561ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_019fd8fc-7bd8-7a7f-ad81-6d7805c5ef45" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019fd8fc-7bd8-70b6-b1e9-ff2692b150cc" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_019fd8fc-7bd8-7a7f-ad81-6d7805c5ef45" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_019fd8fc-7bd8-7ab9-ac12-ec03dc79bf1d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019fd8fc-7bd8-70b6-b1e9-ff2692b150cc" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_019fd8fc-7bd8-7ab9-ac12-ec03dc79bf1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_019fd8fc-7bd8-72cf-9448-f983941acd9c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019fd8fc-7bd8-70b6-b1e9-ff2692b150cc" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_019fd8fc-7bd8-72cf-9448-f983941acd9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_019fd8fc-7bd8-7c3d-a5d6-dacfa31f6a1b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019fd8fc-7bd8-70b6-b1e9-ff2692b150cc" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_019fd8fc-7bd8-7c3d-a5d6-dacfa31f6a1b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_019fd8fc-7bd8-7438-96c1-b9141e22d547" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019fd8fc-7bd8-70b6-b1e9-ff2692b150cc" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_019fd8fc-7bd8-7438-96c1-b9141e22d547" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/SegmentReportingDisaggregationofSignificantSegmentExpensesDetails" xlink:type="simple" xlink:href="mtg-20260930.xsd#SegmentReportingDisaggregationofSignificantSegmentExpensesDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/SegmentReportingDisaggregationofSignificantSegmentExpensesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherUnderwritingExpense_019fd8fc-7bd8-7b2b-95c1-ea0a5cbb8065" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherUnderwritingExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CompensationExpenseExcludingCostOfGoodAndServiceSold_019fd8fc-7bd8-7be8-baa7-f0fa38f293c8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CompensationExpenseExcludingCostOfGoodAndServiceSold"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherUnderwritingExpense_019fd8fc-7bd8-7b2b-95c1-ea0a5cbb8065" xlink:to="loc_us-gaap_CompensationExpenseExcludingCostOfGoodAndServiceSold_019fd8fc-7bd8-7be8-baa7-f0fa38f293c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingOtherItemAmount_019fd8fc-7bd8-727d-9473-7cb828d04324" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SegmentReportingOtherItemAmount"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherUnderwritingExpense_019fd8fc-7bd8-7b2b-95c1-ea0a5cbb8065" xlink:to="loc_us-gaap_SegmentReportingOtherItemAmount_019fd8fc-7bd8-727d-9473-7cb828d04324" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_019fd8fc-7bd8-7c9d-8219-1ae2e9a03bf0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Depreciation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherUnderwritingExpense_019fd8fc-7bd8-7b2b-95c1-ea0a5cbb8065" xlink:to="loc_us-gaap_Depreciation_019fd8fc-7bd8-7c9d-8219-1ae2e9a03bf0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_InsurancePremiumTaxExpense_019fd8fc-7bd8-70e1-877b-b2f2fe07e149" xlink:href="mtg-20260930.xsd#mtg_InsurancePremiumTaxExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherUnderwritingExpense_019fd8fc-7bd8-7b2b-95c1-ea0a5cbb8065" xlink:to="loc_mtg_InsurancePremiumTaxExpense_019fd8fc-7bd8-70e1-877b-b2f2fe07e149" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_OutsideServicesExpense_019fd8fc-7bd8-7882-a836-bfeed101435c" xlink:href="mtg-20260930.xsd#mtg_OutsideServicesExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherUnderwritingExpense_019fd8fc-7bd8-7b2b-95c1-ea0a5cbb8065" xlink:to="loc_mtg_OutsideServicesExpense_019fd8fc-7bd8-7882-a836-bfeed101435c" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
