<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" 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">
  <link:roleRef roleURI="http://www.mgic.com/role/BasisOfPresentation" xlink:href="mtg-20191231.xsd#BasisOfPresentation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlans" xlink:href="mtg-20191231.xsd#BenefitPlans" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansAccumulatedOtherComprehensiveIncomeDetails" xlink:href="mtg-20191231.xsd#BenefitPlansAccumulatedOtherComprehensiveIncomeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansActuarialAssumptionsAndYearEndAssetAllocationsDetails" xlink:href="mtg-20191231.xsd#BenefitPlansActuarialAssumptionsAndYearEndAssetAllocationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansAdditionalDisclosuresDetails" xlink:href="mtg-20191231.xsd#BenefitPlansAdditionalDisclosuresDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansChangeInAccumulatedOtherComprehensiveIncomeAociAndExpectedAmortizationDetails" xlink:href="mtg-20191231.xsd#BenefitPlansChangeInAccumulatedOtherComprehensiveIncomeAociAndExpectedAmortizationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansChangeInPlanAssetsDetails" xlink:href="mtg-20191231.xsd#BenefitPlansChangeInPlanAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansChangeInProjectBenefitAccumulatedBenefitObligationsDetails" xlink:href="mtg-20191231.xsd#BenefitPlansChangeInProjectBenefitAccumulatedBenefitObligationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansComponentsOfNetPeriodicBenefitCostsDetails" xlink:href="mtg-20191231.xsd#BenefitPlansComponentsOfNetPeriodicBenefitCostsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansDevelopmentOfFundedStatusDetails" xlink:href="mtg-20191231.xsd#BenefitPlansDevelopmentOfFundedStatusDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansFairValueOfPlanAssetsDetails" xlink:href="mtg-20191231.xsd#BenefitPlansFairValueOfPlanAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansNarrativeDetails" xlink:href="mtg-20191231.xsd#BenefitPlansNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/BenefitPlansTables" xlink:href="mtg-20191231.xsd#BenefitPlansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ConsolidatedBalanceSheets" xlink:href="mtg-20191231.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="mtg-20191231.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="mtg-20191231.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:href="mtg-20191231.xsd#ConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ConsolidatedStatementsOfOperations" xlink:href="mtg-20191231.xsd#ConsolidatedStatementsOfOperations" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ConsolidatedStatementsOfShareholdersEquity" xlink:href="mtg-20191231.xsd#ConsolidatedStatementsOfShareholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/Debt" xlink:href="mtg-20191231.xsd#Debt" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/DebtDetails" xlink:href="mtg-20191231.xsd#DebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/DebtSummaryOfObligationsDetails" xlink:href="mtg-20191231.xsd#DebtSummaryOfObligationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/DebtTables" xlink:href="mtg-20191231.xsd#DebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/DocumentAndEntityInformation" xlink:href="mtg-20191231.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/EarningsPerShare" xlink:href="mtg-20191231.xsd#EarningsPerShare" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/EarningsPerShareDetails" xlink:href="mtg-20191231.xsd#EarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/EarningsPerShareTables" xlink:href="mtg-20191231.xsd#EarningsPerShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurements" xlink:href="mtg-20191231.xsd#FairValueMeasurements" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurementsAssetsAndLiabilitiesNotMeasuredAtFairValueDetails" xlink:href="mtg-20191231.xsd#FairValueMeasurementsAssetsAndLiabilitiesNotMeasuredAtFairValueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurementsDetails" xlink:href="mtg-20191231.xsd#FairValueMeasurementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurementsTables" xlink:href="mtg-20191231.xsd#FairValueMeasurementsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/FairValueMeasurementsUnobservableInputReconciliationDetails" xlink:href="mtg-20191231.xsd#FairValueMeasurementsUnobservableInputReconciliationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/IncomeTaxes" xlink:href="mtg-20191231.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/IncomeTaxesDetails" xlink:href="mtg-20191231.xsd#IncomeTaxesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/IncomeTaxesDetailsCalc2" xlink:href="mtg-20191231.xsd#IncomeTaxesDetailsCalc2" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/IncomeTaxesTables" xlink:href="mtg-20191231.xsd#IncomeTaxesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/Investments" xlink:href="mtg-20191231.xsd#Investments" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/InvestmentsDetails" xlink:href="mtg-20191231.xsd#InvestmentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/InvestmentsGainLossOnInvestmentsDetails" xlink:href="mtg-20191231.xsd#InvestmentsGainLossOnInvestmentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/InvestmentsInvestmentIncomeByCategoryDetails" xlink:href="mtg-20191231.xsd#InvestmentsInvestmentIncomeByCategoryDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/InvestmentsTables" xlink:href="mtg-20191231.xsd#InvestmentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/Leases" xlink:href="mtg-20191231.xsd#Leases" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/LeasesDetails" xlink:href="mtg-20191231.xsd#LeasesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/LeasesTables" xlink:href="mtg-20191231.xsd#LeasesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/LitigationAndContingencies" xlink:href="mtg-20191231.xsd#LitigationAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/LitigationAndContingenciesDetails" xlink:href="mtg-20191231.xsd#LitigationAndContingenciesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/LossReserves" xlink:href="mtg-20191231.xsd#LossReserves" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesAgingOfPrimaryDefaultInventoryAndNumberOfDelinquentPaymentsDetails" xlink:href="mtg-20191231.xsd#LossReservesAgingOfPrimaryDefaultInventoryAndNumberOfDelinquentPaymentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesDefaultInventoryReconciliationDetails" xlink:href="mtg-20191231.xsd#LossReservesDefaultInventoryReconciliationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesNarrativeDetails" xlink:href="mtg-20191231.xsd#LossReservesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesPriorYearLossReservesDetails" xlink:href="mtg-20191231.xsd#LossReservesPriorYearLossReservesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesReconciliationOfChangesInLossReservesDetails" xlink:href="mtg-20191231.xsd#LossReservesReconciliationOfChangesInLossReservesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/LossReservesTables" xlink:href="mtg-20191231.xsd#LossReservesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/NatureOfBusiness" xlink:href="mtg-20191231.xsd#NatureOfBusiness" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/NatureOfBusinessDetails" xlink:href="mtg-20191231.xsd#NatureOfBusinessDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/OtherComprehensiveIncomeLoss" xlink:href="mtg-20191231.xsd#OtherComprehensiveIncomeLoss" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/OtherComprehensiveIncomeLossDetails" xlink:href="mtg-20191231.xsd#OtherComprehensiveIncomeLossDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/OtherComprehensiveIncomeLossTables" xlink:href="mtg-20191231.xsd#OtherComprehensiveIncomeLossTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/Reinsurance" xlink:href="mtg-20191231.xsd#Reinsurance" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceExcessOfLossReinsuranceDetails" xlink:href="mtg-20191231.xsd#ReinsuranceExcessOfLossReinsuranceDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceHomeReEntitiesTotalAssetsDetails" xlink:href="mtg-20191231.xsd#ReinsuranceHomeReEntitiesTotalAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceNarrativeDetails" xlink:href="mtg-20191231.xsd#ReinsuranceNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceQuotaShareReinsuranceDetails" xlink:href="mtg-20191231.xsd#ReinsuranceQuotaShareReinsuranceDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceSummaryOfReinsuranceAgreementsDetails" xlink:href="mtg-20191231.xsd#ReinsuranceSummaryOfReinsuranceAgreementsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ReinsuranceTables" xlink:href="mtg-20191231.xsd#ReinsuranceTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedParties" xlink:href="mtg-20191231.xsd#ScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedParties" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails" xlink:href="mtg-20191231.xsd#ScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ScheduleIiCondensedFinancialInformationOfRegistrant" xlink:href="mtg-20191231.xsd#ScheduleIiCondensedFinancialInformationOfRegistrant" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ScheduleIiCondensedFinancialInformationOfRegistrantDetails" xlink:href="mtg-20191231.xsd#ScheduleIiCondensedFinancialInformationOfRegistrantDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ScheduleIiCondensedFinancialInformationOfRegistrantSupplementaryNotesDetails" xlink:href="mtg-20191231.xsd#ScheduleIiCondensedFinancialInformationOfRegistrantSupplementaryNotesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ScheduleIvReinsurance" xlink:href="mtg-20191231.xsd#ScheduleIvReinsurance" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ScheduleIvReinsuranceDetails" xlink:href="mtg-20191231.xsd#ScheduleIvReinsuranceDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ShareBasedCompensationPlans" xlink:href="mtg-20191231.xsd#ShareBasedCompensationPlans" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ShareBasedCompensationPlansDetails" xlink:href="mtg-20191231.xsd#ShareBasedCompensationPlansDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ShareBasedCompensationPlansTables" xlink:href="mtg-20191231.xsd#ShareBasedCompensationPlansTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ShareholdersEquity" xlink:href="mtg-20191231.xsd#ShareholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/ShareholdersEquityDetails" xlink:href="mtg-20191231.xsd#ShareholdersEquityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/SignificantAccountingPolicies" xlink:href="mtg-20191231.xsd#SignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/SignificantAccountingPoliciesDetails" xlink:href="mtg-20191231.xsd#SignificantAccountingPoliciesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/SignificantAccountingPoliciesPolicies" xlink:href="mtg-20191231.xsd#SignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/SignificantAccountingPoliciesTables" xlink:href="mtg-20191231.xsd#SignificantAccountingPoliciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/StatutoryInformation" xlink:href="mtg-20191231.xsd#StatutoryInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/StatutoryInformationDetails" xlink:href="mtg-20191231.xsd#StatutoryInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/StatutoryInformationTables" xlink:href="mtg-20191231.xsd#StatutoryInformationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/UnauditedQuarterlyFinancialData" xlink:href="mtg-20191231.xsd#UnauditedQuarterlyFinancialData" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/UnauditedQuarterlyFinancialDataDetails" xlink:href="mtg-20191231.xsd#UnauditedQuarterlyFinancialDataDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.mgic.com/role/UnauditedQuarterlyFinancialDataTables" xlink:href="mtg-20191231.xsd#UnauditedQuarterlyFinancialDataTables" xlink:type="simple" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/BasisOfPresentation" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlans" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansAccumulatedOtherComprehensiveIncomeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_c6c723d7-e9d1-db70-b81f-a29b45af6851" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax_950e2000-4fae-d7e6-7286-3e38afff2fa4" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_c6c723d7-e9d1-db70-b81f-a29b45af6851" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetGainsLossesBeforeTax_950e2000-4fae-d7e6-7286-3e38afff2fa4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax_19b45600-146a-9c95-acaf-000acfa3ba0d" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_c6c723d7-e9d1-db70-b81f-a29b45af6851" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetPriorServiceCostCreditBeforeTax_19b45600-146a-9c95-acaf-000acfa3ba0d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetTransitionAssetsObligationsBeforeTax" xlink:label="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetTransitionAssetsObligationsBeforeTax_1ffa4885-898b-5248-5982-da1959747e86" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeBeforeTax_c6c723d7-e9d1-db70-b81f-a29b45af6851" xlink:to="loc_us-gaap_DefinedBenefitPlanAccumulatedOtherComprehensiveIncomeNetTransitionAssetsObligationsBeforeTax_1ffa4885-898b-5248-5982-da1959747e86" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansActuarialAssumptionsAndYearEndAssetAllocationsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansAdditionalDisclosuresDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansChangeInAccumulatedOtherComprehensiveIncomeAociAndExpectedAmortizationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansChangeInPlanAssetsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansChangeInProjectBenefitAccumulatedBenefitObligationsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansComponentsOfNetPeriodicBenefitCostsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_d77fe029-f23f-9e6c-6011-e5f759449bed" xlink:type="locator" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_DefinedBenefitPlanNetPeriodicBenefitCostBeforeCostOfSettlementsAndCurtailments" xlink:label="loc_mtg_DefinedBenefitPlanNetPeriodicBenefitCostBeforeCostOfSettlementsAndCurtailments_b973fc12-10f9-f7b9-c22f-e86039cd8046" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_d77fe029-f23f-9e6c-6011-e5f759449bed" xlink:to="loc_mtg_DefinedBenefitPlanNetPeriodicBenefitCostBeforeCostOfSettlementsAndCurtailments_b973fc12-10f9-f7b9-c22f-e86039cd8046" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_DefinedBenefitPlanSubtotal" xlink:label="loc_mtg_DefinedBenefitPlanSubtotal_596b6461-8eb9-93a6-90d9-1a086ddf82a5" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanNetPeriodicBenefitCostBeforeCostOfSettlementsAndCurtailments_b973fc12-10f9-f7b9-c22f-e86039cd8046" xlink:to="loc_mtg_DefinedBenefitPlanSubtotal_596b6461-8eb9-93a6-90d9-1a086ddf82a5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanServiceCost" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_e14243b3-33a1-5459-a451-077ec8d3f8e3" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanSubtotal_596b6461-8eb9-93a6-90d9-1a086ddf82a5" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_e14243b3-33a1-5459-a451-077ec8d3f8e3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanInterestCost" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_08bfb8dd-9b96-b2df-e96d-3661802234df" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanSubtotal_596b6461-8eb9-93a6-90d9-1a086ddf82a5" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_08bfb8dd-9b96-b2df-e96d-3661802234df" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_65f7f8a8-89d5-6dc6-d223-452e554561e4" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanSubtotal_596b6461-8eb9-93a6-90d9-1a086ddf82a5" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_65f7f8a8-89d5-6dc6-d223-452e554561e4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanOtherCosts" xlink:label="loc_us-gaap_DefinedBenefitPlanOtherCosts_cf4a4c2a-776d-e04e-c8e0-70482dca6469" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanSubtotal_596b6461-8eb9-93a6-90d9-1a086ddf82a5" xlink:to="loc_us-gaap_DefinedBenefitPlanOtherCosts_cf4a4c2a-776d-e04e-c8e0-70482dca6469" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_DefinedBenefitPlanTotalAmortization" xlink:label="loc_mtg_DefinedBenefitPlanTotalAmortization_5123abcc-4cd8-58a3-019f-1a086e538f61" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanNetPeriodicBenefitCostBeforeCostOfSettlementsAndCurtailments_b973fc12-10f9-f7b9-c22f-e86039cd8046" xlink:to="loc_mtg_DefinedBenefitPlanTotalAmortization_5123abcc-4cd8-58a3-019f-1a086e538f61" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfTransitionAssetObligation" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfTransitionAssetObligation_d11657b5-c367-74bd-1a4e-61693f815352" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanTotalAmortization_5123abcc-4cd8-58a3-019f-1a086e538f61" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfTransitionAssetObligation_d11657b5-c367-74bd-1a4e-61693f815352" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_6bc5232c-ca32-47e4-f9fd-2a89043cd46b" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanTotalAmortization_5123abcc-4cd8-58a3-019f-1a086e538f61" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_6bc5232c-ca32-47e4-f9fd-2a89043cd46b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_0d8fe3ab-8638-f17a-d512-2baaf0d8fce2" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_DefinedBenefitPlanTotalAmortization_5123abcc-4cd8-58a3-019f-1a086e538f61" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses_0d8fe3ab-8638-f17a-d512-2baaf0d8fce2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1" xlink:label="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_fd8b621d-4569-47db-ebf9-d214bda4755a" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_d77fe029-f23f-9e6c-6011-e5f759449bed" xlink:to="loc_us-gaap_DefinedBenefitPlanRecognizedNetGainLossDueToSettlementsAndCurtailments1_fd8b621d-4569-47db-ebf9-d214bda4755a" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansDevelopmentOfFundedStatusDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFundedStatusOfPlan" xlink:label="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_ba6fb524-25a2-9912-2ce3-daf35bbcf9c3" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanBenefitObligation" xlink:label="loc_us-gaap_DefinedBenefitPlanBenefitObligation_a57e9aa7-191d-46c2-2e04-3fd2e411d7da" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_ba6fb524-25a2-9912-2ce3-daf35bbcf9c3" xlink:to="loc_us-gaap_DefinedBenefitPlanBenefitObligation_a57e9aa7-191d-46c2-2e04-3fd2e411d7da" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DefinedBenefitPlanFairValueOfPlanAssets" xlink:label="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_1d5e04b8-b6a0-335a-2c79-60834f9a1f25" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanFundedStatusOfPlan_ba6fb524-25a2-9912-2ce3-daf35bbcf9c3" xlink:to="loc_us-gaap_DefinedBenefitPlanFairValueOfPlanAssets_1d5e04b8-b6a0-335a-2c79-60834f9a1f25" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansFairValueOfPlanAssetsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/BenefitPlansTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1de780cc-9607-daa3-0bed-03c88ae94769" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1de780cc-9607-daa3-0bed-03c88ae94769" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedCashAndCashEquivalents" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalents_ae11e3b1-839b-d0b0-a04b-b35611528b8c" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalents_ae11e3b1-839b-d0b0-a04b-b35611528b8c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccruedInvestmentIncomeReceivable" xlink:label="loc_us-gaap_AccruedInvestmentIncomeReceivable_bfbf3cab-2654-5a6a-253b-82bbababe3ce" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_AccruedInvestmentIncomeReceivable_bfbf3cab-2654-5a6a-253b-82bbababe3ce" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Investments" xlink:label="loc_us-gaap_Investments_9f1ea5a8-e0ad-ec84-f87b-82d9863fd82f" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_Investments_9f1ea5a8-e0ad-ec84-f87b-82d9863fd82f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_9f1ea5a8-e0ad-ec84-f87b-82d9863fd82f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesFvNi" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_c88e6350-e26e-969b-2f36-fb6881edab88" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_9f1ea5a8-e0ad-ec84-f87b-82d9863fd82f" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_c88e6350-e26e-969b-2f36-fb6881edab88" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherInvestments" xlink:label="loc_us-gaap_OtherInvestments_83cb8fda-8368-0bfc-07a8-e25c618c7b71" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_9f1ea5a8-e0ad-ec84-f87b-82d9863fd82f" xlink:to="loc_us-gaap_OtherInvestments_83cb8fda-8368-0bfc-07a8-e25c618c7b71" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments" xlink:label="loc_us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments_45903405-0b47-0d5d-7831-78be237f2180" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_ReinsuranceRecoverableForUnpaidClaimsAndClaimsAdjustments_45903405-0b47-0d5d-7831-78be237f2180" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsuranceRecoverablesOnPaidLosses" xlink:label="loc_us-gaap_ReinsuranceRecoverablesOnPaidLosses_b76ca03e-2b98-2070-3cc7-8197b69c5341" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_ReinsuranceRecoverablesOnPaidLosses_b76ca03e-2b98-2070-3cc7-8197b69c5341" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PremiumsReceivableAtCarryingValue" xlink:label="loc_us-gaap_PremiumsReceivableAtCarryingValue_82058bad-06da-019a-216a-114ac6e1abf8" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_PremiumsReceivableAtCarryingValue_82058bad-06da-019a-216a-114ac6e1abf8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_4246ec24-1a4c-19dd-57c9-32d4a8e0cbaa" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_4246ec24-1a4c-19dd-57c9-32d4a8e0cbaa" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredPolicyAcquisitionCosts" xlink:label="loc_us-gaap_DeferredPolicyAcquisitionCosts_73b0729e-31ca-4e5a-414b-f49774aa79ba" xlink:type="locator" />
    <link:calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_DeferredPolicyAcquisitionCosts_73b0729e-31ca-4e5a-414b-f49774aa79ba" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_53a34e15-d375-c4e0-c5cf-68e055eee5e5" xlink:type="locator" />
    <link:calculationArc order="10" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_OtherAssets_53a34e15-d375-c4e0-c5cf-68e055eee5e5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxAssetsNet" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_60654fa3-82c2-3e38-ce88-436acda713ac" xlink:type="locator" />
    <link:calculationArc order="11" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_60654fa3-82c2-3e38-ce88-436acda713ac" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_d7f1ad03-6ed4-706a-15fc-eae794dee33a" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_4b9904d8-8624-0dbb-a949-29ff2cf808a8" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_d7f1ad03-6ed4-706a-15fc-eae794dee33a" xlink:to="loc_us-gaap_StockholdersEquity_4b9904d8-8624-0dbb-a949-29ff2cf808a8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_988c1346-b444-a867-fe80-f3aec1443d54" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b9904d8-8624-0dbb-a949-29ff2cf808a8" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_988c1346-b444-a867-fe80-f3aec1443d54" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_f05ab245-2bd1-7865-e7ed-1461a5a6155f" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b9904d8-8624-0dbb-a949-29ff2cf808a8" xlink:to="loc_us-gaap_CommonStockValue_f05ab245-2bd1-7865-e7ed-1461a5a6155f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdditionalPaidInCapitalCommonStock" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_9a00ddef-ccc2-f99c-735a-66b1e1849bbf" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b9904d8-8624-0dbb-a949-29ff2cf808a8" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_9a00ddef-ccc2-f99c-735a-66b1e1849bbf" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_TreasuryStockValue" xlink:label="loc_us-gaap_TreasuryStockValue_e6069c8d-dfec-45ff-4b3f-643d125d5b29" xlink:type="locator" />
    <link:calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b9904d8-8624-0dbb-a949-29ff2cf808a8" xlink:to="loc_us-gaap_TreasuryStockValue_e6069c8d-dfec-45ff-4b3f-643d125d5b29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_62305d8f-d807-0fe8-d0ab-f2c2b3d03011" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b9904d8-8624-0dbb-a949-29ff2cf808a8" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_62305d8f-d807-0fe8-d0ab-f2c2b3d03011" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_d7f1ad03-6ed4-706a-15fc-eae794dee33a" xlink:to="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpensePropertyCasualtyLiability" xlink:label="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpensePropertyCasualtyLiability_57edbe23-c631-f7f8-7129-4fb25f464ae0" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:to="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpensePropertyCasualtyLiability_57edbe23-c631-f7f8-7129-4fb25f464ae0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_UnearnedPremiums" xlink:label="loc_us-gaap_UnearnedPremiums_1f6f3cde-87b1-2c7b-c8d1-cd12a39b021a" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:to="loc_us-gaap_UnearnedPremiums_1f6f3cde-87b1-2c7b-c8d1-cd12a39b021a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeniorNotes" xlink:label="loc_us-gaap_SeniorNotes_98d73727-d928-ad6c-a259-b0cc31f903cc" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:to="loc_us-gaap_SeniorNotes_98d73727-d928-ad6c-a259-b0cc31f903cc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConvertibleSubordinatedDebt" xlink:label="loc_us-gaap_ConvertibleSubordinatedDebt_bed44238-9ba1-6762-2c7c-6011b72b5c52" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:to="loc_us-gaap_ConvertibleSubordinatedDebt_bed44238-9ba1-6762-2c7c-6011b72b5c52" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilities" xlink:label="loc_us-gaap_OtherLiabilities_ff0e0b1b-b140-8889-cbc7-6f0d76651556" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:to="loc_us-gaap_OtherLiabilities_ff0e0b1b-b140-8889-cbc7-6f0d76651556" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankAmountOfAdvancesByBranch" xlink:label="loc_us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankAmountOfAdvancesByBranch_bbe74884-c4b2-1b14-a50b-2c18b55da9ff" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:to="loc_us-gaap_FederalHomeLoanBankAdvancesBranchOfFHLBBankAmountOfAdvancesByBranch_bbe74884-c4b2-1b14-a50b-2c18b55da9ff" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_4d934b0d-59bc-ae5c-ffb9-b6ced82ff9f8" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_d7f1ad03-6ed4-706a-15fc-eae794dee33a" xlink:to="loc_us-gaap_CommitmentsAndContingencies_4d934b0d-59bc-ae5c-ffb9-b6ced82ff9f8" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_834a7bf3-d1ec-a251-04d2-cec093e0f492" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_834a7bf3-d1ec-a251-04d2-cec093e0f492" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DepreciationAmortizationAndAccretionNet" xlink:label="loc_us-gaap_DepreciationAmortizationAndAccretionNet_f8d3390c-1850-b76f-7062-99d566a4ad4a" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_DepreciationAmortizationAndAccretionNet_f8d3390c-1850-b76f-7062-99d566a4ad4a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInDeferredIncomeTaxes" xlink:label="loc_us-gaap_IncreaseDecreaseInDeferredIncomeTaxes_0074e2ce-7b7b-56f1-34ed-f9d5bd5d1c3d" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_IncreaseDecreaseInDeferredIncomeTaxes_0074e2ce-7b7b-56f1-34ed-f9d5bd5d1c3d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainLossOnInvestments" xlink:label="loc_us-gaap_GainLossOnInvestments_f36be4b0-50ba-fdde-d8c3-1df343692d30" xlink:type="locator" />
    <link:calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_GainLossOnInvestments_f36be4b0-50ba-fdde-d8c3-1df343692d30" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_d385978f-69ad-b055-896a-51e9bbc23743" xlink:type="locator" />
    <link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_d385978f-69ad-b055-896a-51e9bbc23743" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_3f8a9c34-c392-f7e7-663b-e1187aad8041" xlink:type="locator" />
    <link:calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_3f8a9c34-c392-f7e7-663b-e1187aad8041" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInReinsuranceRecoverable" xlink:label="loc_us-gaap_IncreaseDecreaseInReinsuranceRecoverable_e2e94f55-fbcf-ad54-0d80-d6fe64e27f68" xlink:type="locator" />
    <link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_IncreaseDecreaseInReinsuranceRecoverable_e2e94f55-fbcf-ad54-0d80-d6fe64e27f68" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_IncreaseDecreaseInReinsuranceRecoverableOnPaidLosses" xlink:label="loc_mtg_IncreaseDecreaseInReinsuranceRecoverableOnPaidLosses_a7a031b1-354b-8071-0891-e86039effbbb" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_mtg_IncreaseDecreaseInReinsuranceRecoverableOnPaidLosses_a7a031b1-354b-8071-0891-e86039effbbb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInPremiumsReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInPremiumsReceivable_bb351048-5c87-9f71-683e-f5c53f3165f5" xlink:type="locator" />
    <link:calculationArc order="9" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_IncreaseDecreaseInPremiumsReceivable_bb351048-5c87-9f71-683e-f5c53f3165f5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInDeferredPolicyAcquisitionCosts" xlink:label="loc_us-gaap_IncreaseDecreaseInDeferredPolicyAcquisitionCosts_360094d4-9387-1e15-c2a3-cc1b6baa796a" xlink:type="locator" />
    <link:calculationArc order="10" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_IncreaseDecreaseInDeferredPolicyAcquisitionCosts_360094d4-9387-1e15-c2a3-cc1b6baa796a" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_IncreaseDecreaseInProfitCommissionReceivable" xlink:label="loc_mtg_IncreaseDecreaseInProfitCommissionReceivable_6551d7df-3772-d68a-7e53-e86039bc03cb" xlink:type="locator" />
    <link:calculationArc order="11" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_mtg_IncreaseDecreaseInProfitCommissionReceivable_6551d7df-3772-d68a-7e53-e86039bc03cb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInLiabilityForClaimsAndClaimsAdjustmentExpenseReserve" xlink:label="loc_us-gaap_IncreaseDecreaseInLiabilityForClaimsAndClaimsAdjustmentExpenseReserve_af942e6d-d845-d466-ef57-a6a88c58b9c6" xlink:type="locator" />
    <link:calculationArc order="12" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_IncreaseDecreaseInLiabilityForClaimsAndClaimsAdjustmentExpenseReserve_af942e6d-d845-d466-ef57-a6a88c58b9c6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInUnearnedPremiums" xlink:label="loc_us-gaap_IncreaseDecreaseInUnearnedPremiums_4b8e0c22-9d9b-d21a-c00c-d04959f9a9ff" xlink:type="locator" />
    <link:calculationArc order="13" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_IncreaseDecreaseInUnearnedPremiums_4b8e0c22-9d9b-d21a-c00c-d04959f9a9ff" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInOtherInsuranceLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherInsuranceLiabilities_5c2f1d9a-6b88-650a-8a51-d12b7d127331" xlink:type="locator" />
    <link:calculationArc order="14" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherInsuranceLiabilities_5c2f1d9a-6b88-650a-8a51-d12b7d127331" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_04a19824-751b-472f-ae2c-9a8e73a625b4" xlink:type="locator" />
    <link:calculationArc order="15" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesPayableNetOfIncomeTaxesReceivable_04a19824-751b-472f-ae2c-9a8e73a625b4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_2d3aea93-0685-7648-d025-abd4b91cbb46" xlink:type="locator" />
    <link:calculationArc order="16" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingCapitalNet_2d3aea93-0685-7648-d025-abd4b91cbb46" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_834a7bf3-d1ec-a251-04d2-cec093e0f492" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireInvestments" xlink:label="loc_us-gaap_PaymentsToAcquireInvestments_d3769ff7-3f7d-8a64-ea69-f16e64d6f178" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_PaymentsToAcquireInvestments_d3769ff7-3f7d-8a64-ea69-f16e64d6f178" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments" xlink:label="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_93f5c047-4b64-266d-dad0-d21441a97f7a" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_93f5c047-4b64-266d-dad0-d21441a97f7a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_e3f9215c-1f64-e636-ccb3-9c51d05b0a6d" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_e3f9215c-1f64-e636-ccb3-9c51d05b0a6d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInBrokerDealerRelatedReceivablesPayablesNet" xlink:label="loc_us-gaap_IncreaseDecreaseInBrokerDealerRelatedReceivablesPayablesNet_e981c241-a50f-9ad2-4f7d-0c194076e6b7" xlink:type="locator" />
    <link:calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_IncreaseDecreaseInBrokerDealerRelatedReceivablesPayablesNet_e981c241-a50f-9ad2-4f7d-0c194076e6b7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_0f8df60b-841f-6df5-83c3-e4049d366459" xlink:type="locator" />
    <link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_0f8df60b-841f-6df5-83c3-e4049d366459" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseExcludingExchangeRateEffect_834a7bf3-d1ec-a251-04d2-cec093e0f492" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromLinesOfCredit" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_2285f3f4-b3a8-b01c-280e-6c886bd81b27" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_2285f3f4-b3a8-b01c-280e-6c886bd81b27" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RepaymentsOfLinesOfCredit" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_05859378-438b-57d1-1cca-74dc23f15c9a" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_05859378-438b-57d1-1cca-74dc23f15c9a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RepaymentsOfConvertibleDebt" xlink:label="loc_us-gaap_RepaymentsOfConvertibleDebt_d0c55a27-917f-64b4-e02b-3b49b47ef72a" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_RepaymentsOfConvertibleDebt_d0c55a27-917f-64b4-e02b-3b49b47ef72a" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_PaymentOfOriginalIssueDiscountConvertibleSeniorNotes" xlink:label="loc_mtg_PaymentOfOriginalIssueDiscountConvertibleSeniorNotes_d7aac772-4511-247d-5c28-1a086fe5496f" xlink:type="locator" />
    <link:calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_mtg_PaymentOfOriginalIssueDiscountConvertibleSeniorNotes_d7aac772-4511-247d-5c28-1a086fe5496f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_3f804297-91a1-3939-541d-a39b6288c9f9" xlink:type="locator" />
    <link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfCommonStock_3f804297-91a1-3939-541d-a39b6288c9f9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsOfDividendsCommonStock" xlink:label="loc_us-gaap_PaymentsOfDividendsCommonStock_41d72ed0-9a2b-31fb-9f8e-ad33f5eca26a" xlink:type="locator" />
    <link:calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_PaymentsOfDividendsCommonStock_41d72ed0-9a2b-31fb-9f8e-ad33f5eca26a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsOfDebtIssuanceCosts" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_d03b640f-8d2c-4108-a1c4-1354103a7ee2" xlink:type="locator" />
    <link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_d03b640f-8d2c-4108-a1c4-1354103a7ee2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation" xlink:label="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_07e50027-f2db-6d1b-93ed-b22d6bd39351" xlink:type="locator" />
    <link:calculationArc order="8" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_1efd93c0-bb90-2a64-a997-3a70afaa3faa" xlink:to="loc_us-gaap_PaymentsRelatedToTaxWithholdingForShareBasedCompensation_07e50027-f2db-6d1b-93ed-b22d6bd39351" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_5c8b3520-1ca2-0a91-0912-70d62831826c" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_5c8b3520-1ca2-0a91-0912-70d62831826c" xlink:to="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_5e0cb0dc-b25c-aaae-62f8-cb90f31a16a1" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_5c8b3520-1ca2-0a91-0912-70d62831826c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_5e0cb0dc-b25c-aaae-62f8-cb90f31a16a1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_63b9389e-c4aa-f3de-4a75-3d35dd33e202" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_5e0cb0dc-b25c-aaae-62f8-cb90f31a16a1" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_63b9389e-c4aa-f3de-4a75-3d35dd33e202" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_71d11517-34f8-505e-4c4b-e25ef3111aee" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_5e0cb0dc-b25c-aaae-62f8-cb90f31a16a1" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_71d11517-34f8-505e-4c4b-e25ef3111aee" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_bab93ab9-d249-c671-e786-575d618bea25" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_5e0cb0dc-b25c-aaae-62f8-cb90f31a16a1" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_bab93ab9-d249-c671-e786-575d618bea25" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ConsolidatedStatementsOfOperations" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d71649eb-5769-933d-7982-2a2ada9ea257" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BenefitsLossesAndExpenses" xlink:label="loc_us-gaap_BenefitsLossesAndExpenses_cec74385-9235-9cd5-178d-c2c7a4ce2554" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d71649eb-5769-933d-7982-2a2ada9ea257" xlink:to="loc_us-gaap_BenefitsLossesAndExpenses_cec74385-9235-9cd5-178d-c2c7a4ce2554" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncurredClaimsPropertyCasualtyAndLiability" xlink:label="loc_us-gaap_IncurredClaimsPropertyCasualtyAndLiability_20d006d6-9433-0726-c9f2-14c4cf6a5e1a" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_cec74385-9235-9cd5-178d-c2c7a4ce2554" xlink:to="loc_us-gaap_IncurredClaimsPropertyCasualtyAndLiability_20d006d6-9433-0726-c9f2-14c4cf6a5e1a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpenseDebt" xlink:label="loc_us-gaap_InterestExpenseDebt_67350937-b93b-8ace-3db0-138d5fe4c955" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_cec74385-9235-9cd5-178d-c2c7a4ce2554" xlink:to="loc_us-gaap_InterestExpenseDebt_67350937-b93b-8ace-3db0-138d5fe4c955" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherUnderwritingExpense" xlink:label="loc_us-gaap_OtherUnderwritingExpense_8ce48650-0400-5066-2897-68f0131b39a6" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_cec74385-9235-9cd5-178d-c2c7a4ce2554" xlink:to="loc_us-gaap_OtherUnderwritingExpense_8ce48650-0400-5066-2897-68f0131b39a6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredPolicyAcquisitionCostAmortizationExpense" xlink:label="loc_us-gaap_DeferredPolicyAcquisitionCostAmortizationExpense_38e1b97a-f1b1-f812-80d5-40ea1c6c88e5" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_cec74385-9235-9cd5-178d-c2c7a4ce2554" xlink:to="loc_us-gaap_DeferredPolicyAcquisitionCostAmortizationExpense_38e1b97a-f1b1-f812-80d5-40ea1c6c88e5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_d385978f-69ad-b055-896a-51e9bbc23743" xlink:type="locator" />
    <link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_cec74385-9235-9cd5-178d-c2c7a4ce2554" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_d385978f-69ad-b055-896a-51e9bbc23743" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_425ada39-f194-a279-47ac-dd09cf899fb1" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d71649eb-5769-933d-7982-2a2ada9ea257" xlink:to="loc_us-gaap_Revenues_425ada39-f194-a279-47ac-dd09cf899fb1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherIncome" xlink:label="loc_us-gaap_OtherIncome_b36cbb9c-3cb7-e834-cb02-aac35e8dbc1b" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_425ada39-f194-a279-47ac-dd09cf899fb1" xlink:to="loc_us-gaap_OtherIncome_b36cbb9c-3cb7-e834-cb02-aac35e8dbc1b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainLossOnInvestments" xlink:label="loc_us-gaap_GainLossOnInvestments_f36be4b0-50ba-fdde-d8c3-1df343692d30" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_425ada39-f194-a279-47ac-dd09cf899fb1" xlink:to="loc_us-gaap_GainLossOnInvestments_f36be4b0-50ba-fdde-d8c3-1df343692d30" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetInvestmentIncome" xlink:label="loc_us-gaap_NetInvestmentIncome_a9a877fc-5ca4-60d6-236e-1fd7da5874f2" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_425ada39-f194-a279-47ac-dd09cf899fb1" xlink:to="loc_us-gaap_NetInvestmentIncome_a9a877fc-5ca4-60d6-236e-1fd7da5874f2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PremiumsEarnedNetPropertyAndCasualty" xlink:label="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_22017442-3418-5730-36a5-40b2ecd2806a" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_425ada39-f194-a279-47ac-dd09cf899fb1" xlink:to="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_22017442-3418-5730-36a5-40b2ecd2806a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PremiumsWrittenNet" xlink:label="loc_us-gaap_PremiumsWrittenNet_47b8e33a-8858-ba83-4bd2-df619d707a93" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_22017442-3418-5730-36a5-40b2ecd2806a" xlink:to="loc_us-gaap_PremiumsWrittenNet_47b8e33a-8858-ba83-4bd2-df619d707a93" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DirectPremiumsWritten" xlink:label="loc_us-gaap_DirectPremiumsWritten_b572fefb-1e55-b371-531f-9e90c5ffb93e" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsWrittenNet_47b8e33a-8858-ba83-4bd2-df619d707a93" xlink:to="loc_us-gaap_DirectPremiumsWritten_b572fefb-1e55-b371-531f-9e90c5ffb93e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssumedPremiumsWritten" xlink:label="loc_us-gaap_AssumedPremiumsWritten_0f27271c-0eb4-db16-ae4f-e2c26f15a4eb" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsWrittenNet_47b8e33a-8858-ba83-4bd2-df619d707a93" xlink:to="loc_us-gaap_AssumedPremiumsWritten_0f27271c-0eb4-db16-ae4f-e2c26f15a4eb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CededPremiumsWritten" xlink:label="loc_us-gaap_CededPremiumsWritten_e2354478-ac8f-b4a9-f6c9-78f6ee2e0f5c" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsWrittenNet_47b8e33a-8858-ba83-4bd2-df619d707a93" xlink:to="loc_us-gaap_CededPremiumsWritten_e2354478-ac8f-b4a9-f6c9-78f6ee2e0f5c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInUnearnedPremiumsNet" xlink:label="loc_us-gaap_IncreaseDecreaseInUnearnedPremiumsNet_ec7bbdb7-ed18-d7c2-f3ac-5743aeea2a2a" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_22017442-3418-5730-36a5-40b2ecd2806a" xlink:to="loc_us-gaap_IncreaseDecreaseInUnearnedPremiumsNet_ec7bbdb7-ed18-d7c2-f3ac-5743aeea2a2a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="locator" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ConsolidatedStatementsOfShareholdersEquity" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/Debt" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/DebtDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/DebtSummaryOfObligationsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/DebtTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/DocumentAndEntityInformation" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/EarningsPerShare" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/EarningsPerShareDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted" xlink:label="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_90e25e8e-b555-9209-062f-62d312826e2f" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_90e25e8e-b555-9209-062f-62d312826e2f" xlink:to="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DilutiveSecurities" xlink:label="loc_us-gaap_DilutiveSecurities_59fb6653-3c1f-075c-b781-351d20a7c90a" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLossAvailableToCommonStockholdersDiluted_90e25e8e-b555-9209-062f-62d312826e2f" xlink:to="loc_us-gaap_DilutiveSecurities_59fb6653-3c1f-075c-b781-351d20a7c90a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_8c9389ea-1fbb-7e45-ce1f-5a1d89572c0d" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_fbdbb03d-8583-701f-d6e2-69f8229c6051" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_8c9389ea-1fbb-7e45-ce1f-5a1d89572c0d" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_fbdbb03d-8583-701f-d6e2-69f8229c6051" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_90854703-859b-2c45-aef2-d270627b3141" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_8c9389ea-1fbb-7e45-ce1f-5a1d89572c0d" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_90854703-859b-2c45-aef2-d270627b3141" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_72ad9ebf-e829-cc37-8382-628e47c585ab" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_8c9389ea-1fbb-7e45-ce1f-5a1d89572c0d" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_72ad9ebf-e829-cc37-8382-628e47c585ab" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/EarningsPerShareTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/FairValueMeasurements" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/FairValueMeasurementsAssetsAndLiabilitiesNotMeasuredAtFairValueDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentFairValue" xlink:label="loc_us-gaap_DebtInstrumentFairValue_57e019e9-01e6-8bed-8577-3ed3ae7908b5" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations" xlink:label="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations_68b8dda7-16d5-0a7d-0423-0b2bbd30505f" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentFairValue_57e019e9-01e6-8bed-8577-3ed3ae7908b5" xlink:to="loc_us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisSubordinatedDebtObligations_68b8dda7-16d5-0a7d-0423-0b2bbd30505f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NotesPayableFairValueDisclosure" xlink:label="loc_us-gaap_NotesPayableFairValueDisclosure_327d892c-f277-fd96-c768-aaafb3a32d6c" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentFairValue_57e019e9-01e6-8bed-8577-3ed3ae7908b5" xlink:to="loc_us-gaap_NotesPayableFairValueDisclosure_327d892c-f277-fd96-c768-aaafb3a32d6c" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_SeniorNotesFairValueDisclosure" xlink:label="loc_mtg_SeniorNotesFairValueDisclosure_4657b16a-b1d6-244c-b964-e8603ae0d76f" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentFairValue_57e019e9-01e6-8bed-8577-3ed3ae7908b5" xlink:to="loc_mtg_SeniorNotesFairValueDisclosure_4657b16a-b1d6-244c-b964-e8603ae0d76f" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/FairValueMeasurementsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsFairValueDisclosure" xlink:label="loc_us-gaap_OtherAssetsFairValueDisclosure_bf280f65-0fc4-55e7-c250-2c52c36331f3" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_us-gaap_OtherAssetsFairValueDisclosure_bf280f65-0fc4-55e7-c250-2c52c36331f3" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_RealEstateAssetsAcquiredFairValueDisclosure" xlink:label="loc_mtg_RealEstateAssetsAcquiredFairValueDisclosure_b45d282b-bf49-e781-dd4f-e8603a943de2" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_mtg_RealEstateAssetsAcquiredFairValueDisclosure_b45d282b-bf49-e781-dd4f-e8603a943de2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EquitySecuritiesFvNi" xlink:label="loc_us-gaap_EquitySecuritiesFvNi_c88e6350-e26e-969b-2f36-fb6881edab88" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_a0a5801b-c8ce-1793-dd5f-edbcde4cc5a3" xlink:to="loc_us-gaap_EquitySecuritiesFvNi_c88e6350-e26e-969b-2f36-fb6881edab88" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/FairValueMeasurementsTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/FairValueMeasurementsUnobservableInputReconciliationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/IncomeTaxes" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/IncomeTaxesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_0bdbea13-bfd8-228d-43ea-fae0c1330aaa" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsGross" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_e54f6543-25d5-ceb9-ff71-ca6ba1b37623" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_0bdbea13-bfd8-228d-43ea-fae0c1330aaa" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_e54f6543-25d5-ceb9-ff71-ca6ba1b37623" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_15e17ec2-d527-455f-b2cd-0be7f92a9fd5" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_0bdbea13-bfd8-228d-43ea-fae0c1330aaa" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_15e17ec2-d527-455f-b2cd-0be7f92a9fd5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_aa9fb8cf-e50d-6d5b-0236-a084fee29894" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_5ef0c8c5-04c5-1c10-a59e-3eaa9cf923b4" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_aa9fb8cf-e50d-6d5b-0236-a084fee29894" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_5ef0c8c5-04c5-1c10-a59e-3eaa9cf923b4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCutsAndJobsActOf2017Percent" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCutsAndJobsActOf2017Percent_ac4a8ca9-af9a-dc39-4649-ff7e9d7dc935" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_aa9fb8cf-e50d-6d5b-0236-a084fee29894" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCutsAndJobsActOf2017Percent_ac4a8ca9-af9a-dc39-4649-ff7e9d7dc935" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationPriorYearIncomeTaxes" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationPriorYearIncomeTaxes_a9b3d256-ec18-d97d-9d34-d24ae199c4fa" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_aa9fb8cf-e50d-6d5b-0236-a084fee29894" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationPriorYearIncomeTaxes_a9b3d256-ec18-d97d-9d34-d24ae199c4fa" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome_aeca0f8c-5c05-0b2e-dcc5-0c21b3b14843" xlink:type="locator" />
    <link:calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_aa9fb8cf-e50d-6d5b-0236-a084fee29894" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxExemptIncome_aeca0f8c-5c05-0b2e-dcc5-0c21b3b14843" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_c16a0eb3-02da-6ea0-91e7-3203372f71fd" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_aa9fb8cf-e50d-6d5b-0236-a084fee29894" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_c16a0eb3-02da-6ea0-91e7-3203372f71fd" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/IncomeTaxesDetailsCalc2" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet" xlink:label="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_C790C73913C6439C0F2F553A49E83842_0bdbea13-bfd8-228d-43ea-fae0c1330aaa" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsUnearnedPremiumsReserve" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsUnearnedPremiumsReserve_C790C73913C6439C0F2F553A49E83842_adf64cd9-9445-4a08-7e0c-a5890bcab60d" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_C790C73913C6439C0F2F553A49E83842_0bdbea13-bfd8-228d-43ea-fae0c1330aaa" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsUnearnedPremiumsReserve_C790C73913C6439C0F2F553A49E83842_adf64cd9-9445-4a08-7e0c-a5890bcab60d" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationandBenefitsEmployeeBenefits" xlink:label="loc_mtg_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationandBenefitsEmployeeBenefits_C790C73913C6439C0F2F553A49E83842_239893ba-d648-8469-8489-1a086e0ab53e" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_C790C73913C6439C0F2F553A49E83842_0bdbea13-bfd8-228d-43ea-fae0c1330aaa" xlink:to="loc_mtg_DeferredTaxLiabilitiesTaxDeferredExpenseCompensationandBenefitsEmployeeBenefits_C790C73913C6439C0F2F553A49E83842_239893ba-d648-8469-8489-1a086e0ab53e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves_C790C73913C6439C0F2F553A49E83842_d0def9d8-e2fd-64fa-c89f-9ede69e4bb98" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_C790C73913C6439C0F2F553A49E83842_0bdbea13-bfd8-228d-43ea-fae0c1330aaa" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsLossReserves_C790C73913C6439C0F2F553A49E83842_d0def9d8-e2fd-64fa-c89f-9ede69e4bb98" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_DeferredTaxAssetsLiabilitiesNetOtherComprehensiveIncome" xlink:label="loc_mtg_DeferredTaxAssetsLiabilitiesNetOtherComprehensiveIncome_C790C73913C6439C0F2F553A49E83842_bbcccee4-778b-3d58-a9ee-1a086dd786e5" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_C790C73913C6439C0F2F553A49E83842_0bdbea13-bfd8-228d-43ea-fae0c1330aaa" xlink:to="loc_mtg_DeferredTaxAssetsLiabilitiesNetOtherComprehensiveIncome_C790C73913C6439C0F2F553A49E83842_bbcccee4-778b-3d58-a9ee-1a086dd786e5" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_DeferredTaxAssetsMortgageRelatedInvestments" xlink:label="loc_mtg_DeferredTaxAssetsMortgageRelatedInvestments_C790C73913C6439C0F2F553A49E83842_194a6edf-7807-2946-0602-1a086e0f9d32" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_C790C73913C6439C0F2F553A49E83842_0bdbea13-bfd8-228d-43ea-fae0c1330aaa" xlink:to="loc_mtg_DeferredTaxAssetsMortgageRelatedInvestments_C790C73913C6439C0F2F553A49E83842_194a6edf-7807-2946-0602-1a086e0f9d32" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits_C790C73913C6439C0F2F553A49E83842_6136a882-2251-7433-358a-e61f7951edea" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_C790C73913C6439C0F2F553A49E83842_0bdbea13-bfd8-228d-43ea-fae0c1330aaa" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits_C790C73913C6439C0F2F553A49E83842_6136a882-2251-7433-358a-e61f7951edea" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax_C790C73913C6439C0F2F553A49E83842_62770431-e76a-46a7-b584-cbc80b4d42c9" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_C790C73913C6439C0F2F553A49E83842_0bdbea13-bfd8-228d-43ea-fae0c1330aaa" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsAlternativeMinimumTax_C790C73913C6439C0F2F553A49E83842_62770431-e76a-46a7-b584-cbc80b4d42c9" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_DeferredTaxAssetsLiabilitiesNetOther" xlink:label="loc_mtg_DeferredTaxAssetsLiabilitiesNetOther_C790C73913C6439C0F2F553A49E83842_ea25cc02-44df-5fd1-03bb-1a086f89afc7" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsLiabilitiesNet_C790C73913C6439C0F2F553A49E83842_0bdbea13-bfd8-228d-43ea-fae0c1330aaa" xlink:to="loc_mtg_DeferredTaxAssetsLiabilitiesNetOther_C790C73913C6439C0F2F553A49E83842_ea25cc02-44df-5fd1-03bb-1a086f89afc7" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/IncomeTaxesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/Investments" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/InvestmentsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_22b4a974-0f7d-fc90-c496-cc8c5db00622" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_22b4a974-0f7d-fc90-c496-cc8c5db00622" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue" xlink:label="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_a24cc967-abe4-d460-6636-e8603a3f348f" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:to="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_a24cc967-abe4-d460-6636-e8603a3f348f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_d870856f-841f-c3d0-a313-ca9d525216a8" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_a24cc967-abe4-d460-6636-e8603a3f348f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_d870856f-841f-c3d0-a313-ca9d525216a8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_6a2a51c8-a80d-af5e-4dc1-d2eeba9d310c" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_a24cc967-abe4-d460-6636-e8603a3f348f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_6a2a51c8-a80d-af5e-4dc1-d2eeba9d310c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_7f031d71-7992-4d18-a9d4-3c1221e2a6bb" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_a24cc967-abe4-d460-6636-e8603a3f348f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_7f031d71-7992-4d18-a9d4-3c1221e2a6bb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_dea36972-70da-958f-bd14-29224bedcb55" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateFairValue_a24cc967-abe4-d460-6636-e8603a3f348f" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_dea36972-70da-958f-bd14-29224bedcb55" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_447294e8-f4eb-2b40-51a5-60fa019f8c40" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_44b817b0-a9ec-08a0-e6d5-8738955fbd29" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_447294e8-f4eb-2b40-51a5-60fa019f8c40" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_44b817b0-a9ec-08a0-e6d5-8738955fbd29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_f50bd4fe-0acd-ab98-c92a-d313822079c5" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_447294e8-f4eb-2b40-51a5-60fa019f8c40" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_f50bd4fe-0acd-ab98-c92a-d313822079c5" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost" xlink:label="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_dffcf9f3-6c0d-73c1-9e37-e8603962d700" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_ec915ab0-b06c-8246-6113-1ffd431b1e4b" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_dffcf9f3-6c0d-73c1-9e37-e8603962d700" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_ec915ab0-b06c-8246-6113-1ffd431b1e4b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_2689b18d-c088-f9d0-8533-bbbc6703e3ca" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_dffcf9f3-6c0d-73c1-9e37-e8603962d700" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_2689b18d-c088-f9d0-8533-bbbc6703e3ca" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_685bf464-cfee-568e-f726-7f96d378e9e1" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_dffcf9f3-6c0d-73c1-9e37-e8603962d700" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_685bf464-cfee-568e-f726-7f96d378e9e1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_5fa99027-0ebb-5ffa-2596-c5d8d96d1a7f" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_AvailableForSaleSecuritiesDebtMaturitiesWithSingleMaturityDateAmortizedCost_dffcf9f3-6c0d-73c1-9e37-e8603962d700" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_5fa99027-0ebb-5ffa-2596-c5d8d96d1a7f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_bd4abe0a-6fe6-2d88-cf98-52c493407bcd" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_7d2f9305-3a51-279b-17e9-0a8bec7eba1b" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_bd4abe0a-6fe6-2d88-cf98-52c493407bcd" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_7d2f9305-3a51-279b-17e9-0a8bec7eba1b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_fe6fe2fb-1c28-638d-7c2f-bc065610ad60" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_bd4abe0a-6fe6-2d88-cf98-52c493407bcd" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_fe6fe2fb-1c28-638d-7c2f-bc065610ad60" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/InvestmentsGainLossOnInvestmentsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/InvestmentsInvestmentIncomeByCategoryDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetInvestmentIncome" xlink:label="loc_us-gaap_NetInvestmentIncome_a9a877fc-5ca4-60d6-236e-1fd7da5874f2" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GrossInvestmentIncomeOperating" xlink:label="loc_us-gaap_GrossInvestmentIncomeOperating_6b2b1b68-6152-69f5-f726-3521ab8b841d" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetInvestmentIncome_a9a877fc-5ca4-60d6-236e-1fd7da5874f2" xlink:to="loc_us-gaap_GrossInvestmentIncomeOperating_6b2b1b68-6152-69f5-f726-3521ab8b841d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentIncomeInvestmentExpense" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_75f6e90c-804d-3c5a-4e2a-ebedcbc3934c" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetInvestmentIncome_a9a877fc-5ca4-60d6-236e-1fd7da5874f2" xlink:to="loc_us-gaap_InvestmentIncomeInvestmentExpense_75f6e90c-804d-3c5a-4e2a-ebedcbc3934c" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/InvestmentsTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/Leases" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/LeasesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_acfb1bbb-4a5b-18c4-ab71-d62ae0aecfa0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_4cf71329-74d6-54f3-cadb-acb7f1063f36" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_acfb1bbb-4a5b-18c4-ab71-d62ae0aecfa0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_4cf71329-74d6-54f3-cadb-acb7f1063f36" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_f2a573e7-27e5-db11-63c6-c460733b5ea3" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_acfb1bbb-4a5b-18c4-ab71-d62ae0aecfa0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_f2a573e7-27e5-db11-63c6-c460733b5ea3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_398384fb-b756-b11a-1ea4-5a5cd4372c82" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_acfb1bbb-4a5b-18c4-ab71-d62ae0aecfa0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_398384fb-b756-b11a-1ea4-5a5cd4372c82" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears" xlink:label="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_832fb73d-9886-a0dd-5905-8e2ec54304d6" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_acfb1bbb-4a5b-18c4-ab71-d62ae0aecfa0" xlink:to="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_832fb73d-9886-a0dd-5905-8e2ec54304d6" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_OperatingLeasesFutureMinimumPaymentsYearFiveandThereafter" xlink:label="loc_mtg_OperatingLeasesFutureMinimumPaymentsYearFiveandThereafter_dbf01d26-7393-274d-e86e-1a086dcfe51c" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingLeasesFutureMinimumPaymentsDue_acfb1bbb-4a5b-18c4-ab71-d62ae0aecfa0" xlink:to="loc_mtg_OperatingLeasesFutureMinimumPaymentsYearFiveandThereafter_dbf01d26-7393-274d-e86e-1a086dcfe51c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c2cd15f-6a97-015f-b126-1d0a0750698b" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_5ad4ca01-bc52-b198-b1fd-3cded668d167" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c2cd15f-6a97-015f-b126-1d0a0750698b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_5ad4ca01-bc52-b198-b1fd-3cded668d167" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_9b040bc1-f43c-735d-05f7-679f319d2bb6" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c2cd15f-6a97-015f-b126-1d0a0750698b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_9b040bc1-f43c-735d-05f7-679f319d2bb6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_2f0ec234-4f20-7099-efb3-3c0ab4d024dd" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c2cd15f-6a97-015f-b126-1d0a0750698b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_2f0ec234-4f20-7099-efb3-3c0ab4d024dd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_1ed751b1-5f94-4f6f-41e9-ef873c9f2bab" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c2cd15f-6a97-015f-b126-1d0a0750698b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_1ed751b1-5f94-4f6f-41e9-ef873c9f2bab" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_8a8de21f-aadc-3af7-8c96-d54cf42b401b" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_1c2cd15f-6a97-015f-b126-1d0a0750698b" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_8a8de21f-aadc-3af7-8c96-d54cf42b401b" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/LeasesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/LitigationAndContingencies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/LitigationAndContingenciesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/LossReserves" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/LossReservesAgingOfPrimaryDefaultInventoryAndNumberOfDelinquentPaymentsDetails" xlink:type="extended">
    <link:loc xlink:href="mtg-20191231.xsd#mtg_PrimaryDefaultInventoryPercentage" xlink:label="loc_mtg_PrimaryDefaultInventoryPercentage_846e9b04-fb37-0fcc-51ef-e860397292df" xlink:type="locator" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_PrimaryDefaultInventoryThreeMonthsOrLessPercentage" xlink:label="loc_mtg_PrimaryDefaultInventoryThreeMonthsOrLessPercentage_462b81d1-95ff-f93a-d780-e8603aadd068" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_PrimaryDefaultInventoryPercentage_846e9b04-fb37-0fcc-51ef-e860397292df" xlink:to="loc_mtg_PrimaryDefaultInventoryThreeMonthsOrLessPercentage_462b81d1-95ff-f93a-d780-e8603aadd068" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_PrimaryDefaultInventoryFourToElevenMonthsPercentage" xlink:label="loc_mtg_PrimaryDefaultInventoryFourToElevenMonthsPercentage_cc24d173-ce38-df98-f4c3-e86039a05c23" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_PrimaryDefaultInventoryPercentage_846e9b04-fb37-0fcc-51ef-e860397292df" xlink:to="loc_mtg_PrimaryDefaultInventoryFourToElevenMonthsPercentage_cc24d173-ce38-df98-f4c3-e86039a05c23" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_PrimaryDefaultInventoryTwelveMonthsOrMorePercentage" xlink:label="loc_mtg_PrimaryDefaultInventoryTwelveMonthsOrMorePercentage_41cfb5e9-d357-7825-b63d-e860397c45f0" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_PrimaryDefaultInventoryPercentage_846e9b04-fb37-0fcc-51ef-e860397292df" xlink:to="loc_mtg_PrimaryDefaultInventoryTwelveMonthsOrMorePercentage_41cfb5e9-d357-7825-b63d-e860397c45f0" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_PrimaryDefaultInventory" xlink:label="loc_mtg_PrimaryDefaultInventory_238a4a54-0c7d-24af-e4a0-e860398dc63c" xlink:type="locator" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_PrimaryDefaultInventoryThreeMonthsOrLess" xlink:label="loc_mtg_PrimaryDefaultInventoryThreeMonthsOrLess_80f2e0db-9975-d12b-0a81-e8603a21a5a2" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_PrimaryDefaultInventory_238a4a54-0c7d-24af-e4a0-e860398dc63c" xlink:to="loc_mtg_PrimaryDefaultInventoryThreeMonthsOrLess_80f2e0db-9975-d12b-0a81-e8603a21a5a2" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_PrimaryDefaultInventoryFourToElevenMonths" xlink:label="loc_mtg_PrimaryDefaultInventoryFourToElevenMonths_46347d6e-7094-bb22-8162-e8603ad21f56" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_PrimaryDefaultInventory_238a4a54-0c7d-24af-e4a0-e860398dc63c" xlink:to="loc_mtg_PrimaryDefaultInventoryFourToElevenMonths_46347d6e-7094-bb22-8162-e8603ad21f56" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_PrimaryDefaultInventoryTwelveMonthsOrMore" xlink:label="loc_mtg_PrimaryDefaultInventoryTwelveMonthsOrMore_887a66ed-cc49-4d2c-9e42-e8603aee34fd" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_mtg_PrimaryDefaultInventory_238a4a54-0c7d-24af-e4a0-e860398dc63c" xlink:to="loc_mtg_PrimaryDefaultInventoryTwelveMonthsOrMore_887a66ed-cc49-4d2c-9e42-e8603aee34fd" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/LossReservesDefaultInventoryReconciliationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/LossReservesNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/LossReservesPriorYearLossReservesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/LossReservesReconciliationOfChangesInLossReservesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForLossesAndLossAdjustmentExpense" xlink:label="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_4a09b102-4796-3f11-5735-c1e035a996f0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1_04da4ee7-f521-b045-0459-5ddb7480d030" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_4a09b102-4796-3f11-5735-c1e035a996f0" xlink:to="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1_04da4ee7-f521-b045-0459-5ddb7480d030" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1_67ba34ec-e3e8-6c46-146a-ddb0928dee95" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_4a09b102-4796-3f11-5735-c1e035a996f0" xlink:to="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1_67ba34ec-e3e8-6c46-146a-ddb0928dee95" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_ReinsuranceTerminations" xlink:label="loc_mtg_ReinsuranceTerminations_3c40b879-7e9f-66bb-f393-e8603a2863c7" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_4a09b102-4796-3f11-5735-c1e035a996f0" xlink:to="loc_mtg_ReinsuranceTerminations_3c40b879-7e9f-66bb-f393-e8603a2863c7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1_d8f63898-4459-5fff-0e7a-e5ce271818ac" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense" xlink:label="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense_4de47903-8980-491e-a005-9d6fcf669df1" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1_d8f63898-4459-5fff-0e7a-e5ce271818ac" xlink:to="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense_4de47903-8980-491e-a005-9d6fcf669df1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense" xlink:label="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense_7cd7aeac-daa5-55ab-c126-aed30065b1de" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1_d8f63898-4459-5fff-0e7a-e5ce271818ac" xlink:to="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense_7cd7aeac-daa5-55ab-c126-aed30065b1de" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/LossReservesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/NatureOfBusiness" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/NatureOfBusinessDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/OtherComprehensiveIncomeLoss" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/OtherComprehensiveIncomeLossDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossTax_02ee5514-cc7d-0d55-8862-28a865eecb19" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_c01824d9-37c3-8fdf-928f-b8a11aa7dff5" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_02ee5514-cc7d-0d55-8862-28a865eecb19" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_c01824d9-37c3-8fdf-928f-b8a11aa7dff5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxPortionAttributableToParent_4d891d7e-b513-7a63-523b-c309d2b493d8" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_02ee5514-cc7d-0d55-8862-28a865eecb19" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxPortionAttributableToParent_4d891d7e-b513-7a63-523b-c309d2b493d8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTranslationAdjustmentTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTranslationAdjustmentTaxPortionAttributableToParent_8fa705ac-595d-975f-5643-e9cb70b8b84a" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossTax_02ee5514-cc7d-0d55-8862-28a865eecb19" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTranslationAdjustmentTaxPortionAttributableToParent_8fa705ac-595d-975f-5643-e9cb70b8b84a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_93a02e96-cdec-754d-5e19-4ab1e0bf759a" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_5eeaa914-26ba-e438-d601-b28e4ea04414" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_93a02e96-cdec-754d-5e19-4ab1e0bf759a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_5eeaa914-26ba-e438-d601-b28e4ea04414" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_72952001-c6bf-93e5-8cc9-2447e612120a" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_93a02e96-cdec-754d-5e19-4ab1e0bf759a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_72952001-c6bf-93e5-8cc9-2447e612120a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentBeforeTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentBeforeTaxPortionAttributableToParent_96337cff-1a9f-3762-7c16-11d98c0b4a59" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeTax_93a02e96-cdec-754d-5e19-4ab1e0bf759a" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentBeforeTaxPortionAttributableToParent_96337cff-1a9f-3762-7c16-11d98c0b4a59" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_bab93ab9-d249-c671-e786-575d618bea25" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_bab93ab9-d249-c671-e786-575d618bea25" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentBeforeTaxPortionAttributableToParent_5eeaa914-26ba-e438-d601-b28e4ea04414" xlink:type="arc" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesAdjustmentNetOfTaxPortionAttributableToParent_bab93ab9-d249-c671-e786-575d618bea25" xlink:to="loc_us-gaap_OtherComprehensiveIncomeAvailableforsaleSecuritiesTaxPortionAttributableToParent_c01824d9-37c3-8fdf-928f-b8a11aa7dff5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_71d11517-34f8-505e-4c4b-e25ef3111aee" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_71d11517-34f8-505e-4c4b-e25ef3111aee" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentBeforeTaxPortionAttributableToParent_96337cff-1a9f-3762-7c16-11d98c0b4a59" xlink:type="arc" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationAdjustmentNetOfTaxPortionAttributableToParent_71d11517-34f8-505e-4c4b-e25ef3111aee" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTranslationAdjustmentTaxPortionAttributableToParent_8fa705ac-595d-975f-5643-e9cb70b8b84a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_63b9389e-c4aa-f3de-4a75-3d35dd33e202" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_63b9389e-c4aa-f3de-4a75-3d35dd33e202" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentBeforeTaxPortionAttributableToParent_72952001-c6bf-93e5-8cc9-2447e612120a" xlink:type="arc" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansAdjustmentNetOfTaxPortionAttributableToParent_63b9389e-c4aa-f3de-4a75-3d35dd33e202" xlink:to="loc_us-gaap_OtherComprehensiveIncomeDefinedBenefitPlansTaxPortionAttributableToParent_4d891d7e-b513-7a63-523b-c309d2b493d8" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/OtherComprehensiveIncomeLossTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/Reinsurance" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ReinsuranceExcessOfLossReinsuranceDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ReinsuranceHomeReEntitiesTotalAssetsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ReinsuranceNarrativeDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ReinsuranceQuotaShareReinsuranceDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ReinsuranceSummaryOfReinsuranceAgreementsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PremiumsEarnedNetPropertyAndCasualty" xlink:label="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_22017442-3418-5730-36a5-40b2ecd2806a" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DirectPremiumsEarned" xlink:label="loc_us-gaap_DirectPremiumsEarned_67e82947-5bfb-6a68-2706-347a20e0b24b" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_22017442-3418-5730-36a5-40b2ecd2806a" xlink:to="loc_us-gaap_DirectPremiumsEarned_67e82947-5bfb-6a68-2706-347a20e0b24b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssumedPremiumsEarned" xlink:label="loc_us-gaap_AssumedPremiumsEarned_95b6ffa0-808f-3e69-5f3f-730760895c47" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_22017442-3418-5730-36a5-40b2ecd2806a" xlink:to="loc_us-gaap_AssumedPremiumsEarned_95b6ffa0-808f-3e69-5f3f-730760895c47" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CededPremiumsEarned" xlink:label="loc_us-gaap_CededPremiumsEarned_aba68a68-f7d1-18a9-7a0e-49a99ddbb456" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNetPropertyAndCasualty_22017442-3418-5730-36a5-40b2ecd2806a" xlink:to="loc_us-gaap_CededPremiumsEarned_aba68a68-f7d1-18a9-7a0e-49a99ddbb456" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncurredClaimsPropertyCasualtyAndLiability" xlink:label="loc_us-gaap_IncurredClaimsPropertyCasualtyAndLiability_20d006d6-9433-0726-c9f2-14c4cf6a5e1a" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PolicyholderBenefitsAndClaimsIncurredGross" xlink:label="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredGross_6bdf64d3-2150-b4d3-1843-4175d8827135" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncurredClaimsPropertyCasualtyAndLiability_20d006d6-9433-0726-c9f2-14c4cf6a5e1a" xlink:to="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredGross_6bdf64d3-2150-b4d3-1843-4175d8827135" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountAssumed" xlink:label="loc_us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountAssumed_2f15613a-3ea8-9b84-b6a3-64a56a2581a7" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncurredClaimsPropertyCasualtyAndLiability_20d006d6-9433-0726-c9f2-14c4cf6a5e1a" xlink:to="loc_us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountAssumed_2f15613a-3ea8-9b84-b6a3-64a56a2581a7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountCeded" xlink:label="loc_us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountCeded_ba4ebfe6-dbc4-d990-cfda-1f43af6b2132" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncurredClaimsPropertyCasualtyAndLiability_20d006d6-9433-0726-c9f2-14c4cf6a5e1a" xlink:to="loc_us-gaap_ReinsuranceEffectOnClaimsAndBenefitsIncurredAmountCeded_ba4ebfe6-dbc4-d990-cfda-1f43af6b2132" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ReinsuranceTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedParties" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ScheduleISummaryOfInvestmentsOtherThanInvestmentsInRelatedPartiesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ScheduleIiCondensedFinancialInformationOfRegistrant" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ScheduleIiCondensedFinancialInformationOfRegistrantDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_e562c48b-3e99-2c57-8e96-c3b81056b58c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1de780cc-9607-daa3-0bed-03c88ae94769" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_1de780cc-9607-daa3-0bed-03c88ae94769" xlink:type="arc" />
    <link:loc xlink:href="mtg-20191231.xsd#mtg_InvestmentInSubsidiariesAtEquityInNetAssets" xlink:label="loc_mtg_InvestmentInSubsidiariesAtEquityInNetAssets_3a9c4047-a228-9259-6105-1a086e2037f2" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_mtg_InvestmentInSubsidiariesAtEquityInNetAssets_3a9c4047-a228-9259-6105-1a086e2037f2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DueFromRelatedParties" xlink:label="loc_us-gaap_DueFromRelatedParties_88e954e6-ce80-09d3-696b-512118456096" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_DueFromRelatedParties_88e954e6-ce80-09d3-696b-512118456096" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxesAndOtherTaxReceivableCurrent" xlink:label="loc_us-gaap_DeferredIncomeTaxesAndOtherTaxReceivableCurrent_afa4e365-0191-eb5f-acac-94e8d51dbaa4" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_DeferredIncomeTaxesAndOtherTaxReceivableCurrent_afa4e365-0191-eb5f-acac-94e8d51dbaa4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccruedInvestmentIncomeReceivable" xlink:label="loc_us-gaap_AccruedInvestmentIncomeReceivable_bfbf3cab-2654-5a6a-253b-82bbababe3ce" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_AccruedInvestmentIncomeReceivable_bfbf3cab-2654-5a6a-253b-82bbababe3ce" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssets" xlink:label="loc_us-gaap_OtherAssets_53a34e15-d375-c4e0-c5cf-68e055eee5e5" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_17ef3f41-42f7-52c0-cba1-93e7e0e1116a" xlink:to="loc_us-gaap_OtherAssets_53a34e15-d375-c4e0-c5cf-68e055eee5e5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SeniorNotes" xlink:label="loc_us-gaap_SeniorNotes_98d73727-d928-ad6c-a259-b0cc31f903cc" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:to="loc_us-gaap_SeniorNotes_98d73727-d928-ad6c-a259-b0cc31f903cc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ConvertibleSubordinatedDebt" xlink:label="loc_us-gaap_ConvertibleSubordinatedDebt_bed44238-9ba1-6762-2c7c-6011b72b5c52" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:to="loc_us-gaap_ConvertibleSubordinatedDebt_bed44238-9ba1-6762-2c7c-6011b72b5c52" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestPayableCurrentAndNoncurrent" xlink:label="loc_us-gaap_InterestPayableCurrentAndNoncurrent_cfd7ae97-77ba-65f0-3def-ab0a83a34132" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:to="loc_us-gaap_InterestPayableCurrentAndNoncurrent_cfd7ae97-77ba-65f0-3def-ab0a83a34132" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilities" xlink:label="loc_us-gaap_OtherLiabilities_ff0e0b1b-b140-8889-cbc7-6f0d76651556" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_44863786-cbc4-bac4-e070-0a1f19314584" xlink:to="loc_us-gaap_OtherLiabilities_ff0e0b1b-b140-8889-cbc7-6f0d76651556" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_8b51ae5f-8f14-ae0e-00e7-8f4e716f2f96" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_8b51ae5f-8f14-ae0e-00e7-8f4e716f2f96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_d1d20cfe-f038-824a-0236-247c2a122ebc" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_0f07a806-a2da-6d18-a7a9-d734fad1f3b0" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_d1d20cfe-f038-824a-0236-247c2a122ebc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_BenefitsLossesAndExpenses" xlink:label="loc_us-gaap_BenefitsLossesAndExpenses_cec74385-9235-9cd5-178d-c2c7a4ce2554" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingExpenses" xlink:label="loc_us-gaap_OperatingExpenses_56807cce-1c23-b2ed-01fd-e029fa0d6e79" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_cec74385-9235-9cd5-178d-c2c7a4ce2554" xlink:to="loc_us-gaap_OperatingExpenses_56807cce-1c23-b2ed-01fd-e029fa0d6e79" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpenseDebt" xlink:label="loc_us-gaap_InterestExpenseDebt_67350937-b93b-8ace-3db0-138d5fe4c955" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_cec74385-9235-9cd5-178d-c2c7a4ce2554" xlink:to="loc_us-gaap_InterestExpenseDebt_67350937-b93b-8ace-3db0-138d5fe4c955" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_d385978f-69ad-b055-896a-51e9bbc23743" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_cec74385-9235-9cd5-178d-c2c7a4ce2554" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_d385978f-69ad-b055-896a-51e9bbc23743" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d71649eb-5769-933d-7982-2a2ada9ea257" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments_d71649eb-5769-933d-7982-2a2ada9ea257" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_666ca9f0-28f1-b21a-025e-36222808a6c3" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_666ca9f0-28f1-b21a-025e-36222808a6c3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncomeLossFromSubsidiariesNetOfTax" xlink:label="loc_us-gaap_IncomeLossFromSubsidiariesNetOfTax_000bc779-72c7-cf70-7a52-d6ccfd21922d" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_e170ce1e-c3a8-e8ee-88b0-37e8dd7b1d11" xlink:to="loc_us-gaap_IncomeLossFromSubsidiariesNetOfTax_000bc779-72c7-cf70-7a52-d6ccfd21922d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries" xlink:label="loc_us-gaap_CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries_faf003ff-8ef5-91bf-2e22-fd8b4ee63cb1" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries_faf003ff-8ef5-91bf-2e22-fd8b4ee63cb1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_3421bed6-296e-da4e-f0e9-a2a8fa1f6d19" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_3421bed6-296e-da4e-f0e9-a2a8fa1f6d19" xlink:type="arc" />
    <link:calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_d385978f-69ad-b055-896a-51e9bbc23743" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherNoncashIncomeExpense" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_269710de-43ea-f1a2-1ab7-8a2fad8bcd72" xlink:type="locator" />
    <link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_269710de-43ea-f1a2-1ab7-8a2fad8bcd72" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties_9c560dfb-d3ee-5129-5a3f-0e84995641c7" xlink:type="locator" />
    <link:calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivableRelatedParties_9c560dfb-d3ee-5129-5a3f-0e84995641c7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInIncomeTaxesReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxesReceivable_482834da-6583-c404-7c9c-83a9dbe6a330" xlink:type="locator" />
    <link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxesReceivable_482834da-6583-c404-7c9c-83a9dbe6a330" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_3f8a9c34-c392-f7e7-663b-e1187aad8041" xlink:type="locator" />
    <link:calculationArc order="8" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_3f8a9c34-c392-f7e7-663b-e1187aad8041" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInInterestPayableNet" xlink:label="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_d1e597c7-a8a1-e058-f332-7cdc07a8ef8e" xlink:type="locator" />
    <link:calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_ce0d7b63-a366-bc9b-79e1-780981e428fe" xlink:to="loc_us-gaap_IncreaseDecreaseInInterestPayableNet_d1e597c7-a8a1-e058-f332-7cdc07a8ef8e" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ScheduleIiCondensedFinancialInformationOfRegistrantSupplementaryNotesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ScheduleIvReinsurance" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ScheduleIvReinsuranceDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PremiumsEarnedNet" xlink:label="loc_us-gaap_PremiumsEarnedNet_88dba276-a88f-9f62-bf2f-2675783c9e0a" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DirectPremiumsEarned" xlink:label="loc_us-gaap_DirectPremiumsEarned_67e82947-5bfb-6a68-2706-347a20e0b24b" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNet_88dba276-a88f-9f62-bf2f-2675783c9e0a" xlink:to="loc_us-gaap_DirectPremiumsEarned_67e82947-5bfb-6a68-2706-347a20e0b24b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CededPremiumsEarned" xlink:label="loc_us-gaap_CededPremiumsEarned_aba68a68-f7d1-18a9-7a0e-49a99ddbb456" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNet_88dba276-a88f-9f62-bf2f-2675783c9e0a" xlink:to="loc_us-gaap_CededPremiumsEarned_aba68a68-f7d1-18a9-7a0e-49a99ddbb456" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssumedPremiumsEarned" xlink:label="loc_us-gaap_AssumedPremiumsEarned_95b6ffa0-808f-3e69-5f3f-730760895c47" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PremiumsEarnedNet_88dba276-a88f-9f62-bf2f-2675783c9e0a" xlink:to="loc_us-gaap_AssumedPremiumsEarned_95b6ffa0-808f-3e69-5f3f-730760895c47" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.mgic.com/role/ShareBasedCompensationPlans" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ShareBasedCompensationPlansDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ShareBasedCompensationPlansTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ShareholdersEquity" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/ShareholdersEquityDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/SignificantAccountingPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/SignificantAccountingPoliciesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/SignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/SignificantAccountingPoliciesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/StatutoryInformation" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/StatutoryInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/StatutoryInformationTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/UnauditedQuarterlyFinancialData" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/UnauditedQuarterlyFinancialDataDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.mgic.com/role/UnauditedQuarterlyFinancialDataTables" xlink:type="extended" />
</link:linkbase>
