XML 82 R54.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Debt (Details) |  | 1 Months Ended | 3 Months Ended | 12 Months Ended |  |
--- | --- | --- | --- | --- | --- | ---
May 01, 2017 USD ($) | Apr. 30, 2017 USD ($) shares | Aug. 31, 2016 USD ($) | Feb. 29, 2016 USD ($) | Dec. 31, 2017 USD ($) Period $ / shares shares | Sep. 30, 2017 USD ($) | Jun. 30, 2017 USD ($) | Mar. 31, 2017 USD ($) | Dec. 31, 2016 USD ($) | Sep. 30, 2016 USD ($) shares | Jun. 30, 2016 USD ($) | Mar. 31, 2016 USD ($) | Dec. 31, 2017 USD ($) Period $ / shares shares | Dec. 31, 2016 USD ($) shares | Dec. 31, 2015 USD ($) | Mar. 21, 2017 USD ($) | Feb. 26, 2016 USD ($)
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Loss on debt extinguishment |  |  |  |  | $ 0 | $ 0 | $ 65,000 | $ 0 | $ 0 | $ 75,223,000 | $ 1,868,000 | $ 13,440,000 | $ 65,000 | $ 90,531,000 | $ 507,000 |  |
Repayments of Convertible Debt |  |  |  |  |  |  |  |  |  |  |  |  | $ 145,620,000 | 363,778,000 | 11,152,000 |  |
FHLBC advances |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | $ 155,000,000
FHLBC fixed interest rate |  |  |  | 1.91% |  |  |  |  |  |  |  |  |  |  |  |  |
Collateral, principal balance of FHLB (as a percent) |  |  |  | 102.00% |  |  |  |  |  |  |  |  | 102.00% |  |  |  |
Long-term debt, gross |  |  |  |  | $ 836,900,000 |  |  |  | 1,189,500,000 |  |  |  | $ 836,900,000 | 1,189,500,000 |  |  |
Repayment of long-term debt |  |  |  |  |  |  |  |  |  |  |  |  | $ 0 | 0 | $ 61,953,000 |  |
2% Convertible Senior Notes due 2020 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Stated interest rate (in hundredths) |  |  |  |  | 2.00% |  |  |  |  |  |  |  | 2.00% |  |  |  |
Principal amount of notes converted into shares |  | $ 202,500,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Principal amount of notes redeemed for cash |  | $ 5,100,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Conversion rate (in shares per $1,000 note) | shares |  |  |  |  |  |  |  |  |  |  |  |  | 143.8332 |  |  |  |
Principal amount of notes used in determining conversion rate |  |  |  |  | $ 1,000 |  |  |  |  |  |  |  | $ 1,000 |  |  |  |
Shares issued during period upon conversion of convertible debt (in shares) | shares |  | 29,100,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Loss on debt extinguishment |  | $ 70,000 |  |  |  |  |  |  |  |  |  |  |  | $ 74,300,000 |  |  |
Extinguishment of debt, amount |  |  |  |  |  |  |  |  |  | 292,400,000 |  |  |  |  |  |  |
Repayments of long-term debt |  |  |  |  |  |  |  |  |  | 362,100,000 |  |  |  |  |  |  |
Repayments of Convertible Debt |  |  |  |  |  |  |  |  |  | $ 230,700,000 |  |  |  |  |  |  |
Repayments of debt (in shares) | shares |  |  |  |  |  |  |  |  |  | 18,300,000 |  |  |  | 18,300,000 |  |  |
Reduction in shares for computation of earnings per share | shares |  |  |  |  |  |  |  |  |  | 42,100,000 |  |  |  |  |  |  |
Long-term debt, gross |  |  |  |  | $ 0 |  |  |  | 207,600,000 |  |  |  | $ 0 | $ 207,600,000 |  |  |
Line of Credit | Revolving Credit Facility |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Maximum borrowing capacity |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | $ 175,000,000 |
Revolving credit facility |  |  |  |  |  |  |  | $ 150,000,000 |  |  |  |  |  |  |  |  |
5% Convertible Senior Notes due 2017 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Stated interest rate (in hundredths) |  |  |  |  | 5.00% |  |  |  |  |  |  |  | 5.00% |  |  |  |
Loss on debt extinguishment |  |  |  |  |  |  |  |  |  |  |  |  |  | 7,900,000 |  |  |
Extinguishment of debt, amount |  |  |  |  |  |  |  |  |  |  |  |  |  | 188,500,000 |  |  |
Repayments of Convertible Debt | $ 145,000,000 |  |  |  |  |  |  |  |  |  |  |  |  | $ 195,500,000 |  |  |
Reduction in shares for computation of earnings per share | shares |  |  |  |  |  |  |  |  |  |  |  |  |  | 14,000,000 |  |  |
Long-term debt, gross |  |  |  |  | $ 0 |  |  |  | 145,000,000 |  |  |  | $ 0 | $ 145,000,000 |  |  |
Senior Notes | 5.75% Senior Notes due 2023 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Stated interest rate (in hundredths) |  |  |  |  | 5.75% |  |  |  |  |  |  |  | 5.75% |  |  |  |
Outstanding principal amount |  |  | $ 425,000,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |
Proceeds from issuance of debt |  |  | 418,100,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |
Redemption price, percentage (in hundredths) |  |  |  |  |  |  |  |  |  |  |  |  | 100.00% |  |  |  |
Other expenses associated with the issuance of notes |  |  | $ 1,200,000 |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ownership percentage threshold for declaration of due and payable |  |  |  |  |  |  |  |  |  |  |  |  | 25.00% |  |  |  |
Long-term debt, gross |  |  |  |  | $ 425,000,000 |  |  |  | 425,000,000 |  |  |  | $ 425,000,000 | 425,000,000 |  |  |
Senior Notes | 5.75% Senior Notes due 2023 | U.S. Treasury Rate |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Basis spread on redemption premium (as a percent) |  |  |  |  |  |  |  |  |  |  |  |  | 0.50% |  |  |  |
Convertible Junior Subordinated Debentures, at 9% per annum, Due 2063 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Debt Instrument [Line Items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Stated interest rate (in hundredths) |  |  |  |  | 9.00% |  |  |  |  |  |  |  | 9.00% |  |  |  |
Conversion rate (in shares per $1,000 note) | shares |  |  |  |  |  |  |  |  |  |  |  |  | 74.0741 |  |  |  |
Principal amount of notes used in determining conversion rate |  |  |  |  | $ 1,000 |  |  |  |  |  |  |  | $ 1,000 |  |  |  |
Loss on debt extinguishment |  |  |  |  |  |  |  |  |  |  |  |  |  | 8,300,000 |  |  |
Extinguishment of debt, amount |  |  |  | $ 132,700,000 |  |  |  |  |  |  |  |  |  |  |  |  |
Reduction in shares for computation of earnings per share | shares |  |  |  |  |  |  |  |  |  |  |  |  | 9,800,000 |  |  |  |
Redemption price, percentage (in hundredths) |  |  |  |  |  |  |  |  |  |  |  |  | 100.00% |  |  |  |
Long-term debt, gross |  |  |  |  | $ 256,900,000 |  |  |  | $ 256,900,000 |  |  |  | $ 256,900,000 | 256,900,000 |  |  |
Repayment of long-term debt |  |  |  | $ 150,700,000 |  |  |  |  |  |  |  |  |  |  |  |  |
Reacquisition of convertible junior subordinated debentures-equity component |  |  |  |  |  |  |  |  |  |  |  |  |  | $ 6,300,000 |  |  |
Initial conversion price (in dollars per share) | $ / shares |  |  |  |  | $ 13.50 |  |  |  |  |  |  |  | $ 13.50 |  |  |  |
Period preceding election to convert |  |  |  |  |  |  |  |  |  |  |  |  | 5 days |  |  |  |
Convertible debt, number of equity instruments reserved for conversion | shares |  |  |  |  | 19,000,000 |  |  |  |  |  |  |  | 19,000,000 |  |  |  |
Closing sale price of our common stock for consideration of redemption (in dollars per share) | $ / shares |  |  |  |  | $ 17.55 |  |  |  |  |  |  |  | $ 17.55 |  |  |  |
Minimum number of trading days |  |  |  |  |  |  |  |  |  |  |  |  | 20 days |  |  |  |
Maximum number of trading days |  |  |  |  |  |  |  |  |  |  |  |  | 30 days |  |  |  |
Minimum number of consecutive interest periods for which interest payments may be deferred | Period |  |  |  |  | 1 |  |  |  |  |  |  |  | 1 |  |  |  |
Maximum period for which interest payments may be deferred without giving rise to an event of default |  |  |  |  |  |  |  |  |  |  |  |  | 10 years |  |  |  |
Period in which reasonable commercial efforts must begin, maximum |  |  |  |  |  |  |  |  |  |  |  |  | 1 day |  |  |  |
Anniversary payment release of the start of the interest deferral to the Alternative Payment Mechanism in lieu of the final maturity of the debentures |  |  |  |  |  |  |  |  |  |  |  |  | 10 years |  |  |  |
Net proceeds cap (in hundredths) |  |  |  |  | 2.00% |  |  |  |  |  |  |  | 2.00% |  |  |  |
Maximum number of shares of common stock issuable under the Alternative Payment Mechanism (in shares) | shares |  |  |  |  | 10,000,000 |  |  |  |  |  |  |  | 10,000,000 |  |  |  |
Maximum percentage of aggregate principal amount of the debentures (in hundredths) |  |  |  |  | 25.00% |  |  |  |  |  |  |  | 25.00% |  |  |  |

X
- Definition We cannot pay deferred interest other than from the net proceeds of Alternative Payment Mechanism sales, except at the final maturity of the debentures or at the tenth anniversary of the start of the interest deferral. + References No definition available. + Details
Name: | mtg_AnniversarypaymentreleaseofthestartoftheinterestdeferraltotheAlternativePaymentMechanisminlieuofthefinalmaturityofthedebentures
Namespace Prefix: | mtg_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Antidilutive Securities, Reduction In Shares For Computation of Earnings Per Share + References No definition available. + Details
Name: | mtg_AntidilutiveSecuritiesReductionInSharesForComputationofEarningsPerShare
Namespace Prefix: | mtg_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Basis Spread On Redemption Premium + References No definition available. + Details
Name: | mtg_DebtInstrumentBasisSpreadOnRedemptionPremium
Namespace Prefix: | mtg_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The price per share of the conversion feature embedded in the debt instrument. + References No definition available. + Details
Name: | mtg_DebtInstrumentConvertibleConversionPrice2
Namespace Prefix: | mtg_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition The number of shares that can be issued in exchange for the original debt if converted in a noncash (or part noncash) transaction. "Part noncash" refers to that portion of the transaction not resulting in cash receipts or payments in the period. + References No definition available. + Details
Name: | mtg_DebtInstrumentConvertibleNumberOfEquityInstrumentsIfDebtConverted
Namespace Prefix: | mtg_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Convertible, Number Of Equity Instruments Reserved For Conversion + References No definition available. + Details
Name: | mtg_DebtInstrumentConvertibleNumberOfEquityInstrumentsReservedForConversion
Namespace Prefix: | mtg_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Debt Instrument, Ownership Percentage Threshold, Declaration Of Due And Payable + References No definition available. + Details
Name: | mtg_DebtInstrumentOwnershipPercentageThresholdDeclarationOfDueAndPayable
Namespace Prefix: | mtg_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Federal Home Loan Bank Advances, Collateral, Market Value Of Principal, Percent + References No definition available. + Details
Name: | mtg_FederalHomeLoanBankAdvancesCollateralMarketValueOfPrincipalPercent
Namespace Prefix: | mtg_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Long-term Debt, Outstanding Principal Of Notes Converted Into Stock + References No definition available. + Details
Name: | mtg_LongtermDebtOutstandingPrincipalOfNotesConvertedIntoStock
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Long-term Debt, Outstanding Principal Of Notes Redeemed For Cash + References No definition available. + Details
Name: | mtg_LongtermDebtOutstandingPrincipalOfNotesRedeemedForCash
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The maximum number of shares of common stock, including shares underlying qualifying warrants, that the entity may be required to issue pursuant to the Alternative Payment Mechanism under the note agreement(s). + References No definition available. + Details
Name: | mtg_MaximumNumberOfSharesOfCommonStockIssuableUnderAlternativePaymentMechanism
Namespace Prefix: | mtg_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of trading days within a specified time period that the closing sale price of the entity's common stock exceeds the prevailing conversion price of the debentures by a specified percentage. + References No definition available. + Details
Name: | mtg_MaximumNumberOfTradingDays
Namespace Prefix: | mtg_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The maximum ratio of total net proceeds of all issuances of qualifying securities to the aggregate principal amount of the debentures. Pursuant to the Alternative Payment Mechanism under the note agreement(s), the entity may not issue qualifying preferred stock if the total net proceeds exceed this ratio. + References No definition available. + Details
Name: | mtg_MaximumPercentageOfAggregatePrincipalAmountOfDebentures
Namespace Prefix: | mtg_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum length of time for which interest payments on the convertible debentures may be deferred without giving rise to an event of default. + References No definition available. + Details
Name: | mtg_MaximumPeriodForWhichInterestPaymentsMayBeDeferredWithoutGivingRiseToEventOfDefault
Namespace Prefix: | mtg_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The minimum number of consecutive interest periods for which interest payments may be deferred pursuant to an optional deferral provision under the note agreement(s). + References No definition available. + Details
Name: | mtg_MinimumNumberOfConsecutiveInterestPeriodsForWhichInterestPaymentsMayBeDeferred
Namespace Prefix: | mtg_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition The minimum number of trading days within a specified time period that the closing sale price of the entity's common stock exceeds the prevailing conversion price of the debentures by a specified percentage. + References No definition available. + Details
Name: | mtg_MinimumNumberOfTradingDays
Namespace Prefix: | mtg_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The percentage calculated as the average closing price of the entity's common stock times the number of the entity's outstanding shares of common stock. The average price is determined over a specified period ending before the issuance of the common stock or warrants being sold, and the number of outstanding shares is determined as of the date of the entity's most recent publicly released financial statements. + References No definition available. + Details
Name: | mtg_NetProceedsCap
Namespace Prefix: | mtg_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum period, in business days, after payment of interest on debentures that was not deferred, in which the entity must begin reasonable commercial efforts to sell qualifying securities to unaffiliated persons pursuant to the optional deferral provision under the note agreement(s). + References No definition available. + Details
Name: | mtg_PeriodInWhichReasonableCommercialEffortsMustBeginMaximum
Namespace Prefix: | mtg_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The period immediately prior to an election to convert debentures during which the average price of shares traded is determined for the purpose of calculating the conversion rate. + References No definition available. + Details
Name: | mtg_PeriodPrecedingElectionToConvert
Namespace Prefix: | mtg_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The principal amount of notes used in the determination of the initial conversion rate, which is subject to adjustment. + References No definition available. + Details
Name: | mtg_PrincipalAmountOfNotesUsedInDeterminingConversionRate
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Repayments Of Long-term Debt, Including Equity Issuance + References No definition available. + Details
Name: | mtg_RepaymentsOfLongtermDebtIncludingEquityIssuance
Namespace Prefix: | mtg_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Shares Issued During Period, Repayments Of Debt, Shares + References No definition available. + Details
Name: | mtg_SharesIssuedDuringPeriodRepaymentsOfDebtShares
Namespace Prefix: | mtg_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of subsequent adjustments to additional paid in capital for convertible financial instruments where a component of equity and a component of debt are recognized. + References No definition available. + Details
Name: | us-gaap_AdjustmentsToAdditionalPaidInCapitalEquityComponentOfConvertibleDebtSubsequentAdjustments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(16)) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 + Details
Name: | us-gaap_DebtInstrumentCarryingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The price per share of the conversion feature embedded in the debt instrument. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 20 -Section 50 -Paragraph 5 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=6928298&loc=SL6031898-161870 + Details
Name: | us-gaap_DebtInstrumentConvertibleConversionPrice1
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Face (par) amount of debt instrument at time of issuance. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 55 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=64930739&loc=d3e28878-108400 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=64930785&loc=d3e28551-108399 + Details
Name: | us-gaap_DebtInstrumentFaceAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Contractual interest rate for funds borrowed, under the debt agreement. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.22(a)(1)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_DebtInstrumentInterestRateStatedPercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage price of original principal amount of debt at which debt can be redeemed by the issuer. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 470 -Section 50 -Paragraph 3 -Subparagraph e -URI http://asc.fasb.org/extlink&oid=75038535&loc=d3e64711-112823 + Details
Name: | us-gaap_DebtInstrumentRedemptionPricePercentage
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount, before accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 835 -SubTopic 30 -Section 45 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=64930785&loc=d3e28555-108399 + Details
Name: | us-gaap_DeferredFinanceCostsGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Gross amount of debt extinguished. + References No definition available. + Details
Name: | us-gaap_ExtinguishmentOfDebtAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of Federal Home Loan Bank (FHLBank) advances to member financial institutions. + References No definition available. + Details
Name: | us-gaap_FederalHomeLoanBankAdvances
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Interest rate of advances made and reported by Federal Home Loan Bank (FHLBank). + References No definition available. + Details
Name: | us-gaap_FederalHomeLoanBankAdvancesInterestRate
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Difference between the fair value of payments made and the carrying amount of debt which is extinguished prior to maturity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 50 -Section 40 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=49170532&loc=d3e12317-112629 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 28 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3602-108585 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 470 -SubTopic 50 -Section 40 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=49170532&loc=d3e12355-112629 + Details
Name: | us-gaap_GainsLossesOnExtinguishmentOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(16)) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 + Details
Name: | us-gaap_LineOfCredit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The cash inflow from a borrowing with the highest claim on the assets of the entity in case of bankruptcy or liquidation (with maturities initially due after one year or beyond the operating cycle, if longer). + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromIssuanceOfSeniorLongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash outflow from the repayment of a long-term debt instrument which can be exchanged for a specified amount of another security, typically the entity's common stock, at the option of the issuer or the holder. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3291-108585 + Details
Name: | us-gaap_RepaymentsOfConvertibleDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow for debt initially having maturity due after one year or beyond the normal operating cycle, if longer. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 15 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=98514028&loc=d3e3291-108585 + Details
Name: | us-gaap_RepaymentsOfLongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Number of shares issued during the period as a result of the conversion of convertible securities. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187085-122770 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.29-30) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=84159872&loc=d3e21463-112644 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=84159872&loc=d3e21475-112644 + Details
Name: | us-gaap_StockIssuedDuringPeriodSharesConversionOfConvertibleSecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=mtg_ConvertibleSeniorNotesDueApril2020Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_LineOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_RevolvingCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_ConvertibleDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_SeniorNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=mtg_FivePointSevenFivePercentSeniorNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=mtg_U.S.TreasuryRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=us-gaap_ConvertibleSubordinatedDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |