| | | | | | | | | | | | | | | | | | | | | |
<?xml version="1.0" encoding="windows-1252"?> |
<FilingSummary> |
| <Version> 3.22.2 </Version> |
| <ProcessingTime/> |
| <ReportFormat> html </ReportFormat> |
| <ContextCount> 317 </ContextCount> |
| <ElementCount> 308 </ElementCount> |
| <EntityCount> 1 </EntityCount> |
| <FootnotesReported> false </FootnotesReported> |
| <SegmentCount> 68 </SegmentCount> |
| <ScenarioCount> 0 </ScenarioCount> |
| <TuplesReported> false </TuplesReported> |
| <UnitCount> 7 </UnitCount> |
| <MyReports> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R1.htm </HtmlFileName> |
| | | <LongName> 0001001 - Document - Document and Entity Information </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/DocumentandEntityInformation </Role> |
| | | <ShortName> Document and Entity Information </ShortName> |
| | | <MenuCategory> Cover </MenuCategory> |
| | | <Position> 1 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R2.htm </HtmlFileName> |
| | | <LongName> 1001002 - Statement - CONSOLIDATED BALANCE SHEETS </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/CONSOLIDATEDBALANCESHEETS </Role> |
| | | <ShortName> CONSOLIDATED BALANCE SHEETS </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 2 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R3.htm </HtmlFileName> |
| | | <LongName> 1002003 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/CONSOLIDATEDBALANCESHEETSParenthetical </Role> |
| | | <ShortName> CONSOLIDATED BALANCE SHEETS (Parenthetical) </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 3 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R4.htm </HtmlFileName> |
| | | <LongName> 1003004 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS </Role> |
| | | <ShortName> CONSOLIDATED STATEMENTS OF OPERATIONS </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 4 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R5.htm </HtmlFileName> |
| | | <LongName> 1004005 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOME </Role> |
| | | <ShortName> CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 5 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R6.htm </HtmlFileName> |
| | | <LongName> 1005006 - Statement - CONSOLIDATED STATEMENTS OF SHAREHOLDERS' EQUITY </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITY </Role> |
| | | <ShortName> CONSOLIDATED STATEMENTS OF SHAREHOLDERS' EQUITY </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 6 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R7.htm </HtmlFileName> |
| | | <LongName> 1006007 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS </Role> |
| | | <ShortName> CONSOLIDATED STATEMENTS OF CASH FLOWS </ShortName> |
| | | <MenuCategory> Statements </MenuCategory> |
| | | <Position> 7 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R8.htm </HtmlFileName> |
| | | <LongName> 2101101 - Disclosure - Nature of Business and Basis of Presentation </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/NatureofBusinessandBasisofPresentation </Role> |
| | | <ShortName> Nature of Business and Basis of Presentation </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 8 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R9.htm </HtmlFileName> |
| | | <LongName> 2103102 - Disclosure - Significant Accounting Policies </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/SignificantAccountingPolicies </Role> |
| | | <ShortName> Significant Accounting Policies </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 9 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R10.htm </HtmlFileName> |
| | | <LongName> 2106103 - Disclosure - Debt </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/Debt </Role> |
| | | <ShortName> Debt </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 10 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R11.htm </HtmlFileName> |
| | | <LongName> 2110104 - Disclosure - Reinsurance </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/Reinsurance </Role> |
| | | <ShortName> Reinsurance </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 11 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R12.htm </HtmlFileName> |
| | | <LongName> 2118105 - Disclosure - Litigation and Contingencies </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/LitigationandContingencies </Role> |
| | | <ShortName> Litigation and Contingencies </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 12 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R13.htm </HtmlFileName> |
| | | <LongName> 2120106 - Disclosure - Earnings per Share </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/EarningsperShare </Role> |
| | | <ShortName> Earnings per Share </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 13 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R14.htm </HtmlFileName> |
| | | <LongName> 2123107 - Disclosure - Investments </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/Investments </Role> |
| | | <ShortName> Investments </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 14 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R15.htm </HtmlFileName> |
| | | <LongName> 2129108 - Disclosure - Fair Value Measurements </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/FairValueMeasurements </Role> |
| | | <ShortName> Fair Value Measurements </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 15 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R16.htm </HtmlFileName> |
| | | <LongName> 2133109 - Disclosure - Other Comprehensive Income </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/OtherComprehensiveIncome </Role> |
| | | <ShortName> Other Comprehensive Income </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 16 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R17.htm </HtmlFileName> |
| | | <LongName> 2136110 - Disclosure - Benefit Plans </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/BenefitPlans </Role> |
| | | <ShortName> Benefit Plans </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 17 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R18.htm </HtmlFileName> |
| | | <LongName> 2139111 - Disclosure - Loss Reserves </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/LossReserves </Role> |
| | | <ShortName> Loss Reserves </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 18 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R19.htm </HtmlFileName> |
| | | <LongName> 2144112 - Disclosure - Shareholders' Equity </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/ShareholdersEquity </Role> |
| | | <ShortName> Shareholders' Equity </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 19 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R20.htm </HtmlFileName> |
| | | <LongName> 2146113 - Disclosure - Share-Based Compensation </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/ShareBasedCompensation </Role> |
| | | <ShortName> Share-Based Compensation </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 20 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R21.htm </HtmlFileName> |
| | | <LongName> 2149114 - Disclosure - Statutory Information </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/StatutoryInformation </Role> |
| | | <ShortName> Statutory Information </ShortName> |
| | | <MenuCategory> Notes </MenuCategory> |
| | | <Position> 21 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R22.htm </HtmlFileName> |
| | | <LongName> 2202201 - Disclosure - Nature of Business and Basis of Presentations (Policies) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/NatureofBusinessandBasisofPresentationsPolicies </Role> |
| | | <ShortName> Nature of Business and Basis of Presentations (Policies) </ShortName> |
| | | <MenuCategory> Policies </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/SignificantAccountingPolicies </ParentRole> |
| | | <Position> 22 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R23.htm </HtmlFileName> |
| | | <LongName> 2204202 - Disclosure - Significant Accounting Policies (Policies) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/SignificantAccountingPoliciesPolicies </Role> |
| | | <ShortName> Significant Accounting Policies (Policies) </ShortName> |
| | | <MenuCategory> Policies </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/SignificantAccountingPolicies </ParentRole> |
| | | <Position> 23 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R24.htm </HtmlFileName> |
| | | <LongName> 2305301 - Disclosure - Significant Accounting Policies Significant Accounting Policies (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/SignificantAccountingPoliciesSignificantAccountingPoliciesTables </Role> |
| | | <ShortName> Significant Accounting Policies Significant Accounting Policies (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <Position> 24 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R25.htm </HtmlFileName> |
| | | <LongName> 2307302 - Disclosure - Debt (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/DebtTables </Role> |
| | | <ShortName> Debt (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/Debt </ParentRole> |
| | | <Position> 25 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R26.htm </HtmlFileName> |
| | | <LongName> 2311303 - Disclosure - Reinsurance (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/ReinsuranceTables </Role> |
| | | <ShortName> Reinsurance (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/Reinsurance </ParentRole> |
| | | <Position> 26 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R27.htm </HtmlFileName> |
| | | <LongName> 2321304 - Disclosure - Earnings per Share (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/EarningsperShareTables </Role> |
| | | <ShortName> Earnings per Share (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/EarningsperShare </ParentRole> |
| | | <Position> 27 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R28.htm </HtmlFileName> |
| | | <LongName> 2324305 - Disclosure - Investments (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/InvestmentsTables </Role> |
| | | <ShortName> Investments (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/Investments </ParentRole> |
| | | <Position> 28 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R29.htm </HtmlFileName> |
| | | <LongName> 2330306 - Disclosure - Fair Value Measurements (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/FairValueMeasurementsTables </Role> |
| | | <ShortName> Fair Value Measurements (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/FairValueMeasurements </ParentRole> |
| | | <Position> 29 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R30.htm </HtmlFileName> |
| | | <LongName> 2334307 - Disclosure - Other Comprehensive Income (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/OtherComprehensiveIncomeTables </Role> |
| | | <ShortName> Other Comprehensive Income (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/OtherComprehensiveIncome </ParentRole> |
| | | <Position> 30 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R31.htm </HtmlFileName> |
| | | <LongName> 2337308 - Disclosure - Benefit Plans (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/BenefitPlansTables </Role> |
| | | <ShortName> Benefit Plans (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/BenefitPlans </ParentRole> |
| | | <Position> 31 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R32.htm </HtmlFileName> |
| | | <LongName> 2340309 - Disclosure - Loss Reserves (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/LossReservesTables </Role> |
| | | <ShortName> Loss Reserves (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/LossReserves </ParentRole> |
| | | <Position> 32 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R33.htm </HtmlFileName> |
| | | <LongName> 2347310 - Disclosure - Share-Based Compensation (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/ShareBasedCompensationTables </Role> |
| | | <ShortName> Share-Based Compensation (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/ShareBasedCompensation </ParentRole> |
| | | <Position> 33 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R34.htm </HtmlFileName> |
| | | <LongName> 2350311 - Disclosure - Statutory Information Statutory Information (Tables) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/StatutoryInformationStatutoryInformationTables </Role> |
| | | <ShortName> Statutory Information Statutory Information (Tables) </ShortName> |
| | | <MenuCategory> Tables </MenuCategory> |
| | | <Position> 34 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R35.htm </HtmlFileName> |
| | | <LongName> 2408401 - Disclosure - Debt - Summary of Debt Obligations (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/DebtSummaryofDebtObligationsDetails </Role> |
| | | <ShortName> Debt - Summary of Debt Obligations (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 35 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R36.htm </HtmlFileName> |
| | | <LongName> 2409402 - Disclosure - Debt - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/DebtNarrativeDetails </Role> |
| | | <ShortName> Debt - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 36 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R37.htm </HtmlFileName> |
| | | <LongName> 2412403 - Disclosure - Reinsurance - Summary of Premiums Earned and Losses Incurred (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/ReinsuranceSummaryofPremiumsEarnedandLossesIncurredDetails </Role> |
| | | <ShortName> Reinsurance - Summary of Premiums Earned and Losses Incurred (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 37 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R38.htm </HtmlFileName> |
| | | <LongName> 2413404 - Disclosure - Reinsurance - Narrative (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/ReinsuranceNarrativeDetails </Role> |
| | | <ShortName> Reinsurance - Narrative (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 38 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R39.htm </HtmlFileName> |
| | | <LongName> 2414405 - Disclosure - Reinsurance - Quota Share Transactions Terms (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/ReinsuranceQuotaShareTransactionsTermsDetails </Role> |
| | | <ShortName> Reinsurance - Quota Share Transactions Terms (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 39 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R40.htm </HtmlFileName> |
| | | <LongName> 2415406 - Disclosure - Reinsurance - Summary of Quota Reinsurance Transactions (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/ReinsuranceSummaryofQuotaReinsuranceTransactionsDetails </Role> |
| | | <ShortName> Reinsurance - Summary of Quota Reinsurance Transactions (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 40 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R41.htm </HtmlFileName> |
| | | <LongName> 2416407 - Disclosure - Reinsurance - Excess of Loss Reinsurance (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/ReinsuranceExcessofLossReinsuranceDetails </Role> |
| | | <ShortName> Reinsurance - Excess of Loss Reinsurance (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 41 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R42.htm </HtmlFileName> |
| | | <LongName> 2417408 - Disclosure - Reinsurance - Variable Interest Entity (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/ReinsuranceVariableInterestEntityDetails </Role> |
| | | <ShortName> Reinsurance - Variable Interest Entity (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 42 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R43.htm </HtmlFileName> |
| | | <LongName> 2419409 - Disclosure - Litigation and Contingencies (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/LitigationandContingenciesDetails </Role> |
| | | <ShortName> Litigation and Contingencies (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/LitigationandContingencies </ParentRole> |
| | | <Position> 43 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R44.htm </HtmlFileName> |
| | | <LongName> 2422410 - Disclosure - Earnings per Share (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/EarningsperShareDetails </Role> |
| | | <ShortName> Earnings per Share (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/EarningsperShareTables </ParentRole> |
| | | <Position> 44 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R45.htm </HtmlFileName> |
| | | <LongName> 2425411 - Disclosure - Investments (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/InvestmentsDetails </Role> |
| | | <ShortName> Investments (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/InvestmentsTables </ParentRole> |
| | | <Position> 45 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R46.htm </HtmlFileName> |
| | | <LongName> 2426412 - Disclosure - Investments - Amortized Cost and Fair Values of Debt Securities (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/InvestmentsAmortizedCostandFairValuesofDebtSecuritiesDetails </Role> |
| | | <ShortName> Investments - Amortized Cost and Fair Values of Debt Securities (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 46 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R47.htm </HtmlFileName> |
| | | <LongName> 2427413 - Disclosure - Investments - Equity Securities (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/InvestmentsEquitySecuritiesDetails </Role> |
| | | <ShortName> Investments - Equity Securities (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 47 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R48.htm </HtmlFileName> |
| | | <LongName> 2428414 - Disclosure - Investments - Securities In Unrealized Loss Position (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/InvestmentsSecuritiesInUnrealizedLossPositionDetails </Role> |
| | | <ShortName> Investments - Securities In Unrealized Loss Position (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 48 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R49.htm </HtmlFileName> |
| | | <LongName> 2431415 - Disclosure - Fair Value Measurements (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/FairValueMeasurementsDetails </Role> |
| | | <ShortName> Fair Value Measurements (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/FairValueMeasurementsTables </ParentRole> |
| | | <Position> 49 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R50.htm </HtmlFileName> |
| | | <LongName> 2432416 - Disclosure - Fair Value Measurements - Assets and Liabilities Not Measured at Fair Value (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/FairValueMeasurementsAssetsandLiabilitiesNotMeasuredatFairValueDetails </Role> |
| | | <ShortName> Fair Value Measurements - Assets and Liabilities Not Measured at Fair Value (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 50 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R51.htm </HtmlFileName> |
| | | <LongName> 2435417 - Disclosure - Other Comprehensive Income (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/OtherComprehensiveIncomeDetails </Role> |
| | | <ShortName> Other Comprehensive Income (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/OtherComprehensiveIncomeTables </ParentRole> |
| | | <Position> 51 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R52.htm </HtmlFileName> |
| | | <LongName> 2438418 - Disclosure - Benefit Plans (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/BenefitPlansDetails </Role> |
| | | <ShortName> Benefit Plans (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/BenefitPlansTables </ParentRole> |
| | | <Position> 52 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R53.htm </HtmlFileName> |
| | | <LongName> 2441419 - Disclosure - Loss Reserves (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/LossReservesDetails </Role> |
| | | <ShortName> Loss Reserves (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/LossReservesTables </ParentRole> |
| | | <Position> 53 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R54.htm </HtmlFileName> |
| | | <LongName> 2442420 - Disclosure - Loss Reserves - Reconciliation of Beginning and Ending Balances (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/LossReservesReconciliationofBeginningandEndingBalancesDetails </Role> |
| | | <ShortName> Loss Reserves - Reconciliation of Beginning and Ending Balances (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 54 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R55.htm </HtmlFileName> |
| | | <LongName> 2443421 - Disclosure - Loss Reserves - Delinquent Items (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/LossReservesDelinquentItemsDetails </Role> |
| | | <ShortName> Loss Reserves - Delinquent Items (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 55 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R56.htm </HtmlFileName> |
| | | <LongName> 2445422 - Disclosure - Shareholders' Equity (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/ShareholdersEquityDetails </Role> |
| | | <ShortName> Shareholders' Equity (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/ShareholdersEquity </ParentRole> |
| | | <Position> 56 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R57.htm </HtmlFileName> |
| | | <LongName> 2448423 - Disclosure - Share-Based Compensation (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/ShareBasedCompensationDetails </Role> |
| | | <ShortName> Share-Based Compensation (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/ShareBasedCompensationTables </ParentRole> |
| | | <Position> 57 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R58.htm </HtmlFileName> |
| | | <LongName> 2451424 - Disclosure - Statutory Information (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/StatutoryInformationDetails </Role> |
| | | <ShortName> Statutory Information (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <ParentRole> http://www.mgic.com/role/StatutoryInformationStatutoryInformationTables </ParentRole> |
| | | <Position> 58 </Position> |
| | | </Report> |
| | <Report instance="mtg-20220630.htm"> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <HtmlFileName> R59.htm </HtmlFileName> |
| | | <LongName> 2452425 - Disclosure - Statutory Information - Summary of Amounts Disclosed Under Statutory Accounting Practices (Details) </LongName> |
| | | <ReportType> Sheet </ReportType> |
| | | <Role> http://www.mgic.com/role/StatutoryInformationSummaryofAmountsDisclosedUnderStatutoryAccountingPracticesDetails </Role> |
| | | <ShortName> Statutory Information - Summary of Amounts Disclosed Under Statutory Accounting Practices (Details) </ShortName> |
| | | <MenuCategory> Details </MenuCategory> |
| | | <Position> 59 </Position> |
| | | </Report> |
| | <Report> |
| | | <IsDefault> false </IsDefault> |
| | | <HasEmbeddedReports> false </HasEmbeddedReports> |
| | | <LongName> All Reports </LongName> |
| | | <ReportType> Book </ReportType> |
| | | <ShortName> All Reports </ShortName> |
| | | </Report> |
| | </MyReports> |
| <InputFiles> |
| | <File doctype="10-Q" original="mtg-20220630.htm"> mtg-20220630.htm </File> |
| | <File> exhibit31110q2022q22022.htm </File> |
| | <File> exhibit31210q2022q22022.htm </File> |
| | <File> exhibit3210q2022q22022.htm </File> |
| | <File> exhibit9910q2022q22022rf.htm </File> |
| | <File> mtg-20220630.xsd </File> |
| | <File> mtg-20220630_cal.xml </File> |
| | <File> mtg-20220630_def.xml </File> |
| | <File> mtg-20220630_lab.xml </File> |
| | <File> mtg-20220630_pre.xml </File> |
| | </InputFiles> |
| <SupplementalFiles> |
| | <File> mtg-20220630_g1.jpg </File> |
| | </SupplementalFiles> |
| <BaseTaxonomies> |
| | <BaseTaxonomy items="1070"> http://fasb.org/us-gaap/2022 </BaseTaxonomy> |
| | <BaseTaxonomy items="30"> http://xbrl.sec.gov/dei/2022 </BaseTaxonomy> |
| | </BaseTaxonomies> |
| <HasPresentationLinkbase> true </HasPresentationLinkbase> |
| <HasCalculationLinkbase> true </HasCalculationLinkbase> |
| </FilingSummary> |