<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_8d43818f-61be-4c89-beda-5c7f07f524fe">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001161728</identifier>
        </entity>
        <period>
            <startDate>2026-02-24</startDate>
            <endDate>2026-02-24</endDate>
        </period>
    </context>
    <context id="C_937e8b6e-58bc-4526-a26e-72e0b0d593d6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001161728</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-02-24</startDate>
            <endDate>2026-02-24</endDate>
        </period>
    </context>
    <context id="C_c5af28a3-998e-41fe-ae5b-378695a62b7f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001161728</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>4</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-02-24</startDate>
            <endDate>2026-02-24</endDate>
        </period>
    </context>
    <context id="C_dd850d3c-d6df-4d3b-829d-14b433817dbb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001161728</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>5</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-02-24</startDate>
            <endDate>2026-02-24</endDate>
        </period>
    </context>
    <context id="C_dec331d4-798e-45ff-a37a-3e5c544d4db7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001161728</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>6</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-02-24</startDate>
            <endDate>2026-02-24</endDate>
        </period>
    </context>
    <context id="C_fdf4f3c8-d1c9-4652-95b8-c9d5fd54e346">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001161728</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>8</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-02-24</startDate>
            <endDate>2026-02-24</endDate>
        </period>
    </context>
    <context id="C_ffc47715-e7ff-4021-a5ed-2437bd7af851">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001161728</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>3</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-02-24</startDate>
            <endDate>2026-02-24</endDate>
        </period>
    </context>
    <context id="C_2d9cbf9a-8994-4a76-a83b-cc588e9aa513">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001161728</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>7</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-02-24</startDate>
            <endDate>2026-02-24</endDate>
        </period>
    </context>
    <context id="C_424093ea-5e02-48ab-9bed-d52214ce36f8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001161728</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-02-24</startDate>
            <endDate>2026-02-24</endDate>
        </period>
    </context>
    <unit id="U_pure">
        <measure>pure</measure>
    </unit>
    <unit id="U_shares">
        <measure>shares</measure>
    </unit>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_8d43818f-61be-4c89-beda-5c7f07f524fe"
      id="F_18f6dc44-f4e6-49ea-a9a4-44af1b87ebed">0001161728</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_8d43818f-61be-4c89-beda-5c7f07f524fe"
      id="F_ba3d8424-1890-4e18-af32-b5b8e3d0180d">S-3ASR</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_8d43818f-61be-4c89-beda-5c7f07f524fe"
      id="F_1dd8edc8-0ecc-4c62-a582-fa6118b7045f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_8d43818f-61be-4c89-beda-5c7f07f524fe"
      id="F_4a202ed2-e48f-4b88-a204-a113ae1c566f">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8d43818f-61be-4c89-beda-5c7f07f524fe"
      id="F_308e8213-5ff9-467f-b2e2-3b38060c3544">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_8d43818f-61be-4c89-beda-5c7f07f524fe"
      id="F_ff5ae910-3104-4905-b7cd-8cc6379e951a">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_8d43818f-61be-4c89-beda-5c7f07f524fe"
      id="F_db7773ac-6094-4291-8c4e-a84e0837006b">MGE Energy, Inc.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg
      contextRef="C_937e8b6e-58bc-4526-a26e-72e0b0d593d6"
      id="F_b9b822a8-b105-49b4-b0c0-de694cd3fb65">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg
      contextRef="C_424093ea-5e02-48ab-9bed-d52214ce36f8"
      id="F_e4ee976a-0675-4488-8b63-791ad31072f7">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg
      contextRef="C_ffc47715-e7ff-4021-a5ed-2437bd7af851"
      id="F_19e031a4-7701-4357-8915-5095b0ed3852">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg
      contextRef="C_c5af28a3-998e-41fe-ae5b-378695a62b7f"
      id="F_aab7db84-e7d9-4589-8513-8af844743247">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg
      contextRef="C_dd850d3c-d6df-4d3b-829d-14b433817dbb"
      id="F_7409f74a-dfe3-438a-9e57-5261128528c7">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg
      contextRef="C_dec331d4-798e-45ff-a37a-3e5c544d4db7"
      id="F_ec453ade-a525-4f2d-b12d-29fa79b24e00">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg
      contextRef="C_2d9cbf9a-8994-4a76-a83b-cc588e9aa513"
      id="F_199ea69d-d4c4-4ed0-82de-d2701b75a5c2">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp
      contextRef="C_937e8b6e-58bc-4526-a26e-72e0b0d593d6"
      id="F_784ba27b-b766-4e8a-80f3-eabaf84cc905">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="C_937e8b6e-58bc-4526-a26e-72e0b0d593d6"
      id="F_9e6b3bc6-30e6-4653-83a2-2e34b0014966">Common Stock, $1 par value per share </ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg
      contextRef="C_937e8b6e-58bc-4526-a26e-72e0b0d593d6"
      id="F_acfdca6d-5fe5-4002-9a4e-47b77562b4c0">true</ffd:Rule457rFlg>
    <ffd:FeeRate
      contextRef="C_937e8b6e-58bc-4526-a26e-72e0b0d593d6"
      decimals="7"
      id="F_6a82ca5c-3fec-4656-b9f8-f689c08edf23"
      unitRef="U_pure">0.0001381</ffd:FeeRate>
    <ffd:OfferingSctyTp
      contextRef="C_424093ea-5e02-48ab-9bed-d52214ce36f8"
      id="F_387c16dc-7322-4edf-b65c-41ada24861a5">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="C_424093ea-5e02-48ab-9bed-d52214ce36f8"
      id="F_ea9a9beb-6e7a-4039-824f-f6c2bbc741a4">Debt Securities</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg
      contextRef="C_424093ea-5e02-48ab-9bed-d52214ce36f8"
      id="F_bacf1575-1a02-4f6d-865b-80c51c9661cd">true</ffd:Rule457rFlg>
    <ffd:FeeRate
      contextRef="C_424093ea-5e02-48ab-9bed-d52214ce36f8"
      decimals="7"
      id="F_be28c528-ad73-4893-ad58-0a0cac98d970"
      unitRef="U_pure">0.0001381</ffd:FeeRate>
    <ffd:OfferingSctyTp
      contextRef="C_ffc47715-e7ff-4021-a5ed-2437bd7af851"
      id="F_2d7d4836-a0c4-46d4-9361-535ff5775a9f">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="C_ffc47715-e7ff-4021-a5ed-2437bd7af851"
      id="F_fd1f7004-e835-42ca-83d9-6c437279b401">Medium-Term Notes</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg
      contextRef="C_ffc47715-e7ff-4021-a5ed-2437bd7af851"
      id="F_58356b85-03cf-4c17-a254-a35e0c72f6d6">true</ffd:Rule457rFlg>
    <ffd:FeeRate
      contextRef="C_ffc47715-e7ff-4021-a5ed-2437bd7af851"
      decimals="7"
      id="F_0d322e6b-e0d5-483b-ba94-55d483713d64"
      unitRef="U_pure">0.0001381</ffd:FeeRate>
    <ffd:OfferingSctyTp
      contextRef="C_c5af28a3-998e-41fe-ae5b-378695a62b7f"
      id="F_25360d9b-f63e-4f8d-88c3-999175e7c153">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="C_c5af28a3-998e-41fe-ae5b-378695a62b7f"
      id="F_fb842359-009f-4051-8b7e-ea87684a346e">Warrants</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg
      contextRef="C_c5af28a3-998e-41fe-ae5b-378695a62b7f"
      id="F_b35632ce-fc3d-4113-9938-6d744fdf8cb6">true</ffd:Rule457rFlg>
    <ffd:FeeRate
      contextRef="C_c5af28a3-998e-41fe-ae5b-378695a62b7f"
      decimals="7"
      id="F_f08001cf-2d5a-4479-bb1b-02142274e77b"
      unitRef="U_pure">0.0001381</ffd:FeeRate>
    <ffd:OfferingSctyTp
      contextRef="C_dd850d3c-d6df-4d3b-829d-14b433817dbb"
      id="F_090a6b99-1e17-4bbc-9f7a-07b76b58d64c">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="C_dd850d3c-d6df-4d3b-829d-14b433817dbb"
      id="F_a22c24a0-a04f-4975-83a1-edd0255c2bc6">Stock Purchase Contracts</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg
      contextRef="C_dd850d3c-d6df-4d3b-829d-14b433817dbb"
      id="F_756ea3b1-ccd6-4c94-8ee1-819338f4fb34">true</ffd:Rule457rFlg>
    <ffd:FeeRate
      contextRef="C_dd850d3c-d6df-4d3b-829d-14b433817dbb"
      decimals="7"
      id="F_4761754b-536f-461c-bbd9-d4bcf00aecf7"
      unitRef="U_pure">0.0001381</ffd:FeeRate>
    <ffd:OfferingSctyTp
      contextRef="C_dec331d4-798e-45ff-a37a-3e5c544d4db7"
      id="F_b1e66832-e208-47c9-b869-648f0940dd3f">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="C_dec331d4-798e-45ff-a37a-3e5c544d4db7"
      id="F_65a3f35b-3563-4bed-a4ee-843aad2e01d8">Stock Purchase Units</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg
      contextRef="C_dec331d4-798e-45ff-a37a-3e5c544d4db7"
      id="F_b55135a8-7a05-4157-93af-dbfec6488c25">true</ffd:Rule457rFlg>
    <ffd:FeeRate
      contextRef="C_dec331d4-798e-45ff-a37a-3e5c544d4db7"
      decimals="7"
      id="F_3c0a7e65-b241-4a59-b7a1-60deb8fe27de"
      unitRef="U_pure">0.0001381</ffd:FeeRate>
    <ffd:OfferingSctyTp
      contextRef="C_2d9cbf9a-8994-4a76-a83b-cc588e9aa513"
      id="F_7e53273a-c1ca-40ea-9f0e-979408976020">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="C_2d9cbf9a-8994-4a76-a83b-cc588e9aa513"
      id="F_3c328b8a-0975-4d48-ad02-ae82418630a8">Units</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg
      contextRef="C_2d9cbf9a-8994-4a76-a83b-cc588e9aa513"
      id="F_2b5c3197-6f77-4758-8ba4-ae6f30e58b34">true</ffd:Rule457rFlg>
    <ffd:FeeRate
      contextRef="C_2d9cbf9a-8994-4a76-a83b-cc588e9aa513"
      decimals="7"
      id="F_6068b813-9682-498e-b156-f69241511118"
      unitRef="U_pure">0.0001381</ffd:FeeRate>
    <ffd:OfferingSctyTp
      contextRef="C_fdf4f3c8-d1c9-4652-95b8-c9d5fd54e346"
      id="F_64cbc87a-7af9-4471-8fb8-dfeea8040854">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="C_fdf4f3c8-d1c9-4652-95b8-c9d5fd54e346"
      id="F_d2052786-0679-4b4b-8c70-ddb77ddf2e1f">Common Stock, $1 par value per share</ffd:OfferingSctyTitl>
    <ffd:Rule415a6Flg
      contextRef="C_fdf4f3c8-d1c9-4652-95b8-c9d5fd54e346"
      id="F_db066699-6d48-48dc-bcae-60601833a5f8">true</ffd:Rule415a6Flg>
    <ffd:AmtSctiesRegd
      contextRef="C_fdf4f3c8-d1c9-4652-95b8-c9d5fd54e346"
      decimals="0"
      id="F_7687b91a-2781-4e53-9d26-33eb91e75a78"
      unitRef="U_shares">2645252</ffd:AmtSctiesRegd>
    <ffd:MaxAggtOfferingPric
      contextRef="C_fdf4f3c8-d1c9-4652-95b8-c9d5fd54e346"
      decimals="2"
      id="F_2218669a-4bac-4b8b-808d-6e49fc50f034"
      unitRef="U_USD">164323054.24</ffd:MaxAggtOfferingPric>
    <ffd:CfwdFormTp
      contextRef="C_fdf4f3c8-d1c9-4652-95b8-c9d5fd54e346"
      id="F_65a34c8a-38c3-490a-9a57-479d825f06c2">S-3</ffd:CfwdFormTp>
    <ffd:CfwdPrrFileNb
      contextRef="C_fdf4f3c8-d1c9-4652-95b8-c9d5fd54e346"
      id="F_5c661b20-6915-439a-96c6-b5fe5581c096">333-271733</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt
      contextRef="C_fdf4f3c8-d1c9-4652-95b8-c9d5fd54e346"
      id="F_8ce311e9-8fac-452e-90c7-4a755da422b9">2023-05-08</ffd:CfwdPrrFctvDt>
    <ffd:CfwdPrevslyPdFee
      contextRef="C_fdf4f3c8-d1c9-4652-95b8-c9d5fd54e346"
      decimals="2"
      id="F_b7494888-8bb9-44e1-8b59-fffeeef07850"
      unitRef="U_USD">21329.13</ffd:CfwdPrevslyPdFee>
    <ffd:TtlOfferingAmt
      contextRef="C_8d43818f-61be-4c89-beda-5c7f07f524fe"
      decimals="2"
      id="F_876ab6cb-8467-4a0a-ba09-e9f4739744d7"
      unitRef="U_USD">164323054.24</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="C_8d43818f-61be-4c89-beda-5c7f07f524fe"
      decimals="0"
      id="F_79e394e2-83ef-4ec3-a939-1706c165a7c6"
      unitRef="U_USD">0</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt
      contextRef="C_8d43818f-61be-4c89-beda-5c7f07f524fe"
      decimals="0"
      id="F_ac51ad4a-a924-41d9-9e7a-01290e884b7d"
      unitRef="U_USD">0</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt
      contextRef="C_8d43818f-61be-4c89-beda-5c7f07f524fe"
      decimals="0"
      id="F_b8618f92-65a5-46a1-9aab-f9e1fe2fbb84"
      unitRef="U_USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="C_8d43818f-61be-4c89-beda-5c7f07f524fe"
      decimals="0"
      id="F_3c76b3d3-8c9c-47a5-a1cc-40f2230a04ea"
      unitRef="U_USD">0</ffd:NetFeeAmt>
    <ffd:OfferingNote
      contextRef="C_937e8b6e-58bc-4526-a26e-72e0b0d593d6"
      id="F_435b41a4-ac5c-4162-8614-6657d3ee664c">&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;There are being registered hereunder such presently indeterminate (a) number of shares of Common Stock, par value $1 per share, Warrants, Stock Purchase Contracts, Stock Purchase Units and Units and (b) principal amount of Debt Securities of MGE Energy, Inc. and Medium-Term Notes of Madison Gas and Electric Company, as may from time to time be issued at indeterminate prices. This registration statement also covers (i) an indeterminate amount of our securities as may be issued upon conversion of or exchange for, as the case may be, any other securities registered under this registration statement and (ii) an indeterminate number of additional shares of Common Stock which may be issued with respect to such shares of Common Stock in connection with any stock split, stock dividend, reclassifications or similar transactions. Separate consideration may or may not be received for securities that are issuable on exercise, conversion or exchange of other securities.&lt;/span&gt;&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;In accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), the Registrant is deferring payment of all of the registration fees (except as indicated in the table above under &#x201c;Carry Forward Securities&#x201d; and in footnote ** below).&lt;/span&gt;&lt;/p&gt;</ffd:OfferingNote>
    <ffd:OfferingNote
      contextRef="C_424093ea-5e02-48ab-9bed-d52214ce36f8"
      id="F_1017322f-d50a-4859-8b26-5fa740f0e4f5">&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;There are being registered hereunder such presently indeterminate (a) number of shares of Common Stock, par value $1 per share, Warrants, Stock Purchase Contracts, Stock Purchase Units and Units and (b) principal amount of Debt Securities of MGE Energy, Inc. and Medium-Term Notes of Madison Gas and Electric Company, as may from time to time be issued at indeterminate prices. This registration statement also covers (i) an indeterminate amount of our securities as may be issued upon conversion of or exchange for, as the case may be, any other securities registered under this registration statement and (ii) an indeterminate number of additional shares of Common Stock which may be issued with respect to such shares of Common Stock in connection with any stock split, stock dividend, reclassifications or similar transactions. Separate consideration may or may not be received for securities that are issuable on exercise, conversion or exchange of other securities.&lt;/span&gt;&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;In accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), the Registrant is deferring payment of all of the registration fees (except as indicated in the table above under &#x201c;Carry Forward Securities&#x201d; and in footnote ** below).&lt;/span&gt;&lt;/p&gt;</ffd:OfferingNote>
    <ffd:OfferingNote
      contextRef="C_ffc47715-e7ff-4021-a5ed-2437bd7af851"
      id="F_cc59f237-a488-4b99-a29f-139e3034bfd7">&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;There are being registered hereunder such presently indeterminate (a) number of shares of Common Stock, par value $1 per share, Warrants, Stock Purchase Contracts, Stock Purchase Units and Units and (b) principal amount of Debt Securities of MGE Energy, Inc. and Medium-Term Notes of Madison Gas and Electric Company, as may from time to time be issued at indeterminate prices. This registration statement also covers (i) an indeterminate amount of our securities as may be issued upon conversion of or exchange for, as the case may be, any other securities registered under this registration statement and (ii) an indeterminate number of additional shares of Common Stock which may be issued with respect to such shares of Common Stock in connection with any stock split, stock dividend, reclassifications or similar transactions. Separate consideration may or may not be received for securities that are issuable on exercise, conversion or exchange of other securities.&lt;/span&gt;&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;In accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), the Registrant is deferring payment of all of the registration fees (except as indicated in the table above under &#x201c;Carry Forward Securities&#x201d; and in footnote ** below).&lt;/span&gt;&lt;/p&gt;</ffd:OfferingNote>
    <ffd:OfferingNote
      contextRef="C_c5af28a3-998e-41fe-ae5b-378695a62b7f"
      id="F_d2821d10-4c9e-4470-970b-495cda4c06cc">&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;There are being registered hereunder such presently indeterminate (a) number of shares of Common Stock, par value $1 per share, Warrants, Stock Purchase Contracts, Stock Purchase Units and Units and (b) principal amount of Debt Securities of MGE Energy, Inc. and Medium-Term Notes of Madison Gas and Electric Company, as may from time to time be issued at indeterminate prices. This registration statement also covers (i) an indeterminate amount of our securities as may be issued upon conversion of or exchange for, as the case may be, any other securities registered under this registration statement and (ii) an indeterminate number of additional shares of Common Stock which may be issued with respect to such shares of Common Stock in connection with any stock split, stock dividend, reclassifications or similar transactions. Separate consideration may or may not be received for securities that are issuable on exercise, conversion or exchange of other securities.&lt;/span&gt;&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;In accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), the Registrant is deferring payment of all of the registration fees (except as indicated in the table above under &#x201c;Carry Forward Securities&#x201d; and in footnote ** below).&lt;/span&gt;&lt;/p&gt;</ffd:OfferingNote>
    <ffd:OfferingNote
      contextRef="C_dd850d3c-d6df-4d3b-829d-14b433817dbb"
      id="F_a178d076-dfce-43b2-b18a-d04900f409be">&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;There are being registered hereunder such presently indeterminate (a) number of shares of Common Stock, par value $1 per share, Warrants, Stock Purchase Contracts, Stock Purchase Units and Units and (b) principal amount of Debt Securities of MGE Energy, Inc. and Medium-Term Notes of Madison Gas and Electric Company, as may from time to time be issued at indeterminate prices. This registration statement also covers (i) an indeterminate amount of our securities as may be issued upon conversion of or exchange for, as the case may be, any other securities registered under this registration statement and (ii) an indeterminate number of additional shares of Common Stock which may be issued with respect to such shares of Common Stock in connection with any stock split, stock dividend, reclassifications or similar transactions. Separate consideration may or may not be received for securities that are issuable on exercise, conversion or exchange of other securities.&lt;/span&gt;&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;In accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), the Registrant is deferring payment of all of the registration fees (except as indicated in the table above under &#x201c;Carry Forward Securities&#x201d; and in footnote ** below).&lt;/span&gt;&lt;/p&gt;</ffd:OfferingNote>
    <ffd:OfferingNote
      contextRef="C_dec331d4-798e-45ff-a37a-3e5c544d4db7"
      id="F_07ab5054-35f1-4e7b-9301-8e1c8415d365">&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;There are being registered hereunder such presently indeterminate (a) number of shares of Common Stock, par value $1 per share, Warrants, Stock Purchase Contracts, Stock Purchase Units and Units and (b) principal amount of Debt Securities of MGE Energy, Inc. and Medium-Term Notes of Madison Gas and Electric Company, as may from time to time be issued at indeterminate prices. This registration statement also covers (i) an indeterminate amount of our securities as may be issued upon conversion of or exchange for, as the case may be, any other securities registered under this registration statement and (ii) an indeterminate number of additional shares of Common Stock which may be issued with respect to such shares of Common Stock in connection with any stock split, stock dividend, reclassifications or similar transactions. Separate consideration may or may not be received for securities that are issuable on exercise, conversion or exchange of other securities.&lt;/span&gt;&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;In accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), the Registrant is deferring payment of all of the registration fees (except as indicated in the table above under &#x201c;Carry Forward Securities&#x201d; and in footnote ** below).&lt;/span&gt;&lt;/p&gt;</ffd:OfferingNote>
    <ffd:OfferingNote
      contextRef="C_2d9cbf9a-8994-4a76-a83b-cc588e9aa513"
      id="F_811b732f-c6b5-4538-9bf8-00e7539d6684">&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;There are being registered hereunder such presently indeterminate (a) number of shares of Common Stock, par value $1 per share, Warrants, Stock Purchase Contracts, Stock Purchase Units and Units and (b) principal amount of Debt Securities of MGE Energy, Inc. and Medium-Term Notes of Madison Gas and Electric Company, as may from time to time be issued at indeterminate prices. This registration statement also covers (i) an indeterminate amount of our securities as may be issued upon conversion of or exchange for, as the case may be, any other securities registered under this registration statement and (ii) an indeterminate number of additional shares of Common Stock which may be issued with respect to such shares of Common Stock in connection with any stock split, stock dividend, reclassifications or similar transactions. Separate consideration may or may not be received for securities that are issuable on exercise, conversion or exchange of other securities.&lt;/span&gt;&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;In accordance with Rules 456(b) and 457(r) under the Securities Act of 1933, as amended (the "Securities Act"), the Registrant is deferring payment of all of the registration fees (except as indicated in the table above under &#x201c;Carry Forward Securities&#x201d; and in footnote ** below).&lt;/span&gt;&lt;/p&gt;</ffd:OfferingNote>
    <ffd:OfferingNote
      contextRef="C_fdf4f3c8-d1c9-4652-95b8-c9d5fd54e346"
      id="F_ee44973b-f7f3-44a2-ae66-1f97c83e4cf2">&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;Pursuant to Rule 415(a)(6) under the Securities Act of 1933, as amended, this registration statement includes 2,645,252 unsold shares of Common Stock (the &#x201c;Carry Forward Securities&#x201d;) that had been previously registered on the Registrant&#x2019;s registration statement on Form S-3, File No. 333-271733 (the &#x201c;Prior Registration Statement&#x201d;), filed with the U.S. Securities and Exchange Commission (the &#x201c;SEC&#x201d;) on, and effective on, May 8, 2023. The Carry Forward Securities were originally registered on the Registrant&#x2019;s registration statement on Form S-3, File No. 333-238196 (the &#x201c;Original Registration Statement&#x201d;), filed with the SEC on, and effective on, May 12, 2020 and carried forward to the Prior Registration Statement. Pursuant to Rule 415(a)(6) under the Securities Act, the securities registered pursuant to this registration statement include the Carry Forward Securities, and the registration fee totaling $21,329.13 that was previously paid in connection with the Original Registration Statement with respect to the Carry Forward Securities will continue to be applied to the Carry Forward Securities. Pursuant to Rule 415(a)(6), the offering of securities under the Prior Registration Statement will be deemed terminated as of the time of filing of this registration statement.&lt;/span&gt;</ffd:OfferingNote>
</xbrl>
