v3.7.0.1
Document and Entity Information - shares
6 Months Ended
Jun. 30, 2017
Jul. 31, 2017
Document and Entity Information [Abstract]    
Entity Registrant Name MGIC INVESTMENT CORP  
Entity Central Index Key 0000876437  
Current Fiscal Year End Date --12-31  
Entity Current Reporting Status Yes  
Entity Filer Category Large Accelerated Filer  
Entity Common Stock, Shares Outstanding   370,561,601
Document Fiscal Year Focus 2017  
Document Fiscal Period Focus Q2  
Document Type 10-Q  
Amendment Flag false  
Document Period End Date Jun. 30, 2017