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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2021 Workiva-->
<!--r:15542fda-05f4-46bb-a741-9bb2900a4c21,g:42abe8dc-8bcc-43e7-b875-30e09af15c9c-->
<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:roleRef roleURI="http://www.mgic.com/role/DocumentandEntityInformation" xlink:type="simple" xlink:href="mtg-20201231.xsd#DocumentandEntityInformation"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/DocumentandEntityInformation" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="mtg-20201231.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_StockholdersEquity_83ff0f9a-8275-4ed6-8ad5-a9f7b4609760" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_67fca212-46fe-46db-8a2b-34084baa5667" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_83ff0f9a-8275-4ed6-8ad5-a9f7b4609760" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_67fca212-46fe-46db-8a2b-34084baa5667" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_049c1c69-b47b-4fd1-8bbe-43487d675609" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_83ff0f9a-8275-4ed6-8ad5-a9f7b4609760" xlink:to="loc_us-gaap_CommonStockValue_049c1c69-b47b-4fd1-8bbe-43487d675609" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_3fb24bc4-68e3-46ba-81a3-22c2c8af2c28" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_83ff0f9a-8275-4ed6-8ad5-a9f7b4609760" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_3fb24bc4-68e3-46ba-81a3-22c2c8af2c28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValue_1e29ead1-e654-44b2-90a3-205973804d59" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockValue"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_83ff0f9a-8275-4ed6-8ad5-a9f7b4609760" xlink:to="loc_us-gaap_TreasuryStockValue_1e29ead1-e654-44b2-90a3-205973804d59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_bd1f3fca-3ab6-4edc-8e83-5776e07a8ca4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_83ff0f9a-8275-4ed6-8ad5-a9f7b4609760" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_bd1f3fca-3ab6-4edc-8e83-5776e07a8ca4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_e0a24b7b-8353-4f86-95ee-a4944a6d5563" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_b521695f-4431-4fe7-a0ff-c6583e89f404" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e0a24b7b-8353-4f86-95ee-a4944a6d5563" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_b521695f-4431-4fe7-a0ff-c6583e89f404" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_623f84ef-c514-47dc-8697-8862aa496be8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalents"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e0a24b7b-8353-4f86-95ee-a4944a6d5563" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_623f84ef-c514-47dc-8697-8862aa496be8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedInvestmentIncomeReceivable_f2f5ad59-40e6-4697-aa31-030ffd4a68f8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccruedInvestmentIncomeReceivable"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e0a24b7b-8353-4f86-95ee-a4944a6d5563" xlink:to="loc_us-gaap_AccruedInvestmentIncomeReceivable_f2f5ad59-40e6-4697-aa31-030ffd4a68f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_72ceb864-1880-463d-b377-e3d5404f6ad0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Investments"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e0a24b7b-8353-4f86-95ee-a4944a6d5563" xlink:to="loc_us-gaap_Investments_72ceb864-1880-463d-b377-e3d5404f6ad0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments_8efeccfa-59d0-481b-9e81-3c13fd4a89a3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e0a24b7b-8353-4f86-95ee-a4944a6d5563" xlink:to="loc_us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments_8efeccfa-59d0-481b-9e81-3c13fd4a89a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceRecoverablesOnPaidLosses_ad4112ed-5ad4-413a-a70d-3d560962bf4c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsuranceRecoverablesOnPaidLosses"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e0a24b7b-8353-4f86-95ee-a4944a6d5563" xlink:to="loc_us-gaap_ReinsuranceRecoverablesOnPaidLosses_ad4112ed-5ad4-413a-a70d-3d560962bf4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsReceivableAtCarryingValue_1ed3368f-513b-4ca8-b026-2c3094a30f74" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PremiumsReceivableAtCarryingValue"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e0a24b7b-8353-4f86-95ee-a4944a6d5563" xlink:to="loc_us-gaap_PremiumsReceivableAtCarryingValue_1ed3368f-513b-4ca8-b026-2c3094a30f74" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_e3423bd4-a703-475c-b777-76f951ec31e7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e0a24b7b-8353-4f86-95ee-a4944a6d5563" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_e3423bd4-a703-475c-b777-76f951ec31e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredPolicyAcquisitionCosts_c6330af0-2a84-476d-820f-d7e847db64af" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredPolicyAcquisitionCosts"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e0a24b7b-8353-4f86-95ee-a4944a6d5563" xlink:to="loc_us-gaap_DeferredPolicyAcquisitionCosts_c6330af0-2a84-476d-820f-d7e847db64af" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_d85d7acf-ca08-4ac0-bbd4-0c76f3b4c219" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e0a24b7b-8353-4f86-95ee-a4944a6d5563" xlink:to="loc_us-gaap_OtherAssets_d85d7acf-ca08-4ac0-bbd4-0c76f3b4c219" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_fe291515-209c-4c19-af38-9bfde9c0c490" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_63cf6cdc-8e03-492a-9a3a-6c0afd6bcd72" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_fe291515-209c-4c19-af38-9bfde9c0c490" xlink:to="loc_us-gaap_StockholdersEquity_63cf6cdc-8e03-492a-9a3a-6c0afd6bcd72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_8f02669b-0c5e-4edc-bb7a-d9faed6b0d0b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_fe291515-209c-4c19-af38-9bfde9c0c490" xlink:to="loc_us-gaap_Liabilities_8f02669b-0c5e-4edc-bb7a-d9faed6b0d0b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_7fb6ede3-4e0e-4656-818f-68431063f9c1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_fe291515-209c-4c19-af38-9bfde9c0c490" xlink:to="loc_us-gaap_CommitmentsAndContingencies_7fb6ede3-4e0e-4656-818f-68431063f9c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_41044c81-059e-4902-8ef7-95b40f2c24e6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpensePropertyCasualtyLiability_6ef406e5-3dc6-4947-aa08-3c5106432a60" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpensePropertyCasualtyLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_41044c81-059e-4902-8ef7-95b40f2c24e6" xlink:to="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpensePropertyCasualtyLiability_6ef406e5-3dc6-4947-aa08-3c5106432a60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnearnedPremiums_5ced4d87-0418-4cb8-92d4-7bfddac593d6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UnearnedPremiums"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_41044c81-059e-4902-8ef7-95b40f2c24e6" xlink:to="loc_us-gaap_UnearnedPremiums_5ced4d87-0418-4cb8-92d4-7bfddac593d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotes_cadd9ca5-06f5-4fdf-9b18-15c50993189e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeniorNotes"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_41044c81-059e-4902-8ef7-95b40f2c24e6" xlink:to="loc_us-gaap_SeniorNotes_cadd9ca5-06f5-4fdf-9b18-15c50993189e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleSubordinatedDebt_21a7b098-598d-4d7a-91e6-938317807eef" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConvertibleSubordinatedDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_41044c81-059e-4902-8ef7-95b40f2c24e6" xlink:to="loc_us-gaap_ConvertibleSubordinatedDebt_21a7b098-598d-4d7a-91e6-938317807eef" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_658eccf4-af24-461f-bb6a-867569f848d7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_41044c81-059e-4902-8ef7-95b40f2c24e6" xlink:to="loc_us-gaap_OtherLiabilities_658eccf4-af24-461f-bb6a-867569f848d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankAmountOfAdvancesByBranch_ce12cbf7-5302-4481-82de-0f954071c18a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankAmountOfAdvancesByBranch"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_41044c81-059e-4902-8ef7-95b40f2c24e6" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankAmountOfAdvancesByBranch_ce12cbf7-5302-4481-82de-0f954071c18a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_50479f49-5f56-4c5c-ab1b-2d86bc844762" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Investments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_196fb70a-5593-46f6-b2b2-13a9216d9fd1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_50479f49-5f56-4c5c-ab1b-2d86bc844762" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_196fb70a-5593-46f6-b2b2-13a9216d9fd1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_60e0cd22-98e6-440e-9e42-e432ecacfa62" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_50479f49-5f56-4c5c-ab1b-2d86bc844762" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_60e0cd22-98e6-440e-9e42-e432ecacfa62" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherInvestments_1fb02077-d0af-44f9-abf3-970ba6d57c9f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_50479f49-5f56-4c5c-ab1b-2d86bc844762" xlink:to="loc_us-gaap_OtherInvestments_1fb02077-d0af-44f9-abf3-970ba6d57c9f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="mtg-20201231.xsd#CONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/CONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS" xlink:type="simple" xlink:href="mtg-20201231.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_Revenues_fc4a89f7-2ba1-4008-854f-153ecff94e08" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Revenues"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIncome_af0d0fbc-23cd-457a-83b1-35e2957a46c2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherIncome"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_fc4a89f7-2ba1-4008-854f-153ecff94e08" xlink:to="loc_us-gaap_OtherIncome_af0d0fbc-23cd-457a-83b1-35e2957a46c2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnInvestments_e77c3f96-eaec-4e4d-a14e-0a5dc45b88fb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainLossOnInvestments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_fc4a89f7-2ba1-4008-854f-153ecff94e08" xlink:to="loc_us-gaap_GainLossOnInvestments_e77c3f96-eaec-4e4d-a14e-0a5dc45b88fb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_e65c96db-fd37-4d89-b503-df5ad10ed051" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetInvestmentIncome"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_fc4a89f7-2ba1-4008-854f-153ecff94e08" xlink:to="loc_us-gaap_NetInvestmentIncome_e65c96db-fd37-4d89-b503-df5ad10ed051" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_5a965180-4a34-487c-87b8-a813d5b11880" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PremiumsEarnedNetPropertyAndCasualty"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_fc4a89f7-2ba1-4008-854f-153ecff94e08" xlink:to="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_5a965180-4a34-487c-87b8-a813d5b11880" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_02bb3085-9bfd-4f80-87d8-75c551ba5405" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BenefitsLossesAndExpenses_d385ba9b-0ffc-4d52-9373-12d8c6a4a5f2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BenefitsLossesAndExpenses"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_02bb3085-9bfd-4f80-87d8-75c551ba5405" xlink:to="loc_us-gaap_BenefitsLossesAndExpenses_d385ba9b-0ffc-4d52-9373-12d8c6a4a5f2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_a6c36eba-e0af-4bd5-be79-df9eec286ef4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_02bb3085-9bfd-4f80-87d8-75c551ba5405" xlink:to="loc_us-gaap_Revenues_a6c36eba-e0af-4bd5-be79-df9eec286ef4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsWrittenNet_4fe535e2-ec99-4a27-a767-9e8c6e153fa2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PremiumsWrittenNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DirectPremiumsWritten_ff77488b-02b3-4fbb-8f0e-963c14cf8b39" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DirectPremiumsWritten"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsWrittenNet_4fe535e2-ec99-4a27-a767-9e8c6e153fa2" xlink:to="loc_us-gaap_DirectPremiumsWritten_ff77488b-02b3-4fbb-8f0e-963c14cf8b39" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssumedPremiumsWritten_cb5d0551-2ba8-43f5-bf62-db9ed330d88b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssumedPremiumsWritten"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsWrittenNet_4fe535e2-ec99-4a27-a767-9e8c6e153fa2" xlink:to="loc_us-gaap_AssumedPremiumsWritten_cb5d0551-2ba8-43f5-bf62-db9ed330d88b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CededPremiumsWritten_2e736b1a-fbc4-4600-940d-74c34892849b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CededPremiumsWritten"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsWrittenNet_4fe535e2-ec99-4a27-a767-9e8c6e153fa2" xlink:to="loc_us-gaap_CededPremiumsWritten_2e736b1a-fbc4-4600-940d-74c34892849b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_30250334-970e-4644-824d-a75657939813" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PremiumsEarnedNetPropertyAndCasualty"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsWrittenNet_5464e4cb-3266-456c-ad9c-3e8f526480a8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PremiumsWrittenNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_30250334-970e-4644-824d-a75657939813" xlink:to="loc_us-gaap_PremiumsWrittenNet_5464e4cb-3266-456c-ad9c-3e8f526480a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInUnearnedPremiumsNet_1ee71e99-486b-4e0d-a420-1570d08cd7f3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInUnearnedPremiumsNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_30250334-970e-4644-824d-a75657939813" xlink:to="loc_us-gaap_IncreaseDecreaseInUnearnedPremiumsNet_1ee71e99-486b-4e0d-a420-1570d08cd7f3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BenefitsLossesAndExpenses_6bb33f4b-2e55-41da-aea5-ac0f6e41fc4d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BenefitsLossesAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncurredClaimsPropertyCasualtyAndLiability_40fc989f-bbae-4570-ae06-29790ac66bd8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncurredClaimsPropertyCasualtyAndLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_6bb33f4b-2e55-41da-aea5-ac0f6e41fc4d" xlink:to="loc_us-gaap_IncurredClaimsPropertyCasualtyAndLiability_40fc989f-bbae-4570-ae06-29790ac66bd8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_30dcc7fd-ab66-486a-88f3-40e067311472" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpenseDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_6bb33f4b-2e55-41da-aea5-ac0f6e41fc4d" xlink:to="loc_us-gaap_InterestExpenseDebt_30dcc7fd-ab66-486a-88f3-40e067311472" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherUnderwritingExpense_343c0c04-98d9-4a30-a721-ca9106bb52b6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherUnderwritingExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_6bb33f4b-2e55-41da-aea5-ac0f6e41fc4d" xlink:to="loc_us-gaap_OtherUnderwritingExpense_343c0c04-98d9-4a30-a721-ca9106bb52b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredPolicyAcquisitionCostAmortizationExpense_51c4ab51-e90b-42de-8a96-07c712b04781" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredPolicyAcquisitionCostAmortizationExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_6bb33f4b-2e55-41da-aea5-ac0f6e41fc4d" xlink:to="loc_us-gaap_DeferredPolicyAcquisitionCostAmortizationExpense_51c4ab51-e90b-42de-8a96-07c712b04781" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_ffb81aca-fcc7-4cc8-9875-e7ce243c167b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_6bb33f4b-2e55-41da-aea5-ac0f6e41fc4d" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_ffb81aca-fcc7-4cc8-9875-e7ce243c167b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME" xlink:type="simple" xlink:href="mtg-20201231.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_64132620-4e1f-4c21-b97a-ddaaec69b71c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_286963ff-763b-4d91-b1c6-35c094822e86" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_64132620-4e1f-4c21-b97a-ddaaec69b71c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_286963ff-763b-4d91-b1c6-35c094822e86" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_d9239736-815d-4616-8d6e-2a8731aa1518" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_64132620-4e1f-4c21-b97a-ddaaec69b71c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_d9239736-815d-4616-8d6e-2a8731aa1518" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_fbf425e5-28f6-4a31-95bc-464c08063a05" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_4f960eea-0e84-412a-8c63-cb9afea05294" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_fbf425e5-28f6-4a31-95bc-464c08063a05" xlink:to="loc_us-gaap_NetIncomeLoss_4f960eea-0e84-412a-8c63-cb9afea05294" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_034dc155-8e8b-46b0-a879-daee27a45361" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_fbf425e5-28f6-4a31-95bc-464c08063a05" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_034dc155-8e8b-46b0-a879-daee27a45361" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY" xlink:type="simple" xlink:href="mtg-20201231.xsd#CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS" xlink:type="simple" xlink:href="mtg-20201231.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_NetCashProvidedByUsedInFinancingActivities_304416b9-2bd9-4528-9410-3d1ec560012b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_GainLossOnDebtExtinghuishmentCashPortion_b85b26c3-c693-47fc-9fef-c80583935b52" xlink:href="mtg-20201231.xsd#mtg_GainLossOnDebtExtinghuishmentCashPortion"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_304416b9-2bd9-4528-9410-3d1ec560012b" xlink:to="loc_mtg_GainLossOnDebtExtinghuishmentCashPortion_b85b26c3-c693-47fc-9fef-c80583935b52" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_37e36cba-43b8-4996-b4bb-07790b7e6f44" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_304416b9-2bd9-4528-9410-3d1ec560012b" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_37e36cba-43b8-4996-b4bb-07790b7e6f44" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_8ec7a596-c8c5-431c-85ef-ca57b0c41e6b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsOfDividendsCommonStock"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_304416b9-2bd9-4528-9410-3d1ec560012b" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_8ec7a596-c8c5-431c-85ef-ca57b0c41e6b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_fa75b707-5288-4f5f-b9e5-7858d2aa87b7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_304416b9-2bd9-4528-9410-3d1ec560012b" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_fa75b707-5288-4f5f-b9e5-7858d2aa87b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PaymentOfOriginalIssueDiscountConvertibleJuniorSubordinatedDebentures_bbfc2b01-dbb5-4aa3-b996-1a04e1348104" xlink:href="mtg-20201231.xsd#mtg_PaymentOfOriginalIssueDiscountConvertibleJuniorSubordinatedDebentures"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_304416b9-2bd9-4528-9410-3d1ec560012b" xlink:to="loc_mtg_PaymentOfOriginalIssueDiscountConvertibleJuniorSubordinatedDebentures_bbfc2b01-dbb5-4aa3-b996-1a04e1348104" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_fa46b57d-064f-4838-956a-8127ccfd9543" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_304416b9-2bd9-4528-9410-3d1ec560012b" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_fa46b57d-064f-4838-956a-8127ccfd9543" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarlyRepaymentOfSubordinatedDebt_0774878c-ce85-486d-8d40-6b09d3585925" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarlyRepaymentOfSubordinatedDebt"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_304416b9-2bd9-4528-9410-3d1ec560012b" xlink:to="loc_us-gaap_EarlyRepaymentOfSubordinatedDebt_0774878c-ce85-486d-8d40-6b09d3585925" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_77385478-9e7d-4dc7-900a-78f9fafa19ad" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_304416b9-2bd9-4528-9410-3d1ec560012b" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_77385478-9e7d-4dc7-900a-78f9fafa19ad" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PaymentOfOriginalIssueDiscountSeniorNotes_5821842c-9599-4fcd-9153-fc07fc8b0e01" xlink:href="mtg-20201231.xsd#mtg_PaymentOfOriginalIssueDiscountSeniorNotes"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_304416b9-2bd9-4528-9410-3d1ec560012b" xlink:to="loc_mtg_PaymentOfOriginalIssueDiscountSeniorNotes_5821842c-9599-4fcd-9153-fc07fc8b0e01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarlyRepaymentOfSeniorDebt_db1e1424-adc8-47c5-9704-ec1d76e65640" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EarlyRepaymentOfSeniorDebt"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_304416b9-2bd9-4528-9410-3d1ec560012b" xlink:to="loc_us-gaap_EarlyRepaymentOfSeniorDebt_db1e1424-adc8-47c5-9704-ec1d76e65640" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_8cdb3ba6-ce16-4240-873c-4529e0856e39" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_466c67a1-bf13-4a5b-9c15-cf6dcadd9e95" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_8cdb3ba6-ce16-4240-873c-4529e0856e39" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_466c67a1-bf13-4a5b-9c15-cf6dcadd9e95" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bb856a33-109a-471a-b4d6-a3fe8b0b60c6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_8cdb3ba6-ce16-4240-873c-4529e0856e39" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_bb856a33-109a-471a-b4d6-a3fe8b0b60c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_112509af-fba0-4cca-9cd8-ef928a1e3835" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_8cdb3ba6-ce16-4240-873c-4529e0856e39" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_112509af-fba0-4cca-9cd8-ef928a1e3835" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_ebece04e-b427-4d96-8ce1-d355a50732e7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:to="loc_us-gaap_NetIncomeLoss_ebece04e-b427-4d96-8ce1-d355a50732e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_176687b6-c4bf-477f-911e-bd7b8d75f58c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DepreciationAmortizationAndAccretionNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_176687b6-c4bf-477f-911e-bd7b8d75f58c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDeferredIncomeTaxes_ef5767d6-d8c8-4745-97bc-4c1b99a521f7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInDeferredIncomeTaxes"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:to="loc_us-gaap_IncreaseDecreaseInDeferredIncomeTaxes_ef5767d6-d8c8-4745-97bc-4c1b99a521f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnInvestments_2e45c817-a16d-457a-93a6-79e0f0d3106c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainLossOnInvestments"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:to="loc_us-gaap_GainLossOnInvestments_2e45c817-a16d-457a-93a6-79e0f0d3106c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_30a1017a-5ea2-453c-b6bd-d9fd64115882" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_30a1017a-5ea2-453c-b6bd-d9fd64115882" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_0ae0d25c-a315-43f6-9406-b5a5877aa1da" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_0ae0d25c-a315-43f6-9406-b5a5877aa1da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInReinsuranceRecoverable_aabae934-0c61-43a4-baf6-d484d72e5a59" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInReinsuranceRecoverable"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:to="loc_us-gaap_IncreaseDecreaseInReinsuranceRecoverable_aabae934-0c61-43a4-baf6-d484d72e5a59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_IncreaseDecreaseInReinsuranceRecoverableOnPaidLosses_10d5e830-ffd4-4aa4-a95e-6b5391e91fb5" xlink:href="mtg-20201231.xsd#mtg_IncreaseDecreaseInReinsuranceRecoverableOnPaidLosses"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:to="loc_mtg_IncreaseDecreaseInReinsuranceRecoverableOnPaidLosses_10d5e830-ffd4-4aa4-a95e-6b5391e91fb5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPremiumsReceivable_2f4a2493-2424-4848-8349-95d79ff3e8c0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInPremiumsReceivable"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:to="loc_us-gaap_IncreaseDecreaseInPremiumsReceivable_2f4a2493-2424-4848-8349-95d79ff3e8c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDeferredPolicyAcquisitionCosts_415ae974-0fed-4dcd-9b17-4c72b61aa70a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInDeferredPolicyAcquisitionCosts"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:to="loc_us-gaap_IncreaseDecreaseInDeferredPolicyAcquisitionCosts_415ae974-0fed-4dcd-9b17-4c72b61aa70a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_IncreaseDecreaseInProfitCommissionReceivable_809c4b52-8fd0-46ac-b685-c0bbb0ee7268" xlink:href="mtg-20201231.xsd#mtg_IncreaseDecreaseInProfitCommissionReceivable"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:to="loc_mtg_IncreaseDecreaseInProfitCommissionReceivable_809c4b52-8fd0-46ac-b685-c0bbb0ee7268" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInLiabilityForClaimsAndClaimsAdjustmentExpenseReserve_c555a7c3-148b-47fa-b3ad-fea8dda59311" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInLiabilityForClaimsAndClaimsAdjustmentExpenseReserve"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:to="loc_us-gaap_IncreaseDecreaseInLiabilityForClaimsAndClaimsAdjustmentExpenseReserve_c555a7c3-148b-47fa-b3ad-fea8dda59311" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInUnearnedPremiums_6e303eea-86d1-4419-ace8-41c68f6b09c0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInUnearnedPremiums"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:to="loc_us-gaap_IncreaseDecreaseInUnearnedPremiums_6e303eea-86d1-4419-ace8-41c68f6b09c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherInsuranceLiabilities_c555ff6a-70a4-49c9-8615-d7123899aace" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInOtherInsuranceLiabilities"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherInsuranceLiabilities_c555ff6a-70a4-49c9-8615-d7123899aace" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_53dbd0e5-e8a8-4446-87e3-3f583c1e654d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_53dbd0e5-e8a8-4446-87e3-3f583c1e654d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_08ca92df-b769-40f5-8b52-876c1405a462" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet"/>
    <link:calculationArc order="16" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_aa259dc7-18ef-4a68-b42c-61fe59bed7ee" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_08ca92df-b769-40f5-8b52-876c1405a462" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f9e2ae3-361d-4cc7-9032-84843e37ad59" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_a61e5d7b-3135-4d29-9ee6-a1522d025fba" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f9e2ae3-361d-4cc7-9032-84843e37ad59" xlink:to="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_a61e5d7b-3135-4d29-9ee6-a1522d025fba" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_8389750c-a276-42ed-8876-e338de175d73" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireInvestments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f9e2ae3-361d-4cc7-9032-84843e37ad59" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_8389750c-a276-42ed-8876-e338de175d73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_15a69f48-2e57-4b8d-a4fb-847571647db6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f9e2ae3-361d-4cc7-9032-84843e37ad59" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_15a69f48-2e57-4b8d-a4fb-847571647db6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInBrokerDealerRelatedReceivablesPayablesNet_75bb21ef-c8f1-46d5-b7ef-76bae9218e9c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInBrokerDealerRelatedReceivablesPayablesNet"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f9e2ae3-361d-4cc7-9032-84843e37ad59" xlink:to="loc_us-gaap_IncreaseDecreaseInBrokerDealerRelatedReceivablesPayablesNet_75bb21ef-c8f1-46d5-b7ef-76bae9218e9c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_bf4d3537-9ecf-4e04-88f3-235bb00676dd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f9e2ae3-361d-4cc7-9032-84843e37ad59" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_bf4d3537-9ecf-4e04-88f3-235bb00676dd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/NatureofBusiness" xlink:type="simple" xlink:href="mtg-20201231.xsd#NatureofBusiness"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/NatureofBusiness" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/NatureofBusinessDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#NatureofBusinessDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/NatureofBusinessDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/BasisofPresentation" xlink:type="simple" xlink:href="mtg-20201231.xsd#BasisofPresentation"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BasisofPresentation" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SignificantAccountingPolicies" xlink:type="simple" xlink:href="mtg-20201231.xsd#SignificantAccountingPolicies"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/SignificantAccountingPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SignificantAccountingPoliciesPolicies" xlink:type="simple" xlink:href="mtg-20201231.xsd#SignificantAccountingPoliciesPolicies"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/SignificantAccountingPoliciesPolicies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SignificantAccountingPoliciesTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#SignificantAccountingPoliciesTables"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/SignificantAccountingPoliciesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SignificantAccountingPoliciesDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#SignificantAccountingPoliciesDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/SignificantAccountingPoliciesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/EarningsperShare" xlink:type="simple" xlink:href="mtg-20201231.xsd#EarningsperShare"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/EarningsperShare" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/EarningsperShareTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#EarningsperShareTables"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/EarningsperShareTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/EarningsperShareDetails" xlink:type="simple" xlink:href="mtg-20201231.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_4499886f-a7f9-43b6-81b4-f9ca33434863" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_61aac456-01bc-4299-8125-8bd68ccab452" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_4499886f-a7f9-43b6-81b4-f9ca33434863" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_61aac456-01bc-4299-8125-8bd68ccab452" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_60d968fe-7a56-4bd2-b496-d4f93174f33a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_4499886f-a7f9-43b6-81b4-f9ca33434863" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_60d968fe-7a56-4bd2-b496-d4f93174f33a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_5010f1fe-b7ef-4d1d-beac-dd6c2d6d8e6f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_4499886f-a7f9-43b6-81b4-f9ca33434863" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_5010f1fe-b7ef-4d1d-beac-dd6c2d6d8e6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_b548afb6-e42f-4ac2-9d31-9a5921ff2441" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_1c34beb4-f72e-435c-b588-1c9526429eaa" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_b548afb6-e42f-4ac2-9d31-9a5921ff2441" xlink:to="loc_us-gaap_NetIncomeLoss_1c34beb4-f72e-435c-b588-1c9526429eaa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DilutiveSecurities_372fe627-a950-4858-9966-965bcfac552e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DilutiveSecurities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_b548afb6-e42f-4ac2-9d31-9a5921ff2441" xlink:to="loc_us-gaap_DilutiveSecurities_372fe627-a950-4858-9966-965bcfac552e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/Investments" xlink:type="simple" xlink:href="mtg-20201231.xsd#Investments"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/Investments" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/InvestmentsTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#InvestmentsTables"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/InvestmentsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/InvestmentsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#InvestmentsDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/InvestmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_c2a5924f-9ace-4612-b641-94d7224b897f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_0c1b4173-ee87-4f7e-86bb-5727923186ac" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_c2a5924f-9ace-4612-b641-94d7224b897f" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_0c1b4173-ee87-4f7e-86bb-5727923186ac" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_14dffb53-d204-4634-bbb3-58cb24ffa905" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_c2a5924f-9ace-4612-b641-94d7224b897f" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_14dffb53-d204-4634-bbb3-58cb24ffa905" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_4b3c5b7a-e3e6-4e95-8430-974b280a5bfd" xlink:href="mtg-20201231.xsd#mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_89310e8a-c2d3-4396-9085-a73cd84a6860" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_4b3c5b7a-e3e6-4e95-8430-974b280a5bfd" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_89310e8a-c2d3-4396-9085-a73cd84a6860" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_1c30b676-de09-48b7-9e58-3e38439c77b4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_4b3c5b7a-e3e6-4e95-8430-974b280a5bfd" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_1c30b676-de09-48b7-9e58-3e38439c77b4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_e40f37be-3f69-412f-905e-c77a1e4c4534" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_4b3c5b7a-e3e6-4e95-8430-974b280a5bfd" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_e40f37be-3f69-412f-905e-c77a1e4c4534" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_c80f4214-1c14-4b09-b15f-8ed560445d3b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_4b3c5b7a-e3e6-4e95-8430-974b280a5bfd" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_c80f4214-1c14-4b09-b15f-8ed560445d3b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_6b18869d-6115-4382-a54c-1e01f92c1bde" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_3a88067d-7f03-4ab5-a951-80526f770fdb" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_6b18869d-6115-4382-a54c-1e01f92c1bde" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_3a88067d-7f03-4ab5-a951-80526f770fdb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_396d5650-c6b9-40ff-9b07-1a82c2d6235c" xlink:href="mtg-20201231.xsd#mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_6b18869d-6115-4382-a54c-1e01f92c1bde" xlink:to="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_396d5650-c6b9-40ff-9b07-1a82c2d6235c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_9a1c4ef4-6cf6-43d7-afbd-fb384a02d600" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_3a52dbdc-0f4a-4b00-83b9-88734e090c28" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_9a1c4ef4-6cf6-43d7-afbd-fb384a02d600" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_3a52dbdc-0f4a-4b00-83b9-88734e090c28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_4061656a-8625-4b2e-af96-b77d4b81140d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_9a1c4ef4-6cf6-43d7-afbd-fb384a02d600" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_4061656a-8625-4b2e-af96-b77d4b81140d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_fb835ca5-bd74-4fc5-9a0f-91b5010e8a2e" xlink:href="mtg-20201231.xsd#mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_0307ad8b-8f4e-47e5-ad76-f5f9da873eaf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_fb835ca5-bd74-4fc5-9a0f-91b5010e8a2e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_0307ad8b-8f4e-47e5-ad76-f5f9da873eaf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_6368da50-def9-4ea3-b75a-ea5c9c9d3613" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_fb835ca5-bd74-4fc5-9a0f-91b5010e8a2e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_6368da50-def9-4ea3-b75a-ea5c9c9d3613" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_55fb0879-2fe1-4541-8b30-04e4b4ed5585" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_fb835ca5-bd74-4fc5-9a0f-91b5010e8a2e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_55fb0879-2fe1-4541-8b30-04e4b4ed5585" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_d525d950-ecc2-4a15-8c69-11b89af9e277" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_fb835ca5-bd74-4fc5-9a0f-91b5010e8a2e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_d525d950-ecc2-4a15-8c69-11b89af9e277" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/InvestmentsInvestmentIncomeByCategoryDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#InvestmentsInvestmentIncomeByCategoryDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/InvestmentsInvestmentIncomeByCategoryDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_f08ea7ad-bf0d-4ebf-b546-b2e50eac54bd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetInvestmentIncome"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GrossInvestmentIncomeOperating_7ccbe04c-cc18-406b-8f39-440d46653e19" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GrossInvestmentIncomeOperating"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetInvestmentIncome_f08ea7ad-bf0d-4ebf-b546-b2e50eac54bd" xlink:to="loc_us-gaap_GrossInvestmentIncomeOperating_7ccbe04c-cc18-406b-8f39-440d46653e19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_6ec082b5-097c-4d43-9016-42e84b42a657" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentIncomeInvestmentExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetInvestmentIncome_f08ea7ad-bf0d-4ebf-b546-b2e50eac54bd" xlink:to="loc_us-gaap_InvestmentIncomeInvestmentExpense_6ec082b5-097c-4d43-9016-42e84b42a657" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/InvestmentsGainLossonInvestmentsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#InvestmentsGainLossonInvestmentsDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/InvestmentsGainLossonInvestmentsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurements" xlink:type="simple" xlink:href="mtg-20201231.xsd#FairValueMeasurements"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/FairValueMeasurements" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurementsTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#FairValueMeasurementsTables"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/FairValueMeasurementsTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurementsDetails" xlink:type="simple" xlink:href="mtg-20201231.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_36bb34d1-676a-4454-91a4-5bc9eacf4f48" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsFairValueDisclosure_f1da566d-b953-4ea2-afc2-8bf8650381c8" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_36bb34d1-676a-4454-91a4-5bc9eacf4f48" xlink:to="loc_us-gaap_OtherAssetsFairValueDisclosure_f1da566d-b953-4ea2-afc2-8bf8650381c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_RealEstateAssetsAcquiredFairValueDisclosure_50187cce-fcb0-46d0-88a9-a58a2da4cf18" xlink:href="mtg-20201231.xsd#mtg_RealEstateAssetsAcquiredFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_36bb34d1-676a-4454-91a4-5bc9eacf4f48" xlink:to="loc_mtg_RealEstateAssetsAcquiredFairValueDisclosure_50187cce-fcb0-46d0-88a9-a58a2da4cf18" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_149c8040-c1ef-4459-9189-cf30c45d9c9f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_36bb34d1-676a-4454-91a4-5bc9eacf4f48" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_149c8040-c1ef-4459-9189-cf30c45d9c9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_e179456b-e09c-4573-bf11-00cec44c7286" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesFvNi"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_36bb34d1-676a-4454-91a4-5bc9eacf4f48" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_e179456b-e09c-4573-bf11-00cec44c7286" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurementsUnobservableInputReconciliationDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#FairValueMeasurementsUnobservableInputReconciliationDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/FairValueMeasurementsUnobservableInputReconciliationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurementsAssetsandLiabilitiesNotMeasuredatFairValueDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#FairValueMeasurementsAssetsandLiabilitiesNotMeasuredatFairValueDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/FairValueMeasurementsAssetsandLiabilitiesNotMeasuredatFairValueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFairValue_cd6bd4d4-4e5f-4b8e-8cfb-5434656dad1c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentFairValue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations_cfc35687-06b2-47ab-8668-868c4bbe6e21" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentFairValue_cd6bd4d4-4e5f-4b8e-8cfb-5434656dad1c" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations_cfc35687-06b2-47ab-8668-868c4bbe6e21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NotesPayableFairValueDisclosure_0eac1cf2-5da2-4b52-a925-f23c9c75220b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NotesPayableFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentFairValue_cd6bd4d4-4e5f-4b8e-8cfb-5434656dad1c" xlink:to="loc_us-gaap_NotesPayableFairValueDisclosure_0eac1cf2-5da2-4b52-a925-f23c9c75220b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_SeniorNotesFairValueDisclosure_1d23e2ce-f1dd-4f5e-8ab8-2c5b696bfd1b" xlink:href="mtg-20201231.xsd#mtg_SeniorNotesFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentFairValue_cd6bd4d4-4e5f-4b8e-8cfb-5434656dad1c" xlink:to="loc_mtg_SeniorNotesFairValueDisclosure_1d23e2ce-f1dd-4f5e-8ab8-2c5b696bfd1b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/Debt" xlink:type="simple" xlink:href="mtg-20201231.xsd#Debt"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/Debt" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/DebtTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#DebtTables"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/DebtTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/DebtSummaryofObligationsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#DebtSummaryofObligationsDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/DebtSummaryofObligationsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/DebtDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#DebtDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/DebtDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LossReserves" xlink:type="simple" xlink:href="mtg-20201231.xsd#LossReserves"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/LossReserves" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#LossReservesTables"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/LossReservesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesNarrativeDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#LossReservesNarrativeDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/LossReservesNarrativeDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesReconciliationofChangesinLossReservesDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#LossReservesReconciliationofChangesinLossReservesDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/LossReservesReconciliationofChangesinLossReservesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_b409102b-bf11-41e4-9da4-4b64f4e30151" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForLossesAndLossAdjustmentExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1_54312147-83ef-499c-88e3-8dd045dd9312" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_b409102b-bf11-41e4-9da4-4b64f4e30151" xlink:to="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1_54312147-83ef-499c-88e3-8dd045dd9312" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1_c8a597fc-751e-4321-8228-d46ee9e14804" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_b409102b-bf11-41e4-9da4-4b64f4e30151" xlink:to="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1_c8a597fc-751e-4321-8228-d46ee9e14804" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_ReinsuranceTerminations_f623d2d8-ddf0-4f64-96cb-11b086c07d90" xlink:href="mtg-20201231.xsd#mtg_ReinsuranceTerminations"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_b409102b-bf11-41e4-9da4-4b64f4e30151" xlink:to="loc_mtg_ReinsuranceTerminations_f623d2d8-ddf0-4f64-96cb-11b086c07d90" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1_5ad5d49e-9dc5-4e8c-ae44-8a08422c2bf1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense_d8eec947-908a-427f-a492-9ac00fe7ebc9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1_5ad5d49e-9dc5-4e8c-ae44-8a08422c2bf1" xlink:to="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense_d8eec947-908a-427f-a492-9ac00fe7ebc9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense_dc90dd2f-889c-4367-8bde-c01aadc24875" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1_5ad5d49e-9dc5-4e8c-ae44-8a08422c2bf1" xlink:to="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense_dc90dd2f-889c-4367-8bde-c01aadc24875" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesPriorYearLossReservesDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#LossReservesPriorYearLossReservesDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/LossReservesPriorYearLossReservesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesDefaultInventoryReconciliationDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#LossReservesDefaultInventoryReconciliationDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/LossReservesDefaultInventoryReconciliationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesAgingofPrimaryDefaultInventoryDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#LossReservesAgingofPrimaryDefaultInventoryDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/LossReservesAgingofPrimaryDefaultInventoryDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PrimaryDefaultInventory_501f21cc-6086-4731-b01b-1252cda66f6f" xlink:href="mtg-20201231.xsd#mtg_PrimaryDefaultInventory"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PrimaryDefaultInventoryThreeMonthsOrLess_f875fa29-cf71-4996-9646-077667055543" xlink:href="mtg-20201231.xsd#mtg_PrimaryDefaultInventoryThreeMonthsOrLess"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_PrimaryDefaultInventory_501f21cc-6086-4731-b01b-1252cda66f6f" xlink:to="loc_mtg_PrimaryDefaultInventoryThreeMonthsOrLess_f875fa29-cf71-4996-9646-077667055543" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PrimaryDefaultInventoryFourToElevenMonths_df255fd3-6b5a-4519-9dcd-7f1e9c219851" xlink:href="mtg-20201231.xsd#mtg_PrimaryDefaultInventoryFourToElevenMonths"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_PrimaryDefaultInventory_501f21cc-6086-4731-b01b-1252cda66f6f" xlink:to="loc_mtg_PrimaryDefaultInventoryFourToElevenMonths_df255fd3-6b5a-4519-9dcd-7f1e9c219851" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PrimaryDefaultInventoryTwelveMonthsOrMore_a138eb70-4498-45c6-a95a-dbfec982f4d7" xlink:href="mtg-20201231.xsd#mtg_PrimaryDefaultInventoryTwelveMonthsOrMore"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_PrimaryDefaultInventory_501f21cc-6086-4731-b01b-1252cda66f6f" xlink:to="loc_mtg_PrimaryDefaultInventoryTwelveMonthsOrMore_a138eb70-4498-45c6-a95a-dbfec982f4d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PrimaryDefaultInventoryPercentage_1ed35716-d692-46d9-a876-1ce70e33d13f" xlink:href="mtg-20201231.xsd#mtg_PrimaryDefaultInventoryPercentage"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PrimaryDefaultInventoryThreeMonthsOrLessPercentage_e7bb4fe0-d695-4b05-858f-fc34c009b41c" xlink:href="mtg-20201231.xsd#mtg_PrimaryDefaultInventoryThreeMonthsOrLessPercentage"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_PrimaryDefaultInventoryPercentage_1ed35716-d692-46d9-a876-1ce70e33d13f" xlink:to="loc_mtg_PrimaryDefaultInventoryThreeMonthsOrLessPercentage_e7bb4fe0-d695-4b05-858f-fc34c009b41c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PrimaryDefaultInventoryFourToElevenMonthsPercentage_7d234ba3-7b8f-4683-b03f-9608983708a2" xlink:href="mtg-20201231.xsd#mtg_PrimaryDefaultInventoryFourToElevenMonthsPercentage"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_PrimaryDefaultInventoryPercentage_1ed35716-d692-46d9-a876-1ce70e33d13f" xlink:to="loc_mtg_PrimaryDefaultInventoryFourToElevenMonthsPercentage_7d234ba3-7b8f-4683-b03f-9608983708a2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_PrimaryDefaultInventoryTwelveMonthsOrMorePercentage_273081e5-f5e6-4d78-a66f-e6d71641d6df" xlink:href="mtg-20201231.xsd#mtg_PrimaryDefaultInventoryTwelveMonthsOrMorePercentage"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_PrimaryDefaultInventoryPercentage_1ed35716-d692-46d9-a876-1ce70e33d13f" xlink:to="loc_mtg_PrimaryDefaultInventoryTwelveMonthsOrMorePercentage_273081e5-f5e6-4d78-a66f-e6d71641d6df" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/Reinsurance" xlink:type="simple" xlink:href="mtg-20201231.xsd#Reinsurance"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/Reinsurance" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#ReinsuranceTables"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ReinsuranceTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceSummaryofReinsuranceAgreementsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#ReinsuranceSummaryofReinsuranceAgreementsDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ReinsuranceSummaryofReinsuranceAgreementsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_d99dd253-8108-445b-b195-b9f04934a5b7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PremiumsEarnedNetPropertyAndCasualty"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DirectPremiumsEarned_f65bc2d8-69c7-45ab-8101-80822f362231" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DirectPremiumsEarned"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_d99dd253-8108-445b-b195-b9f04934a5b7" xlink:to="loc_us-gaap_DirectPremiumsEarned_f65bc2d8-69c7-45ab-8101-80822f362231" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssumedPremiumsEarned_ac07ab04-f803-4bb0-a879-e555b02c822e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssumedPremiumsEarned"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_d99dd253-8108-445b-b195-b9f04934a5b7" xlink:to="loc_us-gaap_AssumedPremiumsEarned_ac07ab04-f803-4bb0-a879-e555b02c822e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CededPremiumsEarned_4d489d59-9dab-4a2a-86c0-4971695617f7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CededPremiumsEarned"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_d99dd253-8108-445b-b195-b9f04934a5b7" xlink:to="loc_us-gaap_CededPremiumsEarned_4d489d59-9dab-4a2a-86c0-4971695617f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncurredClaimsPropertyCasualtyAndLiability_ad48c39d-eb78-4088-87d7-dbe90ed4805a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncurredClaimsPropertyCasualtyAndLiability"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredGross_b6fcc553-cc16-4398-b566-b6ddae468aec" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PolicyholderBenefitsAndClaimsIncurredGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncurredClaimsPropertyCasualtyAndLiability_ad48c39d-eb78-4088-87d7-dbe90ed4805a" xlink:to="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredGross_b6fcc553-cc16-4398-b566-b6ddae468aec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountAssumed_6e8cffff-7d90-40ec-ac1f-87afbfcb67d6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountAssumed"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncurredClaimsPropertyCasualtyAndLiability_ad48c39d-eb78-4088-87d7-dbe90ed4805a" xlink:to="loc_us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountAssumed_6e8cffff-7d90-40ec-ac1f-87afbfcb67d6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountCeded_b3b67dfb-3e07-4466-a9c0-4123158d785f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountCeded"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncurredClaimsPropertyCasualtyAndLiability_ad48c39d-eb78-4088-87d7-dbe90ed4805a" xlink:to="loc_us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountCeded_b3b67dfb-3e07-4466-a9c0-4123158d785f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceNarrativeDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#ReinsuranceNarrativeDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ReinsuranceNarrativeDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceQuotaShareAgreementTermsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#ReinsuranceQuotaShareAgreementTermsDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ReinsuranceQuotaShareAgreementTermsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceQuotaShareReinsuranceDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#ReinsuranceQuotaShareReinsuranceDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ReinsuranceQuotaShareReinsuranceDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceExcessofLossReinsuranceDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#ReinsuranceExcessofLossReinsuranceDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ReinsuranceExcessofLossReinsuranceDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceHomeReEntitiesTotalAssetsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#ReinsuranceHomeReEntitiesTotalAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ReinsuranceHomeReEntitiesTotalAssetsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/OtherComprehensiveIncomeLoss" xlink:type="simple" xlink:href="mtg-20201231.xsd#OtherComprehensiveIncomeLoss"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/OtherComprehensiveIncomeLoss" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/OtherComprehensiveIncomeLossTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#OtherComprehensiveIncomeLossTables"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/OtherComprehensiveIncomeLossTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/OtherComprehensiveIncomeLossDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#OtherComprehensiveIncomeLossDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/OtherComprehensiveIncomeLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTax_9a940a69-d65b-4774-a84d-865ed6b67867" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_5bbc25d0-13fe-4f4b-84f3-520e99d340cd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_9a940a69-d65b-4774-a84d-865ed6b67867" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_5bbc25d0-13fe-4f4b-84f3-520e99d340cd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxPortionAttributableToParent_f2b24a6c-818c-4f0d-84bf-64572c5bd811" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_9a940a69-d65b-4774-a84d-865ed6b67867" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxPortionAttributableToParent_f2b24a6c-818c-4f0d-84bf-64572c5bd811" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_b46e1e14-6185-4698-8b8c-29cee3926c78" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_a84ff343-be1c-4225-9811-074e88e0df4c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_b46e1e14-6185-4698-8b8c-29cee3926c78" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_a84ff343-be1c-4225-9811-074e88e0df4c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_b62012fc-f37f-4bb2-883f-ff6d97e6e78c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_b46e1e14-6185-4698-8b8c-29cee3926c78" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_b62012fc-f37f-4bb2-883f-ff6d97e6e78c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_f5c19101-97f9-4382-95e3-da616aeec710" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_65e702b8-3eaf-42f1-a3ee-db977589628f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_f5c19101-97f9-4382-95e3-da616aeec710" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_65e702b8-3eaf-42f1-a3ee-db977589628f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_675629a9-5c08-41ac-b613-3b04f3745536" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_f5c19101-97f9-4382-95e3-da616aeec710" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_675629a9-5c08-41ac-b613-3b04f3745536" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_ddf0393f-1107-4101-8acb-07eb268c929c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_3d17d5ea-66d3-4bef-8468-01f91fc6a31f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_ddf0393f-1107-4101-8acb-07eb268c929c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_3d17d5ea-66d3-4bef-8468-01f91fc6a31f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxPortionAttributableToParent_5736c1ed-4e76-4636-a7ff-09c9110746a3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_ddf0393f-1107-4101-8acb-07eb268c929c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxPortionAttributableToParent_5736c1ed-4e76-4636-a7ff-09c9110746a3" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlans" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlans"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlans" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansTables"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansComponentsofNetPeriodicBenefitCostsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansComponentsofNetPeriodicBenefitCostsDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansComponentsofNetPeriodicBenefitCostsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DefinedBenefitPlanNetPeriodicBenefitCostBeforeCostOfSettlementsAndCurtailments_44002372-d9b8-4ec5-bff7-a4c2a133e9f9" xlink:href="mtg-20201231.xsd#mtg_DefinedBenefitPlanNetPeriodicBenefitCostBeforeCostOfSettlementsAndCurtailments"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DefinedBenefitPlanSubtotal_acffc333-c894-4371-884b-7f3013bb6df2" xlink:href="mtg-20201231.xsd#mtg_DefinedBenefitPlanSubtotal"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanNetPeriodicBenefitCostBeforeCostOfSettlementsAndCurtailments_44002372-d9b8-4ec5-bff7-a4c2a133e9f9" xlink:to="loc_mtg_DefinedBenefitPlanSubtotal_acffc333-c894-4371-884b-7f3013bb6df2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DefinedBenefitPlanTotalAmortization_76659346-e9ab-4a2f-96a8-b8d03b31b962" xlink:href="mtg-20201231.xsd#mtg_DefinedBenefitPlanTotalAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanNetPeriodicBenefitCostBeforeCostOfSettlementsAndCurtailments_44002372-d9b8-4ec5-bff7-a4c2a133e9f9" xlink:to="loc_mtg_DefinedBenefitPlanTotalAmortization_76659346-e9ab-4a2f-96a8-b8d03b31b962" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DefinedBenefitPlanSubtotal_cce6d123-2531-482e-8e16-58060d473043" xlink:href="mtg-20201231.xsd#mtg_DefinedBenefitPlanSubtotal"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_ee6e5169-c326-4774-8c79-3814e8b2a1d5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanSubtotal_cce6d123-2531-482e-8e16-58060d473043" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_ee6e5169-c326-4774-8c79-3814e8b2a1d5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_c4753956-18d0-4051-b530-c081560d343b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanSubtotal_cce6d123-2531-482e-8e16-58060d473043" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_c4753956-18d0-4051-b530-c081560d343b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_36e1f894-8145-49a8-94d6-f8d16cd06f4f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanSubtotal_cce6d123-2531-482e-8e16-58060d473043" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_36e1f894-8145-49a8-94d6-f8d16cd06f4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanOtherCosts_246e90ab-af67-458e-a66e-780cd1c815b0" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanOtherCosts"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanSubtotal_cce6d123-2531-482e-8e16-58060d473043" xlink:to="loc_us-gaap_DefinedBenefitPlanOtherCosts_246e90ab-af67-458e-a66e-780cd1c815b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_fa29c841-fe9e-49e8-bd10-0cb3bf2cb971" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DefinedBenefitPlanNetPeriodicBenefitCostBeforeCostOfSettlementsAndCurtailments_3d369494-8d83-451a-be3e-f7d484d0f606" xlink:href="mtg-20201231.xsd#mtg_DefinedBenefitPlanNetPeriodicBenefitCostBeforeCostOfSettlementsAndCurtailments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_fa29c841-fe9e-49e8-bd10-0cb3bf2cb971" xlink:to="loc_mtg_DefinedBenefitPlanNetPeriodicBenefitCostBeforeCostOfSettlementsAndCurtailments_3d369494-8d83-451a-be3e-f7d484d0f606" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_e0299394-86e9-4982-b9a3-06594a0a2a4f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_fa29c841-fe9e-49e8-bd10-0cb3bf2cb971" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_e0299394-86e9-4982-b9a3-06594a0a2a4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DefinedBenefitPlanTotalAmortization_e4674487-d257-448d-a3a4-b303c0de0740" xlink:href="mtg-20201231.xsd#mtg_DefinedBenefitPlanTotalAmortization"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfTransitionAssetObligation_bb65b805-66a9-4422-8871-efcdd422fd89" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfTransitionAssetObligation"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanTotalAmortization_e4674487-d257-448d-a3a4-b303c0de0740" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfTransitionAssetObligation_bb65b805-66a9-4422-8871-efcdd422fd89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_6d8fdbc9-edbf-4907-b7e5-c07534c1dc28" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanTotalAmortization_e4674487-d257-448d-a3a4-b303c0de0740" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_6d8fdbc9-edbf-4907-b7e5-c07534c1dc28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_84719b33-4d63-47dd-89e4-d94dba142032" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanTotalAmortization_e4674487-d257-448d-a3a4-b303c0de0740" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_84719b33-4d63-47dd-89e4-d94dba142032" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansDevelopmentofFundedStatusDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansDevelopmentofFundedStatusDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansDevelopmentofFundedStatusDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_7f1a212a-f422-44c0-b2ee-b365c1783f85" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_97303ad0-2433-4e55-a9ef-23a275410968" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligation"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_7f1a212a-f422-44c0-b2ee-b365c1783f85" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_97303ad0-2433-4e55-a9ef-23a275410968" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_6e70c883-fbde-49c6-89bd-256c6886a46b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_7f1a212a-f422-44c0-b2ee-b365c1783f85" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_6e70c883-fbde-49c6-89bd-256c6886a46b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansAccumulatedOtherComprehensiveIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansAccumulatedOtherComprehensiveIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_f86839df-e75d-4097-a297-6a68b4fca842" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax_ebf91794-f9f6-4b8a-b49a-80e96dd3a38f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_f86839df-e75d-4097-a297-6a68b4fca842" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax_ebf91794-f9f6-4b8a-b49a-80e96dd3a38f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax_237b134b-5383-454a-89d0-787aee914f32" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_f86839df-e75d-4097-a297-6a68b4fca842" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax_237b134b-5383-454a-89d0-787aee914f32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetTransitionAssetsObligationsBeforeTax_211aa3b9-1ccf-4339-9833-d48b33218fdd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetTransitionAssetsObligationsBeforeTax"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_f86839df-e75d-4097-a297-6a68b4fca842" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetTransitionAssetsObligationsBeforeTax_211aa3b9-1ccf-4339-9833-d48b33218fdd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansChangeinProjectBenefitAccumulatedBenefitObligationsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansChangeinProjectBenefitAccumulatedBenefitObligationsDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansChangeinProjectBenefitAccumulatedBenefitObligationsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansChangeinPlanAssetsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansChangeinPlanAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansChangeinPlanAssetsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansChangeinAccumulatedOtherComprehensiveIncomeAOCIandExpectedAmortizationDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansChangeinAccumulatedOtherComprehensiveIncomeAOCIandExpectedAmortizationDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansChangeinAccumulatedOtherComprehensiveIncomeAOCIandExpectedAmortizationDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansActuarialAssumptionsandYearEndAssetAllocationsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansActuarialAssumptionsandYearEndAssetAllocationsDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansActuarialAssumptionsandYearEndAssetAllocationsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansFairValueofPlanAssetsDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansFairValueofPlanAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansFairValueofPlanAssetsDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansAdditionalDisclosuresDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansAdditionalDisclosuresDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansAdditionalDisclosuresDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansNarrativeDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#BenefitPlansNarrativeDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansNarrativeDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/IncomeTaxes" xlink:type="simple" xlink:href="mtg-20201231.xsd#IncomeTaxes"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/IncomeTaxes" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/IncomeTaxesTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#IncomeTaxesTables"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/IncomeTaxesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/IncomeTaxesDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#IncomeTaxesDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/IncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_e3ef5416-4bdb-4bdf-b0fb-35381cd7c166" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsUnearnedPremiumsReserve_e1ede9d3-9b38-415c-9367-f9e90377f470" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsUnearnedPremiumsReserve"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_e3ef5416-4bdb-4bdf-b0fb-35381cd7c166" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsUnearnedPremiumsReserve_e1ede9d3-9b38-415c-9367-f9e90377f470" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax_ae176ea0-8146-4122-a0ab-ba2c56ccf4c6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_e3ef5416-4bdb-4bdf-b0fb-35381cd7c166" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax_ae176ea0-8146-4122-a0ab-ba2c56ccf4c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves_95e12513-ee11-4677-a59e-0e6a77941170" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_e3ef5416-4bdb-4bdf-b0fb-35381cd7c166" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves_95e12513-ee11-4677-a59e-0e6a77941170" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DeferredTaxAssetsLiabilitiesNetOther_0a72fae5-7a39-4905-bd29-6d7c7115dd34" xlink:href="mtg-20201231.xsd#mtg_DeferredTaxAssetsLiabilitiesNetOther"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_e3ef5416-4bdb-4bdf-b0fb-35381cd7c166" xlink:to="loc_mtg_DeferredTaxAssetsLiabilitiesNetOther_0a72fae5-7a39-4905-bd29-6d7c7115dd34" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DeferredTaxAssetsLiabilitiesNetOtherComprehensiveIncome_66acc495-4c4c-4b7a-bd26-aa0f9a128a11" xlink:href="mtg-20201231.xsd#mtg_DeferredTaxAssetsLiabilitiesNetOtherComprehensiveIncome"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_e3ef5416-4bdb-4bdf-b0fb-35381cd7c166" xlink:to="loc_mtg_DeferredTaxAssetsLiabilitiesNetOtherComprehensiveIncome_66acc495-4c4c-4b7a-bd26-aa0f9a128a11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationandBenefitsEmployeeBenefits_4f6956a1-3c0e-46cf-8437-c49937d4dc29" xlink:href="mtg-20201231.xsd#mtg_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationandBenefitsEmployeeBenefits"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_e3ef5416-4bdb-4bdf-b0fb-35381cd7c166" xlink:to="loc_mtg_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationandBenefitsEmployeeBenefits_4f6956a1-3c0e-46cf-8437-c49937d4dc29" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DeferredTaxAssetsMortgageRelatedInvestments_3b95384a-6e0d-49df-8bac-bb64aac6ebaf" xlink:href="mtg-20201231.xsd#mtg_DeferredTaxAssetsMortgageRelatedInvestments"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_e3ef5416-4bdb-4bdf-b0fb-35381cd7c166" xlink:to="loc_mtg_DeferredTaxAssetsMortgageRelatedInvestments_3b95384a-6e0d-49df-8bac-bb64aac6ebaf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits_7c655e6f-1c0f-47a3-adc1-26b4e7af3936" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_e3ef5416-4bdb-4bdf-b0fb-35381cd7c166" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits_7c655e6f-1c0f-47a3-adc1-26b4e7af3936" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_3bdec04e-5adb-457d-a699-4b8db0955c63" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_c5635b4b-c31e-45de-9e60-1e246e7fae65" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_3bdec04e-5adb-457d-a699-4b8db0955c63" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_c5635b4b-c31e-45de-9e60-1e246e7fae65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_94b2cac2-b2d5-4d95-b8c0-da4f38e7fd71" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_3bdec04e-5adb-457d-a699-4b8db0955c63" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_94b2cac2-b2d5-4d95-b8c0-da4f38e7fd71" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_78bcc4c3-c120-4ff0-8239-c5c0cb578900" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_a89885dc-28e7-4e28-b6b9-b9977ffc8af1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_78bcc4c3-c120-4ff0-8239-c5c0cb578900" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_a89885dc-28e7-4e28-b6b9-b9977ffc8af1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationPriorYearIncomeTaxes_acc6ba25-d0a0-4116-84f7-e1b6610581f4" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationPriorYearIncomeTaxes"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_78bcc4c3-c120-4ff0-8239-c5c0cb578900" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationPriorYearIncomeTaxes_acc6ba25-d0a0-4116-84f7-e1b6610581f4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome_1eaa8188-dac6-4f32-86ec-d59e3f612acf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_78bcc4c3-c120-4ff0-8239-c5c0cb578900" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome_1eaa8188-dac6-4f32-86ec-d59e3f612acf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_00460951-56c2-43a1-b274-c985f0bd6d49" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_78bcc4c3-c120-4ff0-8239-c5c0cb578900" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_00460951-56c2-43a1-b274-c985f0bd6d49" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/IncomeTaxesDetails_1" xlink:type="simple" xlink:href="mtg-20201231.xsd#IncomeTaxesDetails_1"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/IncomeTaxesDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_1c45b34a-dac5-4f4c-ac3a-dfb00b3679cd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsUnearnedPremiumsReserve_f88da4d1-d9d6-4de9-bdd2-5407f19c1c8d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsUnearnedPremiumsReserve"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_1c45b34a-dac5-4f4c-ac3a-dfb00b3679cd" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsUnearnedPremiumsReserve_f88da4d1-d9d6-4de9-bdd2-5407f19c1c8d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationandBenefitsEmployeeBenefits_fc3ef61f-02a2-4d0d-8a5a-5b7b0c8c0d4e" xlink:href="mtg-20201231.xsd#mtg_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationandBenefitsEmployeeBenefits"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_1c45b34a-dac5-4f4c-ac3a-dfb00b3679cd" xlink:to="loc_mtg_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationandBenefitsEmployeeBenefits_fc3ef61f-02a2-4d0d-8a5a-5b7b0c8c0d4e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves_56f012db-3cc2-43a4-8192-9a88f27d8a60" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_1c45b34a-dac5-4f4c-ac3a-dfb00b3679cd" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves_56f012db-3cc2-43a4-8192-9a88f27d8a60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DeferredTaxAssetsLiabilitiesNetOtherComprehensiveIncome_56829cff-18a9-4cee-98f5-9bb0e4fd9785" xlink:href="mtg-20201231.xsd#mtg_DeferredTaxAssetsLiabilitiesNetOtherComprehensiveIncome"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_1c45b34a-dac5-4f4c-ac3a-dfb00b3679cd" xlink:to="loc_mtg_DeferredTaxAssetsLiabilitiesNetOtherComprehensiveIncome_56829cff-18a9-4cee-98f5-9bb0e4fd9785" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DeferredTaxAssetsMortgageRelatedInvestments_a48ddb51-3e4f-46bf-b500-17c16ed437d7" xlink:href="mtg-20201231.xsd#mtg_DeferredTaxAssetsMortgageRelatedInvestments"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_1c45b34a-dac5-4f4c-ac3a-dfb00b3679cd" xlink:to="loc_mtg_DeferredTaxAssetsMortgageRelatedInvestments_a48ddb51-3e4f-46bf-b500-17c16ed437d7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits_1ab9e47b-0aab-4999-bbf3-df0279525bbf" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_1c45b34a-dac5-4f4c-ac3a-dfb00b3679cd" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits_1ab9e47b-0aab-4999-bbf3-df0279525bbf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax_bbca7ddf-6cd0-48e4-a370-f87ac4658b1d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_1c45b34a-dac5-4f4c-ac3a-dfb00b3679cd" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax_bbca7ddf-6cd0-48e4-a370-f87ac4658b1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_DeferredTaxAssetsLiabilitiesNetOther_7ee01fbf-1e4f-4df7-9378-99c47e59789b" xlink:href="mtg-20201231.xsd#mtg_DeferredTaxAssetsLiabilitiesNetOther"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_1c45b34a-dac5-4f4c-ac3a-dfb00b3679cd" xlink:to="loc_mtg_DeferredTaxAssetsLiabilitiesNetOther_7ee01fbf-1e4f-4df7-9378-99c47e59789b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxLiabilities_ce2cb3ff-ab92-4a16-9b6a-9039e66be618" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_05a31479-3195-44e4-9e2f-fc68e6c3ec75" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_ce2cb3ff-ab92-4a16-9b6a-9039e66be618" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_05a31479-3195-44e4-9e2f-fc68e6c3ec75" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_e60726be-780b-4afc-b0cd-e66712830aab" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsGross"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_ce2cb3ff-ab92-4a16-9b6a-9039e66be618" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_e60726be-780b-4afc-b0cd-e66712830aab" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/ShareholdersEquity" xlink:type="simple" xlink:href="mtg-20201231.xsd#ShareholdersEquity"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ShareholdersEquity" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/ShareholdersEquityDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#ShareholdersEquityDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ShareholdersEquityDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/StatutoryInformation" xlink:type="simple" xlink:href="mtg-20201231.xsd#StatutoryInformation"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/StatutoryInformation" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/StatutoryInformationTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#StatutoryInformationTables"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/StatutoryInformationTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/StatutoryInformationNarrativeDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#StatutoryInformationNarrativeDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/StatutoryInformationNarrativeDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/StatutoryInformationStatutoryfinancialinformationofinsurancesubsidiariesDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#StatutoryInformationStatutoryfinancialinformationofinsurancesubsidiariesDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/StatutoryInformationStatutoryfinancialinformationofinsurancesubsidiariesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/StatutoryInformationSurpluscontributionsanddividendsofinsurancesubsidiariesDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#StatutoryInformationSurpluscontributionsanddividendsofinsurancesubsidiariesDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/StatutoryInformationSurpluscontributionsanddividendsofinsurancesubsidiariesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SharebasedCompensationPlans" xlink:type="simple" xlink:href="mtg-20201231.xsd#SharebasedCompensationPlans"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/SharebasedCompensationPlans" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SharebasedCompensationPlansTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#SharebasedCompensationPlansTables"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/SharebasedCompensationPlansTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SharebasedCompensationPlansDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#SharebasedCompensationPlansDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/SharebasedCompensationPlansDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/Leases" xlink:type="simple" xlink:href="mtg-20201231.xsd#Leases"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/Leases" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LeasesTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#LeasesTables"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/LeasesTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LeasesDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#LeasesDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/LeasesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_466a730e-c6ee-4ad7-a386-b504e7ed098e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_3b17e805-c0af-437a-b847-79b003fe380d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_466a730e-c6ee-4ad7-a386-b504e7ed098e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_3b17e805-c0af-437a-b847-79b003fe380d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_3aa789ce-168d-4002-90cd-64d16cb4a1b6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_466a730e-c6ee-4ad7-a386-b504e7ed098e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_3aa789ce-168d-4002-90cd-64d16cb4a1b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_c8bb309f-e800-447c-988c-2252f574acf9" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_466a730e-c6ee-4ad7-a386-b504e7ed098e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_c8bb309f-e800-447c-988c-2252f574acf9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_a1a62aa0-aed6-447b-84af-7e246022258b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_466a730e-c6ee-4ad7-a386-b504e7ed098e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_a1a62aa0-aed6-447b-84af-7e246022258b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_e5bd18d9-cb2e-478c-80d6-0412fea23f6e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_466a730e-c6ee-4ad7-a386-b504e7ed098e" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_e5bd18d9-cb2e-478c-80d6-0412fea23f6e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/LitigationandContingencies" xlink:type="simple" xlink:href="mtg-20201231.xsd#LitigationandContingencies"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/LitigationandContingencies" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/LitigationandContingenciesDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#LitigationandContingenciesDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/LitigationandContingenciesDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/UnauditedQuarterlyFinancialData" xlink:type="simple" xlink:href="mtg-20201231.xsd#UnauditedQuarterlyFinancialData"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/UnauditedQuarterlyFinancialData" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/UnauditedQuarterlyFinancialDataTables" xlink:type="simple" xlink:href="mtg-20201231.xsd#UnauditedQuarterlyFinancialDataTables"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/UnauditedQuarterlyFinancialDataTables" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/UnauditedQuarterlyFinancialDataDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#UnauditedQuarterlyFinancialDataDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/UnauditedQuarterlyFinancialDataDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIES" xlink:type="simple" xlink:href="mtg-20201231.xsd#SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIES"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIES" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIESDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIESDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/SCHEDULEISUMMARYOFINVESTMENTSOTHERTHANINVESTMENTSINRELATEDPARTIESDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANT" xlink:type="simple" xlink:href="mtg-20201231.xsd#SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANT"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANT" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_a659fbb6-e1dd-4ecf-a142-6a277afdf840" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_83c985fe-55a4-4c85-a30a-596208cac070" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a659fbb6-e1dd-4ecf-a142-6a277afdf840" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_83c985fe-55a4-4c85-a30a-596208cac070" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_471df637-2ac3-4ce1-a578-4b58b7cdb45b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a659fbb6-e1dd-4ecf-a142-6a277afdf840" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_471df637-2ac3-4ce1-a578-4b58b7cdb45b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromSubsidiariesNetOfTax_3fb06087-2158-4e09-893f-2a3ffd0b5f2f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromSubsidiariesNetOfTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_a659fbb6-e1dd-4ecf-a142-6a277afdf840" xlink:to="loc_us-gaap_IncomeLossFromSubsidiariesNetOfTax_3fb06087-2158-4e09-893f-2a3ffd0b5f2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e25135dd-6840-4857-8f47-94e2093e7534" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_2490ae78-008b-4b6e-85f2-c3f76e602a1f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e25135dd-6840-4857-8f47-94e2093e7534" xlink:to="loc_us-gaap_NetIncomeLoss_2490ae78-008b-4b6e-85f2-c3f76e602a1f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_a681a87f-3dda-408b-9fd8-1774052dfce3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e25135dd-6840-4857-8f47-94e2093e7534" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_a681a87f-3dda-408b-9fd8-1774052dfce3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_eea671d6-10ad-4910-873d-562dde9962c6" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e25135dd-6840-4857-8f47-94e2093e7534" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_eea671d6-10ad-4910-873d-562dde9962c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_088b083e-89c4-4781-afc5-993078d983b5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e25135dd-6840-4857-8f47-94e2093e7534" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_088b083e-89c4-4781-afc5-993078d983b5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_5caac99e-272b-42fd-aa8d-1fed8418f220" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e25135dd-6840-4857-8f47-94e2093e7534" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_5caac99e-272b-42fd-aa8d-1fed8418f220" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesReceivable_4b4d5002-f43d-4b02-b7e9-7afbe6bfc47d" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesReceivable"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e25135dd-6840-4857-8f47-94e2093e7534" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesReceivable_4b4d5002-f43d-4b02-b7e9-7afbe6bfc47d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries_b117bc61-dfc3-4248-a6e0-6cb03b1958e5" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e25135dd-6840-4857-8f47-94e2093e7534" xlink:to="loc_us-gaap_CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries_b117bc61-dfc3-4248-a6e0-6cb03b1958e5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties_3ec3645e-52e0-4a1f-80b3-31f048fa4a20" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e25135dd-6840-4857-8f47-94e2093e7534" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties_3ec3645e-52e0-4a1f-80b3-31f048fa4a20" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromSubsidiariesNetOfTax_1b611f01-d640-48fb-87bd-c353e915dec2" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromSubsidiariesNetOfTax"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e25135dd-6840-4857-8f47-94e2093e7534" xlink:to="loc_us-gaap_IncomeLossFromSubsidiariesNetOfTax_1b611f01-d640-48fb-87bd-c353e915dec2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_fc2f8ad2-cad5-4b9a-9d4b-b6db58a50b04" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_e25135dd-6840-4857-8f47-94e2093e7534" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_fc2f8ad2-cad5-4b9a-9d4b-b6db58a50b04" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BenefitsLossesAndExpenses_58c0732a-32d5-404e-905b-e3c4de78cedc" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BenefitsLossesAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingExpenses_c54e0712-8f49-4588-b505-f9f3898c3e4b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingExpenses"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_58c0732a-32d5-404e-905b-e3c4de78cedc" xlink:to="loc_us-gaap_OperatingExpenses_c54e0712-8f49-4588-b505-f9f3898c3e4b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpenseDebt_86b7c3a8-8c6a-4c97-af4c-29ad80d1d3ea" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpenseDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_58c0732a-32d5-404e-905b-e3c4de78cedc" xlink:to="loc_us-gaap_InterestExpenseDebt_86b7c3a8-8c6a-4c97-af4c-29ad80d1d3ea" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_f1efd198-756b-4ae0-b263-313f9bafa232" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_58c0732a-32d5-404e-905b-e3c4de78cedc" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_f1efd198-756b-4ae0-b263-313f9bafa232" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_5e275552-d007-4d09-85a1-265cab968d1c" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SeniorNotes_4b108889-3748-48c2-a534-425051ea1702" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeniorNotes"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_5e275552-d007-4d09-85a1-265cab968d1c" xlink:to="loc_us-gaap_SeniorNotes_4b108889-3748-48c2-a534-425051ea1702" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleSubordinatedDebt_4ad6e8c3-fe1c-478b-b298-d09653fec5e7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConvertibleSubordinatedDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_5e275552-d007-4d09-85a1-265cab968d1c" xlink:to="loc_us-gaap_ConvertibleSubordinatedDebt_4ad6e8c3-fe1c-478b-b298-d09653fec5e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_54e664f0-7c8e-479f-8aa2-8b40109657e7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestPayableCurrentAndNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_5e275552-d007-4d09-85a1-265cab968d1c" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_54e664f0-7c8e-479f-8aa2-8b40109657e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilities_1ba03802-b369-4526-83fb-ea490e9bec3a" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilities"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_5e275552-d007-4d09-85a1-265cab968d1c" xlink:to="loc_us-gaap_OtherLiabilities_1ba03802-b369-4526-83fb-ea490e9bec3a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_e9ab5cd1-cce8-4181-b6a5-ca5dc6da16c3" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_f6818687-1332-4701-98ee-39505dbe9242" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e9ab5cd1-cce8-4181-b6a5-ca5dc6da16c3" xlink:to="loc_us-gaap_OtherAssets_f6818687-1332-4701-98ee-39505dbe9242" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DueFromRelatedParties_a57e4213-6da0-498b-8177-8545a3e4a69e" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DueFromRelatedParties"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e9ab5cd1-cce8-4181-b6a5-ca5dc6da16c3" xlink:to="loc_us-gaap_DueFromRelatedParties_a57e4213-6da0-498b-8177-8545a3e4a69e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndOtherTaxReceivableCurrent_17d500af-de58-4549-8335-b380284d182f" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxesAndOtherTaxReceivableCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e9ab5cd1-cce8-4181-b6a5-ca5dc6da16c3" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndOtherTaxReceivableCurrent_17d500af-de58-4549-8335-b380284d182f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_55f6ebdb-c404-437b-b08d-4a03292a2cbd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e9ab5cd1-cce8-4181-b6a5-ca5dc6da16c3" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_55f6ebdb-c404-437b-b08d-4a03292a2cbd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_0e107ee6-5343-4ed7-a9c0-d67359763287" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e9ab5cd1-cce8-4181-b6a5-ca5dc6da16c3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_0e107ee6-5343-4ed7-a9c0-d67359763287" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedInvestmentIncomeReceivable_4575cff7-f4c2-4e63-89da-1047099fc33b" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccruedInvestmentIncomeReceivable"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e9ab5cd1-cce8-4181-b6a5-ca5dc6da16c3" xlink:to="loc_us-gaap_AccruedInvestmentIncomeReceivable_4575cff7-f4c2-4e63-89da-1047099fc33b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_mtg_InvestmentInSubsidiariesAtEquityInNetAssets_42398bc2-3afd-423a-8a8e-ad9b78f66f4b" xlink:href="mtg-20201231.xsd#mtg_InvestmentInSubsidiariesAtEquityInNetAssets"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_e9ab5cd1-cce8-4181-b6a5-ca5dc6da16c3" xlink:to="loc_mtg_InvestmentInSubsidiariesAtEquityInNetAssets_42398bc2-3afd-423a-8a8e-ad9b78f66f4b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.mgic.com/role/SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTSUPPLEMENTARYNOTESDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTSUPPLEMENTARYNOTESDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/SCHEDULEIICONDENSEDFINANCIALINFORMATIONOFREGISTRANTSUPPLEMENTARYNOTESDetails" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SCHEDULEIVREINSURANCE" xlink:type="simple" xlink:href="mtg-20201231.xsd#SCHEDULEIVREINSURANCE"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/SCHEDULEIVREINSURANCE" xlink:type="extended"/>
  <link:roleRef roleURI="http://www.mgic.com/role/SCHEDULEIVREINSURANCEDetails" xlink:type="simple" xlink:href="mtg-20201231.xsd#SCHEDULEIVREINSURANCEDetails"/>
  <link:calculationLink xlink:role="http://www.mgic.com/role/SCHEDULEIVREINSURANCEDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsEarnedNet_8b742262-af0b-40ab-8a97-ac1c9d21f8dd" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PremiumsEarnedNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DirectPremiumsEarned_9049dff7-4126-4419-ae5e-53b96b0a4ba7" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DirectPremiumsEarned"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNet_8b742262-af0b-40ab-8a97-ac1c9d21f8dd" xlink:to="loc_us-gaap_DirectPremiumsEarned_9049dff7-4126-4419-ae5e-53b96b0a4ba7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CededPremiumsEarned_a994bf79-6e7f-4e81-9693-0ef0b429eef1" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CededPremiumsEarned"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNet_8b742262-af0b-40ab-8a97-ac1c9d21f8dd" xlink:to="loc_us-gaap_CededPremiumsEarned_a994bf79-6e7f-4e81-9693-0ef0b429eef1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssumedPremiumsEarned_55e01c7e-7fc3-4dc3-8975-37a8d299b5ae" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssumedPremiumsEarned"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNet_8b742262-af0b-40ab-8a97-ac1c9d21f8dd" xlink:to="loc_us-gaap_AssumedPremiumsEarned_55e01c7e-7fc3-4dc3-8975-37a8d299b5ae" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
