v3.6.0.2
Document and Entity Information - USD ($)
$ in Billions
12 Months Ended
Dec. 31, 2016
Feb. 15, 2017
Jun. 30, 2016
Document and Entity Information [Abstract]      
Entity Registrant Name MGIC INVESTMENT CORP    
Entity Central Index Key 0000876437    
Current Fiscal Year End Date --12-31    
Entity Well-known Seasoned Issuer Yes    
Entity Voluntary Filers No    
Entity Current Reporting Status Yes    
Entity Filer Category Large Accelerated Filer    
Entity Public Float     $ 2.0
Entity Common Stock, Shares Outstanding   340,990,121  
Document Fiscal Year Focus 2016    
Document Fiscal Period Focus FY    
Document Type 10-K    
Amendment Flag false    
Document Period End Date Dec. 31, 2016