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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019edc08-eb91-724b-af33-a347e9f7dc27,g:b9a13d21-fcfb-4ecb-8c07-4da674409cfe-->
<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-20260630.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_019edc08-ed2b-73c1-aa71-3a6da2b2b420" 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_019edc08-ed2b-72ff-90a9-eb452a3e0109" 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_019edc08-ed2b-73c1-aa71-3a6da2b2b420" xlink:to="loc_us-gaap_CommitmentsAndContingencies_019edc08-ed2b-72ff-90a9-eb452a3e0109" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019edc08-ed2b-7fc9-8ebc-3374a5ff5006" 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_019edc08-ed2b-73c1-aa71-3a6da2b2b420" xlink:to="loc_us-gaap_Liabilities_019edc08-ed2b-7fc9-8ebc-3374a5ff5006" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019edc08-ed2b-7af7-b0a3-e6f415120193" 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_019edc08-ed2b-73c1-aa71-3a6da2b2b420" xlink:to="loc_us-gaap_StockholdersEquity_019edc08-ed2b-7af7-b0a3-e6f415120193" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019edc08-ed2b-7b17-9ce2-13bcde3a9224" 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_019edc08-ed2b-7420-8900-072add436cd0" 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_019edc08-ed2b-7b17-9ce2-13bcde3a9224" xlink:to="loc_us-gaap_Investments_019edc08-ed2b-7420-8900-072add436cd0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019edc08-ed2b-7e8a-b0b2-adf80ca8643b" 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_019edc08-ed2b-7b17-9ce2-13bcde3a9224" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019edc08-ed2b-7e8a-b0b2-adf80ca8643b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_019edc08-ed2b-7cb6-ad33-793644900a4c" 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_019edc08-ed2b-7b17-9ce2-13bcde3a9224" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_019edc08-ed2b-7cb6-ad33-793644900a4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedInvestmentIncomeReceivable_019edc08-ed2b-731d-bf19-9d078821db46" 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_019edc08-ed2b-7b17-9ce2-13bcde3a9224" xlink:to="loc_us-gaap_AccruedInvestmentIncomeReceivable_019edc08-ed2b-731d-bf19-9d078821db46" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments_019edc08-ed2b-7eba-bb6e-16aad5480c11" 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_019edc08-ed2b-7b17-9ce2-13bcde3a9224" xlink:to="loc_us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments_019edc08-ed2b-7eba-bb6e-16aad5480c11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceRecoverablesOnPaidLosses_019edc08-ed2b-7a98-91bc-8f06535f4908" 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_019edc08-ed2b-7b17-9ce2-13bcde3a9224" xlink:to="loc_us-gaap_ReinsuranceRecoverablesOnPaidLosses_019edc08-ed2b-7a98-91bc-8f06535f4908" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsReceivableAtCarryingValue_019edc08-ed2b-72dc-bfa2-0a70a482b5bd" 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_019edc08-ed2b-7b17-9ce2-13bcde3a9224" xlink:to="loc_us-gaap_PremiumsReceivableAtCarryingValue_019edc08-ed2b-72dc-bfa2-0a70a482b5bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_019edc08-ed2b-7fcc-811d-83bf8f8d6380" 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_019edc08-ed2b-7b17-9ce2-13bcde3a9224" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_019edc08-ed2b-7fcc-811d-83bf8f8d6380" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredPolicyAcquisitionCosts_019edc08-ed2b-7dee-844c-c556ac6faef6" 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_019edc08-ed2b-7b17-9ce2-13bcde3a9224" xlink:to="loc_us-gaap_DeferredPolicyAcquisitionCosts_019edc08-ed2b-7dee-844c-c556ac6faef6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_019edc08-ed2b-7003-8edf-93a86db57906" 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_019edc08-ed2b-7b17-9ce2-13bcde3a9224" xlink:to="loc_us-gaap_OtherAssets_019edc08-ed2b-7003-8edf-93a86db57906" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_019edc08-ed2b-77a5-ba3b-4a4ebf3d4ac0" 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_019edc08-ed2b-7b17-9ce2-13bcde3a9224" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_019edc08-ed2b-77a5-ba3b-4a4ebf3d4ac0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019edc08-ed2b-7a9b-a8a0-68b717256ecf" 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_019edc08-ed2b-7729-9775-e38ec58e4b0e" 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_019edc08-ed2b-7a9b-a8a0-68b717256ecf" xlink:to="loc_us-gaap_CommonStockValue_019edc08-ed2b-7729-9775-e38ec58e4b0e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_019edc08-ed2b-756e-bb5a-7d49cbb0752b" 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_019edc08-ed2b-7a9b-a8a0-68b717256ecf" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_019edc08-ed2b-756e-bb5a-7d49cbb0752b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019edc08-ed2b-709c-a797-c4de2a7b22fb" 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_019edc08-ed2b-7a9b-a8a0-68b717256ecf" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019edc08-ed2b-709c-a797-c4de2a7b22fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019edc08-ed2b-7a5b-9050-0716eb051bc3" 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_019edc08-ed2b-7a9b-a8a0-68b717256ecf" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019edc08-ed2b-7a5b-9050-0716eb051bc3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019edc08-ed2b-7d2c-98d9-4bdfa7afc4cc" 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_019edc08-ed2b-7b8c-a845-cb8e9eba9bcf" 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_019edc08-ed2b-7d2c-98d9-4bdfa7afc4cc" xlink:to="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_019edc08-ed2b-7b8c-a845-cb8e9eba9bcf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnearnedPremiums_019edc08-ed2b-7454-84ed-0560d8f7cb0f" 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_019edc08-ed2b-7d2c-98d9-4bdfa7afc4cc" xlink:to="loc_us-gaap_UnearnedPremiums_019edc08-ed2b-7454-84ed-0560d8f7cb0f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_019edc08-ed2b-7451-a574-ec6153db19d9" 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_019edc08-ed2b-7d2c-98d9-4bdfa7afc4cc" xlink:to="loc_us-gaap_OtherLiabilities_019edc08-ed2b-7451-a574-ec6153db19d9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotes_019edc08-ed2b-7ffb-8165-33999db586c6" 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_019edc08-ed2b-7d2c-98d9-4bdfa7afc4cc" xlink:to="loc_us-gaap_SeniorNotes_019edc08-ed2b-7ffb-8165-33999db586c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_TransferableFederalTaxCreditPayable_019edc08-ed2b-7c12-8fe5-a0b4facbc6c2" xlink:href="mtg-20260630.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_019edc08-ed2b-7d2c-98d9-4bdfa7afc4cc" xlink:to="loc_mtg_TransferableFederalTaxCreditPayable_019edc08-ed2b-7c12-8fe5-a0b4facbc6c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_019edc08-ed2b-797c-b124-30d377af6c4b" 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_019edc08-ed2b-7058-8408-242fe20236d8" 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_019edc08-ed2b-797c-b124-30d377af6c4b" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019edc08-ed2b-7058-8408-242fe20236d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInvestments_019edc08-ed2b-7fba-8ad7-fd95f6ad6505" 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_019edc08-ed2b-797c-b124-30d377af6c4b" xlink:to="loc_us-gaap_OtherInvestments_019edc08-ed2b-7fba-8ad7-fd95f6ad6505" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_019edc08-ed2b-73b4-b192-981d98bde53d" 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_019edc08-ed2b-797c-b124-30d377af6c4b" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_019edc08-ed2b-73b4-b192-981d98bde53d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="mtg-20260630.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_PremiumsWrittenNet_019edc08-ed2b-76c6-b6fc-b7af2d7d9ff2" 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_019edc08-ed2b-7ee2-a42b-1c262ba3e2a6" 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_019edc08-ed2b-76c6-b6fc-b7af2d7d9ff2" xlink:to="loc_us-gaap_DirectPremiumsWritten_019edc08-ed2b-7ee2-a42b-1c262ba3e2a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssumedPremiumsWritten_019edc08-ed2b-7efa-a2ca-100669732af3" 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_019edc08-ed2b-76c6-b6fc-b7af2d7d9ff2" xlink:to="loc_us-gaap_AssumedPremiumsWritten_019edc08-ed2b-7efa-a2ca-100669732af3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CededPremiumsWritten_019edc08-ed2b-7d3a-bcb0-3e5ed770a704" 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_019edc08-ed2b-76c6-b6fc-b7af2d7d9ff2" xlink:to="loc_us-gaap_CededPremiumsWritten_019edc08-ed2b-7d3a-bcb0-3e5ed770a704" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019edc08-ed2b-7527-8830-fc07bd8b5991" 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_019edc08-ed2b-7fe6-84e4-da8280741210" 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_019edc08-ed2b-7527-8830-fc07bd8b5991" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019edc08-ed2b-7fe6-84e4-da8280741210" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019edc08-ed2b-75c7-a06d-57bcb5b9e54f" 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_019edc08-ed2b-7527-8830-fc07bd8b5991" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019edc08-ed2b-75c7-a06d-57bcb5b9e54f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BenefitsLossesAndExpenses_019edc08-ed2b-7672-aac3-8249ba824c4a" 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_019edc08-ed2b-717c-b71b-c6aab6ed92c1" 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_019edc08-ed2b-7672-aac3-8249ba824c4a" xlink:to="loc_us-gaap_OtherUnderwritingExpense_019edc08-ed2b-717c-b71b-c6aab6ed92c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_019edc08-ed2b-77f8-a482-b373f0f20412" 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_019edc08-ed2b-7672-aac3-8249ba824c4a" xlink:to="loc_us-gaap_InterestExpenseDebt_019edc08-ed2b-77f8-a482-b373f0f20412" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredNet_019edc08-ed2b-76ad-9d41-8e90947ad2a4" 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_019edc08-ed2b-7672-aac3-8249ba824c4a" xlink:to="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredNet_019edc08-ed2b-76ad-9d41-8e90947ad2a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredPolicyAcquisitionCostAmortizationExpense_019edc08-ed2b-787f-92a3-19a5683e6c04" 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_019edc08-ed2b-7672-aac3-8249ba824c4a" xlink:to="loc_us-gaap_DeferredPolicyAcquisitionCostAmortizationExpense_019edc08-ed2b-787f-92a3-19a5683e6c04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019edc08-ed2b-7b47-8665-1df2af88880e" 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_019edc08-ed2b-7e29-bfd6-3a575b96be53" 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_019edc08-ed2b-7b47-8665-1df2af88880e" xlink:to="loc_us-gaap_BenefitsLossesAndExpenses_019edc08-ed2b-7e29-bfd6-3a575b96be53" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_019edc08-ed2b-7af6-86fd-68f50de539c5" 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_019edc08-ed2b-7b47-8665-1df2af88880e" xlink:to="loc_us-gaap_Revenues_019edc08-ed2b-7af6-86fd-68f50de539c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsEarnedNet_019edc08-ed2b-7528-9cb9-0e214707751d" 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_019edc08-ed2b-7382-a026-5f271228be21" 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_019edc08-ed2b-7528-9cb9-0e214707751d" xlink:to="loc_us-gaap_PremiumsWrittenNet_019edc08-ed2b-7382-a026-5f271228be21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInUnearnedPremiumsNet_019edc08-ed2b-78f7-943f-c17ba70433db" 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_019edc08-ed2b-7528-9cb9-0e214707751d" xlink:to="loc_us-gaap_IncreaseDecreaseInUnearnedPremiumsNet_019edc08-ed2b-78f7-943f-c17ba70433db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_019edc08-ed2b-7f56-aad0-2d8e5028ed18" 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_019edc08-ed2b-78d1-b8e6-8d9e802eefe3" 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_019edc08-ed2b-7f56-aad0-2d8e5028ed18" xlink:to="loc_us-gaap_OtherIncome_019edc08-ed2b-78d1-b8e6-8d9e802eefe3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_019edc08-ed2b-7dce-8246-380b28407c90" 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_019edc08-ed2b-7f56-aad0-2d8e5028ed18" xlink:to="loc_us-gaap_NetInvestmentIncome_019edc08-ed2b-7dce-8246-380b28407c90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsEarnedNet_019edc08-ed2b-7bb7-a8c6-012a542dd51e" 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_019edc08-ed2b-7f56-aad0-2d8e5028ed18" xlink:to="loc_us-gaap_PremiumsEarnedNet_019edc08-ed2b-7bb7-a8c6-012a542dd51e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_NetGainsLossesOnInvestmentsAndOtherFinancialInstruments_019edc08-ed2b-7f69-bd25-d689b83e7de5" xlink:href="mtg-20260630.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_019edc08-ed2b-7f56-aad0-2d8e5028ed18" xlink:to="loc_mtg_NetGainsLossesOnInvestmentsAndOtherFinancialInstruments_019edc08-ed2b-7f69-bd25-d689b83e7de5" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="simple" xlink:href="mtg-20260630.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_ComprehensiveIncomeNetOfTax_019edc08-ed2b-7a4c-8858-3b3f06de75d6" 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_019edc08-ed2b-7e25-9034-d8655bfe5faa" 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_019edc08-ed2b-7a4c-8858-3b3f06de75d6" xlink:to="loc_us-gaap_NetIncomeLoss_019edc08-ed2b-7e25-9034-d8655bfe5faa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019edc08-ed2b-76e7-a2c0-441f8827fbad" 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_019edc08-ed2b-7a4c-8858-3b3f06de75d6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019edc08-ed2b-76e7-a2c0-441f8827fbad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019edc08-ed2b-79de-87b5-8e4c2db57a9d" 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_019edc08-ed2b-72f6-9742-43c7f3ba7009" 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_019edc08-ed2b-79de-87b5-8e4c2db57a9d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_019edc08-ed2b-72f6-9742-43c7f3ba7009" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_019edc08-ed2b-746e-a9ad-fd896c5ca481" 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_019edc08-ed2b-79de-87b5-8e4c2db57a9d" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_019edc08-ed2b-746e-a9ad-fd896c5ca481" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="mtg-20260630.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_NetCashProvidedByUsedInOperatingActivities_019edc08-ed2b-780b-bb53-2eea857708a6" 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_019edc08-ed2b-7ca3-a813-4a80bb618736" 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_019edc08-ed2b-780b-bb53-2eea857708a6" xlink:to="loc_us-gaap_NetIncomeLoss_019edc08-ed2b-7ca3-a813-4a80bb618736" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_019edc08-ed2b-7987-83f3-6053aea4e4c2" 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_019edc08-ed2b-780b-bb53-2eea857708a6" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_019edc08-ed2b-7987-83f3-6053aea4e4c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019edc08-ed2b-71c3-9cae-9189d8addbf5" 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_019edc08-ed2b-780b-bb53-2eea857708a6" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019edc08-ed2b-71c3-9cae-9189d8addbf5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_019edc08-ed2b-738d-ae3e-3a94be75357e" 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_019edc08-ed2b-780b-bb53-2eea857708a6" xlink:to="loc_us-gaap_ShareBasedCompensation_019edc08-ed2b-738d-ae3e-3a94be75357e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_NetGainsLossesOnInvestmentsAndOtherFinancialInstruments_019edc08-ed2b-7961-89a3-09d7cee3e131" xlink:href="mtg-20260630.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_019edc08-ed2b-780b-bb53-2eea857708a6" xlink:to="loc_mtg_NetGainsLossesOnInvestmentsAndOtherFinancialInstruments_019edc08-ed2b-7961-89a3-09d7cee3e131" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_019edc08-ed2b-70f1-9712-146528d813fd" 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_019edc08-ed2b-780b-bb53-2eea857708a6" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_019edc08-ed2b-70f1-9712-146528d813fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInReinsuranceRecoverable_019edc08-ed2b-7915-bd77-c1b3106ec166" 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_019edc08-ed2b-780b-bb53-2eea857708a6" xlink:to="loc_us-gaap_IncreaseDecreaseInReinsuranceRecoverable_019edc08-ed2b-7915-bd77-c1b3106ec166" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_IncreaseDecreaseInReinsuranceRecoverableOnPaidLosses_019edc08-ed2b-78f7-82eb-197ab3f5a20a" xlink:href="mtg-20260630.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_019edc08-ed2b-780b-bb53-2eea857708a6" xlink:to="loc_mtg_IncreaseDecreaseInReinsuranceRecoverableOnPaidLosses_019edc08-ed2b-78f7-82eb-197ab3f5a20a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPremiumsReceivable_019edc08-ed2b-7f2a-aaeb-e5c915a20075" 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_019edc08-ed2b-780b-bb53-2eea857708a6" xlink:to="loc_us-gaap_IncreaseDecreaseInPremiumsReceivable_019edc08-ed2b-7f2a-aaeb-e5c915a20075" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDeferredPolicyAcquisitionCosts_019edc08-ed2b-7593-81b4-5e1648e26e67" 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_019edc08-ed2b-780b-bb53-2eea857708a6" xlink:to="loc_us-gaap_IncreaseDecreaseInDeferredPolicyAcquisitionCosts_019edc08-ed2b-7593-81b4-5e1648e26e67" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInLiabilityForClaimsAndClaimsAdjustmentExpenseReserve_019edc08-ed2b-7053-b8c6-e1053a6369d6" 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_019edc08-ed2b-780b-bb53-2eea857708a6" xlink:to="loc_us-gaap_IncreaseDecreaseInLiabilityForClaimsAndClaimsAdjustmentExpenseReserve_019edc08-ed2b-7053-b8c6-e1053a6369d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInUnearnedPremiums_019edc08-ed2b-7839-b318-d6c1a7c272af" 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_019edc08-ed2b-780b-bb53-2eea857708a6" xlink:to="loc_us-gaap_IncreaseDecreaseInUnearnedPremiums_019edc08-ed2b-7839-b318-d6c1a7c272af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_019edc08-ed2b-73ba-b3b6-1d109ea5c1a3" 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_019edc08-ed2b-780b-bb53-2eea857708a6" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_019edc08-ed2b-73ba-b3b6-1d109ea5c1a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_019edc08-ed2b-73e2-bcdb-b8ce5851cc32" 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_019edc08-ed2b-780b-bb53-2eea857708a6" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_019edc08-ed2b-73e2-bcdb-b8ce5851cc32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019edc08-ed2b-760e-b0a8-1bc5e4a72020" 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_019edc08-ed2b-7f49-9944-891404266ec0" 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_019edc08-ed2b-760e-b0a8-1bc5e4a72020" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_019edc08-ed2b-7f49-9944-891404266ec0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_019edc08-ed2b-75a7-a820-c3adaf480b4d" 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_019edc08-ed2b-760e-b0a8-1bc5e4a72020" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_019edc08-ed2b-75a7-a820-c3adaf480b4d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_019edc08-ed2b-7776-89fd-abed848edae0" 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_019edc08-ed2b-760e-b0a8-1bc5e4a72020" xlink:to="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_019edc08-ed2b-7776-89fd-abed848edae0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ProceedsFromMaturityOfFixedIncomeSecurities_019edc08-ed2b-7447-b789-f982122d36f8" xlink:href="mtg-20260630.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_019edc08-ed2b-760e-b0a8-1bc5e4a72020" xlink:to="loc_mtg_ProceedsFromMaturityOfFixedIncomeSecurities_019edc08-ed2b-7447-b789-f982122d36f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019edc08-ed2b-7b9d-b81d-d8fff2667d54" 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_019edc08-ed2b-7542-84cd-8d22f0ab1031" 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_019edc08-ed2b-7b9d-b81d-d8fff2667d54" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_019edc08-ed2b-7542-84cd-8d22f0ab1031" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_019edc08-ed2b-757d-b8d7-38e7c85cfac0" 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_019edc08-ed2b-7b9d-b81d-d8fff2667d54" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_019edc08-ed2b-757d-b8d7-38e7c85cfac0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_019edc08-ed2b-7496-bb1c-1c500277d963" 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_019edc08-ed2b-7b9d-b81d-d8fff2667d54" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_019edc08-ed2b-7496-bb1c-1c500277d963" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_019edc08-ed2b-79de-a653-6217e8a43c19" 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_019edc08-ed2b-7d6d-bbcf-672627228cda" 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_019edc08-ed2b-79de-a653-6217e8a43c19" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019edc08-ed2b-7d6d-bbcf-672627228cda" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019edc08-ed2b-7b5a-94b7-93e187eeba76" 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_019edc08-ed2b-79de-a653-6217e8a43c19" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019edc08-ed2b-7b5a-94b7-93e187eeba76" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019edc08-ed2b-7c07-8688-f629a2c1ae89" 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_019edc08-ed2b-79de-a653-6217e8a43c19" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019edc08-ed2b-7c07-8688-f629a2c1ae89" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/EarningsperShareDetails" xlink:type="simple" xlink:href="mtg-20260630.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_019edc08-ed2b-7e4c-af8c-566afa074336" 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_019edc08-ed2b-7e85-9f66-d8931923b04f" 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_019edc08-ed2b-7e4c-af8c-566afa074336" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019edc08-ed2b-7e85-9f66-d8931923b04f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019edc08-ed2b-7afe-9476-7683c2cf220e" 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_019edc08-ed2b-7e4c-af8c-566afa074336" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019edc08-ed2b-7afe-9476-7683c2cf220e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/InvestmentsAmortizedCostandFairValuesofDebtSecuritiesDetails" xlink:type="simple" xlink:href="mtg-20260630.xsd#InvestmentsAmortizedCostandFairValuesofDebtSecuritiesDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/InvestmentsAmortizedCostandFairValuesofDebtSecuritiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019edc08-ed2b-7740-8004-c241cf6ba3c9" 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_019edc08-ed2b-712d-ae2c-55594d8169ff" 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_019edc08-ed2b-7740-8004-c241cf6ba3c9" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_019edc08-ed2b-712d-ae2c-55594d8169ff" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_019edc08-ed2b-79ed-88d9-c0d9e0b039b8" xlink:href="mtg-20260630.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_019edc08-ed2b-7740-8004-c241cf6ba3c9" xlink:to="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_019edc08-ed2b-79ed-88d9-c0d9e0b039b8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_019edc08-ed2b-7138-8f40-301641b2f7cf" xlink:href="mtg-20260630.xsd#mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019edc08-ed2b-77ee-8228-de23232503b5" 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_019edc08-ed2b-7138-8f40-301641b2f7cf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019edc08-ed2b-77ee-8228-de23232503b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019edc08-ed2b-77a6-b916-6efc4fe8625b" 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_019edc08-ed2b-7138-8f40-301641b2f7cf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019edc08-ed2b-77a6-b916-6efc4fe8625b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019edc08-ed2b-7c0a-912f-0d769a9b3c37" 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_019edc08-ed2b-7138-8f40-301641b2f7cf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019edc08-ed2b-7c0a-912f-0d769a9b3c37" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_019edc08-ed2b-7b10-a0f6-6649c4f3274c" 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_019edc08-ed2b-7138-8f40-301641b2f7cf" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_019edc08-ed2b-7b10-a0f6-6649c4f3274c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_019edc08-ed2b-7de2-86cc-03ad301217f3" xlink:href="mtg-20260630.xsd#mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019edc08-ed2b-7143-995c-b4f2df8875b1" 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_019edc08-ed2b-7de2-86cc-03ad301217f3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019edc08-ed2b-7143-995c-b4f2df8875b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019edc08-ed2b-7209-b1dd-c5aee3adfa87" 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_019edc08-ed2b-7de2-86cc-03ad301217f3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019edc08-ed2b-7209-b1dd-c5aee3adfa87" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_019edc08-ed2b-76cd-ad6a-44f3420f0f24" 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_019edc08-ed2b-7de2-86cc-03ad301217f3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_019edc08-ed2b-76cd-ad6a-44f3420f0f24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_019edc08-ed2b-748c-ad81-0127a12d88e4" 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_019edc08-ed2b-7de2-86cc-03ad301217f3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_019edc08-ed2b-748c-ad81-0127a12d88e4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_019edc08-ed2b-7c49-885d-176e2dbc5e2e" 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_019edc08-ed2b-73e3-94e7-5bf545829a72" 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_019edc08-ed2b-7c49-885d-176e2dbc5e2e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_019edc08-ed2b-73e3-94e7-5bf545829a72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_019edc08-ed2b-760f-bdef-782ae9e2e55c" xlink:href="mtg-20260630.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_019edc08-ed2b-7c49-885d-176e2dbc5e2e" xlink:to="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_019edc08-ed2b-760f-bdef-782ae9e2e55c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/InvestmentsSecuritiesInUnrealizedLossPositionDetails" xlink:type="simple" xlink:href="mtg-20260630.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_019edc08-ed2b-7b55-b7b6-ee55632524f3" 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_019edc08-ed2b-753e-bf98-bc75cd1c81f8" 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_019edc08-ed2b-7b55-b7b6-ee55632524f3" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_019edc08-ed2b-753e-bf98-bc75cd1c81f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_019edc08-ed2b-7004-a36a-f79232ac49a2" 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_019edc08-ed2b-7b55-b7b6-ee55632524f3" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_019edc08-ed2b-7004-a36a-f79232ac49a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019edc08-ed2b-7c93-953a-8e64a53750ea" 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_019edc08-ed2b-79db-aab7-fae488030599" 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_019edc08-ed2b-7c93-953a-8e64a53750ea" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_019edc08-ed2b-79db-aab7-fae488030599" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_019edc08-ed2b-76fb-ba63-4ea28ebd6df6" 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_019edc08-ed2b-7c93-953a-8e64a53750ea" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_019edc08-ed2b-76fb-ba63-4ea28ebd6df6" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurementsDetails" xlink:type="simple" xlink:href="mtg-20260630.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_019edc08-ed2b-725d-8cf7-98eb36054a9c" 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_019edc08-ed2b-78c1-9527-7a8f4951fffd" 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_019edc08-ed2b-725d-8cf7-98eb36054a9c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019edc08-ed2b-78c1-9527-7a8f4951fffd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_019edc08-ed2b-76a4-8430-26b97e0c01d8" 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_019edc08-ed2b-725d-8cf7-98eb36054a9c" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_019edc08-ed2b-76a4-8430-26b97e0c01d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsFairValueDisclosure_019edc08-ed2b-7241-9d5b-8e17942f4695" 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_019edc08-ed2b-725d-8cf7-98eb36054a9c" xlink:to="loc_us-gaap_OtherAssetsFairValueDisclosure_019edc08-ed2b-7241-9d5b-8e17942f4695" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceSummaryofPremiumsEarnedandLossesIncurredDetails" xlink:type="simple" xlink:href="mtg-20260630.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_PolicyholderBenefitsAndClaimsIncurredNet_019edc08-ed2b-7400-a533-d2e7aeddabad" 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_019edc08-ed2b-7451-a75f-2783d2b7d958" 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_019edc08-ed2b-7400-a533-d2e7aeddabad" xlink:to="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredGross_019edc08-ed2b-7451-a75f-2783d2b7d958" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PolicyholderBenefitsAndClaimsIncurredAssumedNetOfAdjustments_019edc08-ed2b-779f-9c01-e5e56f7d805d" xlink:href="mtg-20260630.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_019edc08-ed2b-7400-a533-d2e7aeddabad" xlink:to="loc_mtg_PolicyholderBenefitsAndClaimsIncurredAssumedNetOfAdjustments_019edc08-ed2b-779f-9c01-e5e56f7d805d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountCeded_019edc08-ed2b-7425-aa1e-88e9ce680818" 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_019edc08-ed2b-7400-a533-d2e7aeddabad" xlink:to="loc_us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountCeded_019edc08-ed2b-7425-aa1e-88e9ce680818" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsEarnedNet_019edc08-ed2b-7d1d-b949-a4c46ac2eded" 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_019edc08-ed2b-707c-9b63-e7d16ab12d10" 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_019edc08-ed2b-7d1d-b949-a4c46ac2eded" xlink:to="loc_us-gaap_DirectPremiumsEarned_019edc08-ed2b-707c-9b63-e7d16ab12d10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssumedPremiumsEarned_019edc08-ed2b-7e1e-a76d-cdcaec03e77e" 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_019edc08-ed2b-7d1d-b949-a4c46ac2eded" xlink:to="loc_us-gaap_AssumedPremiumsEarned_019edc08-ed2b-7e1e-a76d-cdcaec03e77e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CededPremiumsEarned_019edc08-ed2b-7f27-8a10-351580509d1f" 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_019edc08-ed2b-7d1d-b949-a4c46ac2eded" xlink:to="loc_us-gaap_CededPremiumsEarned_019edc08-ed2b-7f27-8a10-351580509d1f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesReconciliationofBeginningandEndingBalancesDetails" xlink:type="simple" xlink:href="mtg-20260630.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_019edc08-edf3-7111-9940-ff6c9580ddbe" 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_019edc08-edf3-75e5-8ec1-7ee8436bdc74" 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_019edc08-edf3-7111-9940-ff6c9580ddbe" xlink:to="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense_019edc08-edf3-75e5-8ec1-7ee8436bdc74" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense_019edc08-edf3-76dd-9c01-71a672895730" 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_019edc08-edf3-7111-9940-ff6c9580ddbe" xlink:to="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense_019edc08-edf3-76dd-9c01-71a672895730" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_019edc08-edf3-7bab-a9f3-fc678fa5487e" 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_019edc08-edf3-7940-9d11-494e0e3a82cb" 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_019edc08-edf3-7bab-a9f3-fc678fa5487e" xlink:to="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1_019edc08-edf3-7940-9d11-494e0e3a82cb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1_019edc08-edf3-7fcc-bfa4-bff6abcd458d" 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_019edc08-edf3-7bab-a9f3-fc678fa5487e" xlink:to="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1_019edc08-edf3-7fcc-bfa4-bff6abcd458d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet_019edc08-edf3-751e-8521-bec2fce9e5a0" 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_019edc08-edf3-7b31-9b9c-ceb14a02fcc0" 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_019edc08-edf3-751e-8521-bec2fce9e5a0" xlink:to="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_019edc08-edf3-7b31-9b9c-ceb14a02fcc0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments_019edc08-edf3-7dfe-802d-b999b51583d8" 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_019edc08-edf3-751e-8521-bec2fce9e5a0" xlink:to="loc_us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments_019edc08-edf3-7dfe-802d-b999b51583d8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/OtherComprehensiveIncomePretaxandRelatedIncomeTaxBenefitExpenseComponentsofOtherComprehensiveIncomeLossDetails" xlink:type="simple" xlink:href="mtg-20260630.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_019edc08-edf3-7ef0-8945-760119d485f6" 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_019edc08-edf3-7495-b101-0c5415489079" 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_019edc08-edf3-7ef0-8945-760119d485f6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTaxPortionAttributableToParent_019edc08-edf3-7495-b101-0c5415489079" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019edc08-edf3-76f7-a54f-614a4b6d1188" 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_019edc08-edf3-7ef0-8945-760119d485f6" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1_019edc08-edf3-76f7-a54f-614a4b6d1188" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansDetails" xlink:type="simple" xlink:href="mtg-20260630.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_019edc08-edf3-79ad-bbbe-11a7ce5a7f82" 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_019edc08-edf3-7fb6-95aa-ddf6b1d21fc4" 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_019edc08-edf3-79ad-bbbe-11a7ce5a7f82" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_019edc08-edf3-7fb6-95aa-ddf6b1d21fc4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_019edc08-edf3-7497-97fc-8ef8d5cd2184" 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_019edc08-edf3-79ad-bbbe-11a7ce5a7f82" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_019edc08-edf3-7497-97fc-8ef8d5cd2184" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_019edc08-edf3-7bbd-ae0b-86bbaf743697" 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_019edc08-edf3-79ad-bbbe-11a7ce5a7f82" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_019edc08-edf3-7bbd-ae0b-86bbaf743697" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_019edc08-edf3-76bf-ae01-faddac6f6cee" 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_019edc08-edf3-79ad-bbbe-11a7ce5a7f82" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_019edc08-edf3-76bf-ae01-faddac6f6cee" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_019edc08-edf3-713b-aa9c-7b031ea8f422" 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_019edc08-edf3-79ad-bbbe-11a7ce5a7f82" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_019edc08-edf3-713b-aa9c-7b031ea8f422" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_019edc08-edf3-7255-9c52-608169a1c1da" 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_019edc08-edf3-79ad-bbbe-11a7ce5a7f82" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_019edc08-edf3-7255-9c52-608169a1c1da" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/SegmentReportingDisaggregationofSignificantSegmentExpensesDetails" xlink:type="simple" xlink:href="mtg-20260630.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_019edc08-edf3-7933-a86f-59d35c3d9efc" 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_019edc08-edf3-7e3f-bbae-b2179fb69b6a" 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_019edc08-edf3-7933-a86f-59d35c3d9efc" xlink:to="loc_us-gaap_CompensationExpenseExcludingCostOfGoodAndServiceSold_019edc08-edf3-7e3f-bbae-b2179fb69b6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingOtherItemAmount_019edc08-edf3-79ff-aaff-60bca296ff9d" 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_019edc08-edf3-7933-a86f-59d35c3d9efc" xlink:to="loc_us-gaap_SegmentReportingOtherItemAmount_019edc08-edf3-79ff-aaff-60bca296ff9d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_019edc08-edf3-722b-9bf8-9ac427497294" 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_019edc08-edf3-7933-a86f-59d35c3d9efc" xlink:to="loc_us-gaap_Depreciation_019edc08-edf3-722b-9bf8-9ac427497294" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_InsurancePremiumTaxExpense_019edc08-edf3-7001-8193-e8772f035ea2" xlink:href="mtg-20260630.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_019edc08-edf3-7933-a86f-59d35c3d9efc" xlink:to="loc_mtg_InsurancePremiumTaxExpense_019edc08-edf3-7001-8193-e8772f035ea2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_OutsideServicesExpense_019edc08-edf3-7c64-8f00-2642e42807be" xlink:href="mtg-20260630.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_019edc08-edf3-7933-a86f-59d35c3d9efc" xlink:to="loc_mtg_OutsideServicesExpense_019edc08-edf3-7c64-8f00-2642e42807be" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
