<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2019-01-31"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:mgee="http://www.mgeenergy.com/20200420"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="mgee-20200420.xsd" xlink:type="simple"/>
    <context id="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001161728</identifier>
        </entity>
        <period>
            <startDate>2020-04-20</startDate>
            <endDate>2020-04-20</endDate>
        </period>
    </context>
    <context id="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728_dei_LegalEntityAxis_mgee_MgeMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001161728</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">mgee:MgeMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2020-04-20</startDate>
            <endDate>2020-04-20</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_4">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_19">0001161728</dei:EntityCentralIndexKey>
    <dei:EntityCentralIndexKey
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728_dei_LegalEntityAxis_mgee_MgeMember"
      id="ID_20">0000061339</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_21">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_33">2020-04-20</dei:DocumentPeriodEndDate>
    <dei:EntityFileNumber
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_15">000-49965</dei:EntityFileNumber>
    <dei:EntityRegistrantName
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_5">MGE Energy, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_24">WI</dei:EntityIncorporationStateCountryCode>
    <dei:EntityAddressAddressLine1
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_0">133 South Blair Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_7">Madison</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_25">WI</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_9">53788</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_2">608</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_11">252-7000</dei:LocalPhoneNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_17">39-2040501</dei:EntityTaxIdentificationNumber>
    <dei:EntityFileNumber
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728_dei_LegalEntityAxis_mgee_MgeMember"
      id="ID_16">000-1125</dei:EntityFileNumber>
    <dei:EntityRegistrantName
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728_dei_LegalEntityAxis_mgee_MgeMember"
      id="ID_6">Madison Gas and Electric Company</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728_dei_LegalEntityAxis_mgee_MgeMember"
      id="ID_23">WI</dei:EntityIncorporationStateCountryCode>
    <dei:EntityAddressAddressLine1
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728_dei_LegalEntityAxis_mgee_MgeMember"
      id="ID_1">133 South Blair Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728_dei_LegalEntityAxis_mgee_MgeMember"
      id="ID_8">Madison</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728_dei_LegalEntityAxis_mgee_MgeMember"
      id="ID_22">WI</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728_dei_LegalEntityAxis_mgee_MgeMember"
      id="ID_10">53788</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728_dei_LegalEntityAxis_mgee_MgeMember"
      id="ID_3">608</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728_dei_LegalEntityAxis_mgee_MgeMember"
      id="ID_12">252-7000</dei:LocalPhoneNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728_dei_LegalEntityAxis_mgee_MgeMember"
      id="ID_18">39-0444025</dei:EntityTaxIdentificationNumber>
    <dei:WrittenCommunications
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_29">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_28">false</dei:SolicitingMaterial>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_26">false</dei:PreCommencementIssuerTenderOffer>
    <dei:PreCommencementTenderOffer
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_27">false</dei:PreCommencementTenderOffer>
    <dei:EntityEmergingGrowthCompany
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_13">false</dei:EntityEmergingGrowthCompany>
    <dei:EntityEmergingGrowthCompany
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728_dei_LegalEntityAxis_mgee_MgeMember"
      id="ID_14">false</dei:EntityEmergingGrowthCompany>
    <dei:Security12bTitle
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_32">Common Stock, $1 Par Value Per Share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_31">MGEE</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="FROM_Apr20_2020_TO_Apr20_2020_Entity_0001161728"
      id="ID_30">NASDAQ</dei:SecurityExchangeName>
</xbrl>
