v3.10.0.1
Document and Entity Information - shares
9 Months Ended
Sep. 30, 2018
Oct. 31, 2018
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   361,589,994
Document Fiscal Year Focus 2018  
Document Fiscal Period Focus Q3  
Document Type 10-Q  
Amendment Flag false  
Document Period End Date Sep. 30, 2018