<SEC-DOCUMENT>0001562180-18-000420.txt : 20180124
<SEC-HEADER>0001562180-18-000420.hdr.sgml : 20180124
<ACCEPTANCE-DATETIME>20180124164243
ACCESSION NUMBER:		0001562180-18-000420
CONFORMED SUBMISSION TYPE:	4
PUBLIC DOCUMENT COUNT:		1
CONFORMED PERIOD OF REPORT:	20180122
FILED AS OF DATE:		20180124
DATE AS OF CHANGE:		20180124

REPORTING-OWNER:	

	OWNER DATA:	
		COMPANY CONFORMED NAME:			Chi Gregory A.
		CENTRAL INDEX KEY:			0001542738

	FILING VALUES:
		FORM TYPE:		4
		SEC ACT:		1934 Act
		SEC FILE NUMBER:	001-10816
		FILM NUMBER:		18545729

	MAIL ADDRESS:	
		STREET 1:		C/O MGIC INVESTMENT CORPORATION
		STREET 2:		250 EAST KILBOURN AVENUE
		CITY:			MILWAUKEE
		STATE:			WI
		ZIP:			53202

ISSUER:		

	COMPANY DATA:	
		COMPANY CONFORMED NAME:			MGIC INVESTMENT CORP
		CENTRAL INDEX KEY:			0000876437
		STANDARD INDUSTRIAL CLASSIFICATION:	SURETY INSURANCE [6351]
		IRS NUMBER:				391486475
		STATE OF INCORPORATION:			WI
		FISCAL YEAR END:			1231

	BUSINESS ADDRESS:	
		STREET 1:		250 EAST KILBOURN AVENUE
		CITY:			MILWAUKEE
		STATE:			WI
		ZIP:			53202
		BUSINESS PHONE:		4143476480

	MAIL ADDRESS:	
		STREET 1:		250 EAST KILBOURN AVENUE
		CITY:			MILWAUKEE
		STATE:			WI
		ZIP:			53202
</SEC-HEADER>
<DOCUMENT>
<TYPE>4
<SEQUENCE>1
<FILENAME>primarydocument.xml
<DESCRIPTION>PRIMARY DOCUMENT
<TEXT>
<XML>
<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0306</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2018-01-22</periodOfReport>

    <notSubjectToSection16>false</notSubjectToSection16>

    <issuer>
        <issuerCik>0000876437</issuerCik>
        <issuerName>MGIC INVESTMENT CORP</issuerName>
        <issuerTradingSymbol>MTG</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001542738</rptOwnerCik>
            <rptOwnerName>Chi Gregory A.</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O MGIC INVESTMENT CORPORATION</rptOwnerStreet1>
            <rptOwnerStreet2>250 EAST KILBOURN AVENUE</rptOwnerStreet2>
            <rptOwnerCity>MILWAUKEE</rptOwnerCity>
            <rptOwnerState>WI</rptOwnerState>
            <rptOwnerZipCode>53202</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>false</isDirector>
            <isOfficer>true</isOfficer>
            <isTenPercentOwner>false</isTenPercentOwner>
            <isOther>false</isOther>
            <officerTitle>SVP-Chief Information Officer</officerTitle>
            <otherText></otherText>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2018-01-22</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>false</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness></transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>22880.00</value>
                    <footnoteId id="F1"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0.00</value>
                    <footnoteId id="F2"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>227243.00</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2018-01-22</value>
            </transactionDate>
            <deemedExecutionDate></deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>A</transactionCode>
                <equitySwapInvolved>false</equitySwapInvolved>
            </transactionCoding>
            <transactionTimeliness></transactionTimeliness>
            <transactionAmounts>
                <transactionShares>
                    <value>34320.00</value>
                    <footnoteId id="F3"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0.00</value>
                    <footnoteId id="F2"/>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>261563.00</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable></derivativeTable>

    <footnotes>
        <footnote id="F1">One-third of these Share Units vest on February 10 of each of the three years beginning in 2019, subject to the reporting person's continued employment with the Issuer.</footnote>
        <footnote id="F2">These share units were awarded to the reporting person pursuant to the Issuer's 2015 Omnibus Incentive Plan and no price was paid by the reporting person for the share units.</footnote>
        <footnote id="F3">These share units are subject to certain restrictions, and vest when such restrictions lapse. Partial vesting of these share units occurs on February 28 of each of the three years beginning in 2019, based on certain performance standards. If it is not possible to determine whether the performance standards have been met on any particular vesting date, the vesting date will be extended until such determination can be made. Any of these share units which have not vested when the final vesting is determined in 2021 will be forfeited.</footnote>
    </footnotes>

    <remarks>This Form 4 is being signed by the reporting person's attorney-in-fact pursuant to a power of attorney previously filed.</remarks>

    <ownerSignature>
        <signatureName>Dan D. Stilwell, Attorney-in-Fact</signatureName>
        <signatureDate>2018-01-23</signatureDate>
    </ownerSignature>
</ownershipDocument>
</XML>
</TEXT>
</DOCUMENT>
</SEC-DOCUMENT>
