{
 "instance": {
  "mgee-20211231.htm": {
   "axisCustom": 3,
   "axisStandard": 41,
   "contextCount": 680,
   "dts": {
    "calculationLink": {
     "local": [
      "mgee-20211231_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "mgee-20211231_def.xml"
     ]
    },
    "inline": {
     "local": [
      "mgee-20211231.htm"
     ]
    },
    "labelLink": {
     "local": [
      "mgee-20211231_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "mgee-20211231_pre.xml"
     ]
    },
    "schema": {
     "local": [
      "mgee-20211231.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://xbrl.fasb.org/srt/2021/elts/srt-2021-01-31.xsd",
      "https://xbrl.fasb.org/srt/2021/elts/srt-roles-2021-01-31.xsd",
      "https://xbrl.fasb.org/srt/2021/elts/srt-types-2021-01-31.xsd",
      "https://xbrl.fasb.org/us-gaap/2021/elts/us-gaap-2021-01-31.xsd",
      "https://xbrl.fasb.org/us-gaap/2021/elts/us-roles-2021-01-31.xsd",
      "https://xbrl.fasb.org/us-gaap/2021/elts/us-types-2021-01-31.xsd",
      "https://xbrl.sec.gov/country/2021/country-2021.xsd",
      "https://xbrl.sec.gov/dei/2021q4/dei-2021q4.xsd"
     ]
    }
   },
   "elementCount": 1241,
   "entityCount": 1,
   "hidden": {
    "http://fasb.org/us-gaap/2021-01-31": 46,
    "http://www.mge.com/20211231": 25,
    "http://xbrl.sec.gov/dei/2021q4": 4,
    "total": 75
   },
   "keyCustom": 114,
   "keyStandard": 580,
   "memberCustom": 115,
   "memberStandard": 50,
   "nsprefix": "mgee",
   "nsuri": "http://www.mge.com/20211231",
   "report": {
    "R1": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:EntityRegistrantName",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "document",
     "isDefault": "true",
     "longName": "100000 - Document - Document and Entity Information",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation",
     "shortName": "Document and Entity Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "dei:EntityRegistrantName",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R10": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100120 - Disclosure - New Accounting Standards",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandards",
     "shortName": "New Accounting Standards",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R100": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:NetCashProvidedByUsedInOperatingActivities",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101080 - Disclosure - Schedule I - Condensed Parent Company Finanical Statements (Details-Cash Flow Statement)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement",
     "shortName": "Schedule I - Condensed Parent Company Finanical Statements (Details-Cash Flow Statement)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_1b5bcd90-70fc-4486-b770-894d10fe9ab3",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:NetCashProvidedByUsedInOperatingActivities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R101": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101090 - Disclosure - Schedule I - Condensed Parent Company Finanical Statements (Details-Balance Sheet)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet",
     "shortName": "Schedule I - Condensed Parent Company Finanical Statements (Details-Balance Sheet)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_fa5f78a9-6a9e-4808-ba44-aea946d4a37b",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R102": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShortTermDebtTextBlock",
       "div",
       "us-gaap:ShortTermDebtTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_e2378ad1-cbb3-4fcc-933f-4c873e94fee9",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LineOfCreditFacilityCurrentBorrowingCapacity",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101100 - Disclosure - Schedule I - Condensed Parent Company Finanical Statements (Details-Notes 1)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1",
     "shortName": "Schedule I - Condensed Parent Company Finanical Statements (Details-Notes 1)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": null
    },
    "R103": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_1b5bcd90-70fc-4486-b770-894d10fe9ab3",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101110 - Disclosure - Schedule I - Condensed Parent Company Finanical Statements (Details-Notes 2)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
     "shortName": "Schedule I - Condensed Parent Company Finanical Statements (Details-Notes 2)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_1b5bcd90-70fc-4486-b770-894d10fe9ab3",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R104": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "srt:ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_49233e51-1dd9-459c-8e02-762fb1bf5381",
      "decimals": "0",
      "first": true,
      "lang": null,
      "name": "us-gaap:ValuationAllowancesAndReservesBalance",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101120 - Disclosure - Schedule II - Valuation and Qualifying Accounts (Details)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails",
     "shortName": "Schedule II - Valuation and Qualifying Accounts (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "srt:ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_c4a3fe80-bd25-466d-856e-e14e75f20880",
      "decimals": "0",
      "lang": null,
      "name": "us-gaap:ValuationAllowancesAndReservesBalance",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R11": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "mgee:VariableInterestEntitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100130 - Disclosure - Variable Interest Entities",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntities",
     "shortName": "Variable Interest Entities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "mgee:VariableInterestEntitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R12": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100140 - Disclosure - Property, Plant, and Equipment",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipment",
     "shortName": "Property, Plant, and Equipment",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R13": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "mgee:LeasesOfLesseeDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100150 - Disclosure - Leases",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_Leases",
     "shortName": "Leases",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "mgee:LeasesOfLesseeDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R14": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "mgee:JointlyOwnedUtilityPlantInterestsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100160 - Disclosure - Joint Plant Ownership",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnership",
     "shortName": "Joint Plant Ownership",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "mgee:JointlyOwnedUtilityPlantInterestsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R15": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "mgee:InvestmentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100170 - Disclosure - Investments",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_Investments",
     "shortName": "Investments",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "mgee:InvestmentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R16": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100190 - Disclosure - Regulatory Assets and Liabilities",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_RegulatoryAssetsAndLiabilities",
     "shortName": "Regulatory Assets and Liabilities",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R17": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PublicUtilitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100200 - Disclosure - Rate Matters",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMatters",
     "shortName": "Rate Matters",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PublicUtilitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R18": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100210 - Disclosure - Income Taxes",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxes",
     "shortName": "Income Taxes",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:IncomeTaxDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R19": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100220 - Disclosure - Pension Plans and Other Postretirement Benefits",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefits",
     "shortName": "Pension Plans and Other Postretirement Benefits",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R2": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RegulatedOperatingRevenueElectricNonNuclear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100010 - Statement - Consolidated Statements of Income",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
     "shortName": "Consolidated Statements of Income",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RegulatedOperatingRevenueElectricNonNuclear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R20": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100230 - Disclosure - Share-Based Compensation",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensation",
     "shortName": "Share-Based Compensation",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R21": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ShortTermDebtTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100240 - Disclosure - Notes Payable to Banks, Commercial Paper, and Lines of Credit",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCredit",
     "shortName": "Notes Payable to Banks, Commercial Paper, and Lines of Credit",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ShortTermDebtTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R22": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LongTermDebtTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100250 - Disclosure - Long-Term Debt",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebt",
     "shortName": "Long-Term Debt",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LongTermDebtTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R23": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100260 - Disclosure - Common Equity",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquity",
     "shortName": "Common Equity",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R24": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsContingenciesAndGuaranteesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100270 - Disclosure - Commitments and Contingencies",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingencies",
     "shortName": "Commitments and Contingencies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CommitmentsContingenciesAndGuaranteesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R25": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AssetRetirementObligationDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100280 - Disclosure - Asset Retirement Obligations",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligations",
     "shortName": "Asset Retirement Obligations",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:AssetRetirementObligationDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R26": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100290 - Disclosure - Derivative and Hedging Instruments",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstruments",
     "shortName": "Derivative and Hedging Instruments",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R27": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100300 - Disclosure - Fair Value of Financial Instruments",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstruments",
     "shortName": "Fair Value of Financial Instruments",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueDisclosuresTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R28": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RevenueFromContractWithCustomerTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100310 - Disclosure - Revenue",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_Revenue",
     "shortName": "Revenue",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:RevenueFromContractWithCustomerTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R29": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_f112e049-29ed-4b4a-b7fc-5c0b7b6aed86",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:MinorityInterestDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100320 - Disclosure - Noncontrolling Interest",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterest",
     "shortName": "Noncontrolling Interest",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_f112e049-29ed-4b4a-b7fc-5c0b7b6aed86",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:MinorityInterestDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R3": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ProfitLoss",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100040 - Statement - Consolidated Statements of Cash Flows",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
     "shortName": "Consolidated Statements of Cash Flows",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DeferredIncomeTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R30": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100330 - Disclosure - Segment Information",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_DisclosureSegmentInformation",
     "shortName": "Segment Information",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SegmentReportingDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R31": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100350 - Disclosure - Condensed Parent Company Financial Statements",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_DisclosureCondensedParentCompanyFinancialStatements",
     "shortName": "Condensed Parent Company Financial Statements",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R32": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100370 - Disclosure - Valuation and Qualifying Accounts",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_DisclosureValuationAndQualifyingAccounts",
     "shortName": "Valuation and Qualifying Accounts",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R33": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100380 - Disclosure - Significant Accounting Policies (Policies)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies",
     "shortName": "Significant Accounting Policies (Policies)",
     "subGroupType": "policies",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:BasisOfAccountingPolicyPolicyTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R34": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "mgee:Cashcashequivalentsandrestrictedcashtabletextblock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100390 - Disclosure - Summary of Significant Accounting Policies (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesTables",
     "shortName": "Summary of Significant Accounting Policies (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "mgee:Cashcashequivalentsandrestrictedcashtabletextblock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R35": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "mgee:VariableInterestEntitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfVariableInterestEntitiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100400 - Disclosure - Variable Interest Entities (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesTables",
     "shortName": "Variable Interest Entities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "mgee:VariableInterestEntitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfVariableInterestEntitiesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R36": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100410 - Disclosure - Property, Plant, and Equipment (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentTables",
     "shortName": "Property, Plant, and Equipment (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:PropertyPlantAndEquipmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R37": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "mgee:LeasesOfLesseeDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LeaseCostTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100420 - Disclosure - Leases (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesTables",
     "shortName": "Leases (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "mgee:LeasesOfLesseeDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:LeaseCostTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R38": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "mgee:JointlyOwnedUtilityPlantInterestsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfJointlyOwnedUtilityPlantsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100430 - Disclosure - Joint Plant Ownership (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipTables",
     "shortName": "Joint Plant Ownership (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "mgee:JointlyOwnedUtilityPlantInterestsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfJointlyOwnedUtilityPlantsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R39": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "mgee:InvestmentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "mgee:EquityMethodAndOtherInvestmentsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100440 - Disclosure - Investments (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsTables",
     "shortName": "Investments (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "mgee:InvestmentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "mgee:EquityMethodAndOtherInvestmentsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R4": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100060 - Statement - Consolidated Balance Sheets",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
     "shortName": "Consolidated Balance Sheets",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AccountsReceivableNetCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R40": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "mgee:ScheduleOfRegulatoryAssetsAndLiabilitiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100450 - Disclosure - Regulatory Assets and Liabilities (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_RegulatoryAssetsAndLiabilitiesTables",
     "shortName": "Regulatory Assets and Liabilities (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "mgee:ScheduleOfRegulatoryAssetsAndLiabilitiesTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R41": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100460 - Disclosure - Income Taxes (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesTables",
     "shortName": "Income Taxes (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R42": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ChangesInProjectedBenefitObligationsFairValueOfPlanAssetsAndFundedStatusOfPlanTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100470 - Disclosure - Pension Plans and Other Postretirement Benefits (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables",
     "shortName": "Pension Plans and Other Postretirement Benefits (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ChangesInProjectedBenefitObligationsFairValueOfPlanAssetsAndFundedStatusOfPlanTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R43": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_355d19f7-4bf7-4fd3-b356-7ed47ff52d1a",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100480 - Disclosure - Share-Based Compensation (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensationTables",
     "shortName": "Share-Based Compensation (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_355d19f7-4bf7-4fd3-b356-7ed47ff52d1a",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R44": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:ShortTermDebtTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfShortTermDebtTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100490 - Disclosure - Notes Payable to Banks, Commercial Paper, and Lines of Credit (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditTables",
     "shortName": "Notes Payable to Banks, Commercial Paper, and Lines of Credit (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:ShortTermDebtTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfShortTermDebtTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R45": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:LongTermDebtTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100500 - Disclosure - Long-Term Debt (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtTables",
     "shortName": "Long-Term Debt (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:LongTermDebtTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R46": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:CommitmentsContingenciesAndGuaranteesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:ContractualObligationFiscalYearMaturityScheduleTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100510 - Disclosure - Commitments and Contingencies (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesTables",
     "shortName": "Commitments and Contingencies (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:CommitmentsContingenciesAndGuaranteesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "srt:ContractualObligationFiscalYearMaturityScheduleTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R47": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:AssetRetirementObligationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfChangeInAssetRetirementObligationTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100520 - Disclosure - Asset Retirement Obligations (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsTables",
     "shortName": "Asset Retirement Obligations (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:AssetRetirementObligationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfChangeInAssetRetirementObligationTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R48": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100530 - Disclosure - Derivative and Hedging Instruments (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsTables",
     "shortName": "Derivative and Hedging Instruments (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R49": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100540 - Disclosure - Fair Value of Financial Instruments (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsTables",
     "shortName": "Fair Value of Financial Instruments (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FairValueByBalanceSheetGroupingTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R5": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AllowanceForDoubtfulAccountsReceivableCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100070 - Statement - Consolidated Balance Sheets (Parentheticals)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals",
     "shortName": "Consolidated Balance Sheets (Parentheticals)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AllowanceForDoubtfulAccountsReceivableCurrent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R50": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisaggregationOfRevenueTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100550 - Disclosure - Revenue (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueTables",
     "shortName": "Revenue (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:DisaggregationOfRevenueTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R51": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:MinorityInterestDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_f112e049-29ed-4b4a-b7fc-5c0b7b6aed86",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "mgee:NoncontrollingInterestBalanceSheetTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100560 - Disclosure - Noncontrolling Interest (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestTables",
     "shortName": "Noncontrolling Interest (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:MinorityInterestDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_f112e049-29ed-4b4a-b7fc-5c0b7b6aed86",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "mgee:NoncontrollingInterestBalanceSheetTableTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R52": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100570 - Disclosure - Segment Information (Tables)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationTables",
     "shortName": "Segment Information (Tables)",
     "subGroupType": "tables",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R53": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:ReceivablesPolicyTextBlock",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "mgee:AccountsReceivableLatePaymentChargeOnUnpaidReceivables",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100580 - Disclosure - Summary of Significant Accounting Policies (Details-1)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
     "shortName": "Summary of Significant Accounting Policies (Details-1)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:ReceivablesPolicyTextBlock",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "mgee:AccountsReceivableLatePaymentChargeOnUnpaidReceivables",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R54": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100590 - Disclosure - Summary of Significant Accounting Policies (Details-2)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2",
     "shortName": "Summary of Significant Accounting Policies (Details-2)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:Cashcashequivalentsandrestrictedcashtabletextblock",
       "div",
       "us-gaap:SignificantAccountingPoliciesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:RestrictedCashAndCashEquivalentsAtCarryingValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R55": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "mgee:PropertyPlantAndEquipmentNetBeforeConstructionInProgress",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100610 - Disclosure - Variable Interest Entities (Details)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails",
     "shortName": "Variable Interest Entities (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "mgee:VariableInterestEntitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "INF",
      "lang": null,
      "name": "mgee:VariableInterestEntityPurchasePowerAgreementPlantCapacityOther",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_MW",
      "xsiNil": "false"
     }
    },
    "R56": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PublicUtilitiesPropertyPlantAndEquipmentPresentValueOfRegulatedAssetForPlantAbandonment",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100620 - Disclosure - Property, Plant, and Equipment (Details)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
     "shortName": "Property, Plant, and Equipment (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_87174ff8-5ebe-4204-8aee-ff9c49f7dfc9",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:PublicUtilitiesPropertyPlantAndEquipmentAmountOfLossRecoveryOnPlantAbandonment",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R57": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LeaseCostTableTextBlock",
       "div",
       "mgee:LeasesOfLesseeDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinanceLeaseRightOfUseAssetAmortization",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100630 - Disclosure - Leases (Details-1)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails1",
     "shortName": "Leases (Details-1)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LeaseCostTableTextBlock",
       "div",
       "mgee:LeasesOfLesseeDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinanceLeaseRightOfUseAssetAmortization",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R58": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:LeaseBalanceSheetTableTextBlock",
       "div",
       "mgee:LeasesOfLesseeDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinanceLeaseRightOfUseAsset",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100640 - Disclosure - Leases (Details-2)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2",
     "shortName": "Leases (Details-2)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:LeaseBalanceSheetTableTextBlock",
       "div",
       "mgee:LeasesOfLesseeDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinanceLeaseRightOfUseAsset",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R59": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:OtherFinancialInformationTableTextBlock",
       "div",
       "mgee:LeasesOfLesseeDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinanceLeasePrincipalPayments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100650 - Disclosure - Leases (Details-3)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails3",
     "shortName": "Leases (Details-3)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:OtherFinancialInformationTableTextBlock",
       "div",
       "mgee:LeasesOfLesseeDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinanceLeasePrincipalPayments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R6": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_6b1615b6-9753-4563-9137-b22e9927532e",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:SharesIssued",
      "reportCount": 1,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100080 - Statement - MGE Energy Inc Consolidated Statements of Common Equity",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
     "shortName": "MGE Energy Inc Consolidated Statements of Common Equity",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_6b1615b6-9753-4563-9137-b22e9927532e",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:StockholdersEquity",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R60": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:WeightedAverageAndDiscountRateTableTextBlock",
       "div",
       "mgee:LeasesOfLesseeDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinanceLeaseWeightedAverageRemainingLeaseTerm1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100660 - Disclosure - Leases (Details-4)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails4",
     "shortName": "Leases (Details-4)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:WeightedAverageAndDiscountRateTableTextBlock",
       "div",
       "mgee:LeasesOfLesseeDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:FinanceLeaseWeightedAverageRemainingLeaseTerm1",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R61": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:FinanceLeaseLiabilityMaturityTableTextBlock",
       "div",
       "mgee:LeasesOfLesseeDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinanceLeaseLiabilityPaymentsDueNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100670 - Disclosure - Leases (Details-5)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5",
     "shortName": "Leases (Details-5)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
       "div",
       "us-gaap:FinanceLeaseLiabilityMaturityTableTextBlock",
       "div",
       "mgee:LeasesOfLesseeDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FinanceLeaseLiabilityPaymentsDueNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R62": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:PropertyPlantAndEquipmentTextBlock",
       "div",
       "us-gaap:PropertyPlantAndEquipmentDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PublicUtilitiesPropertyPlantAndEquipmentPresentValueOfRegulatedAssetForPlantAbandonment",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100680 - Disclosure - Joint Plant Ownership (Details)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
     "shortName": "Joint Plant Ownership (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfJointlyOwnedUtilityPlantsTextBlock",
       "div",
       "mgee:JointlyOwnedUtilityPlantInterestsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_1a685cb1-2a55-4a95-a884-f1eac9c882d0",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:JointlyOwnedUtilityPlantGrossOwnershipAmountOfPlantInService",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R63": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:EquityMethodAndOtherInvestmentsTableTextBlock",
       "div",
       "mgee:InvestmentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:EquitySecuritiesFvNiAndWithoutReadilyDeterminableFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100690 - Disclosure - Investments (Details-1)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1",
     "shortName": "Investments (Details-1)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:EquityMethodAndOtherInvestmentsTableTextBlock",
       "div",
       "mgee:InvestmentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:EquitySecuritiesFvNiAndWithoutReadilyDeterminableFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R64": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:IncomeLossFromEquityMethodInvestments",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100700 - Disclosure - Investments (Details-2)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
     "shortName": "Investments (Details-2)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "mgee:InvestmentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_8a955fcf-9391-4b5b-8808-5936452b206c",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:IncomeLossFromEquityMethodInvestments",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R65": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AssetsCurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100710 - Disclosure - Investments (Details-3)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3",
     "shortName": "Investments (Details-3)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "mgee:InvestmentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_f609c25e-b3b5-48aa-a506-00ce809ce5bf",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:Revenues",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R66": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "ix:continuation",
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_a75eff0d-eddd-459c-97ce-102cf9e2a1b6",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100720 - Disclosure - Investments (Details-4)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails4",
     "shortName": "Investments (Details-4)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "ix:continuation",
       "span",
       "p",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_a75eff0d-eddd-459c-97ce-102cf9e2a1b6",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R67": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:ScheduleOfRegulatoryAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RegulatoryAssets",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100730 - Disclosure - Regulatory Assets and Liabilities - Regulatory Assets (Details-1)",
     "role": "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
     "shortName": "Regulatory Assets and Liabilities - Regulatory Assets (Details-1)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:ScheduleOfRegulatoryAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RegulatoryAssets",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R68": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:ScheduleOfRegulatoryAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RegulatoryLiabilities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100740 - Disclosure - Regulatory Assets and Liabilities - Regulatory Liabilities (Details-2)",
     "role": "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2",
     "shortName": "Regulatory Assets and Liabilities - Regulatory Liabilities (Details-2)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:ScheduleOfRegulatoryAssetsAndLiabilitiesTableTextBlock",
       "div",
       "us-gaap:ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RegulatoryLiabilities",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R69": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:PublicUtilitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "mgee:Deferredfuelrulesmonitoredcosts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100750 - Disclosure - Rate Matters (Details)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails",
     "shortName": "Rate Matters (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:PublicUtilitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "mgee:Deferredfuelrulesmonitoredcosts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R7": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:CommonStockDividendsPerShareCashPaid",
      "reportCount": 1,
      "unitRef": "U_UnitedStatesOfAmericaDollarsShare",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100090 - Statement - MGE Energy Inc - Consolidated Statements of Common Equity (Parentheticals)",
     "role": "http://www.mge.com/20211231/taxonomy/role/StatementMgeEnergyIncConsolidatedStatementsOfCommonEquityParentheticals",
     "shortName": "MGE Energy Inc - Consolidated Statements of Common Equity (Parentheticals)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": null
    },
    "R70": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CurrentFederalTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100760 - Disclosure - Income Taxes (Details)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
     "shortName": "Income Taxes (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
       "div",
       "us-gaap:IncomeTaxDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:CurrentFederalTaxExpenseBenefit",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R71": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedContributionPlanCostRecognized",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100770 - Disclosure - Pension Plans and Other Postretirement Benefits (Details-1)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
     "shortName": "Pension Plans and Other Postretirement Benefits (Details-1)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedContributionPlanCostRecognized",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R72": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "mgee:DefinedBenefitPlanDeferredNetPeriodicBenefitCosts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100780 - Disclosure - Pension Plans and Other Postretirement Benefits (Details-2)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2",
     "shortName": "Pension Plans and Other Postretirement Benefits (Details-2)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "us-gaap:ScheduleOfNetBenefitCostsTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "mgee:DefinedBenefitPlanDeferredNetPeriodicBenefitCosts",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R73": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAssumptionsUsedTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2f5e62d5-5b85-41da-bbd3-b6b83d32c551",
      "decimals": "4",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100790 - Disclosure - Pension Plans and Other Postretirement Benefits (Details-3)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3",
     "shortName": "Pension Plans and Other Postretirement Benefits (Details-3)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAssumptionsUsedTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2f5e62d5-5b85-41da-bbd3-b6b83d32c551",
      "decimals": "4",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R74": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanFairValueOfPlanAssets",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100800 - Disclosure - Pension Plans and Other Postretirement Benefits (Details-4)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
     "shortName": "Pension Plans and Other Postretirement Benefits (Details-4)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfAllocationOfPlanAssetsTableTextBlock",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2f5e62d5-5b85-41da-bbd3-b6b83d32c551",
      "decimals": "3",
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanPlanAssetsTargetAllocationPercentage",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R75": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanFairValueOfPlanAssets",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100810 - Disclosure - Pension Plans and Other Postretirement Benefits (Details-5)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5",
     "shortName": "Pension Plans and Other Postretirement Benefits (Details-5)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_a675dcc9-44a6-431c-b853-fa459ada74f2",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanFairValueOfPlanAssets",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R76": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100820 - Disclosure - Pension Plans and Other Postretirement Benefits (Details-6)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6",
     "shortName": "Pension Plans and Other Postretirement Benefits (Details-6)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R77": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100830 - Disclosure - Share-Based Compensation (Details)",
     "role": "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
     "shortName": "Share-Based Compensation (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:AllocatedShareBasedCompensationExpense",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R78": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:ShortTermBorrowings",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100840 - Disclosure - Notes Payable to Banks, Commercial Paper, and Lines of Credit (Details)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
     "shortName": "Notes Payable to Banks, Commercial Paper, and Lines of Credit (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfShortTermDebtTextBlock",
       "div",
       "us-gaap:ShortTermDebtTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:LettersOfCreditOutstandingAmount",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R79": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LongTermDebtCurrent",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100850 - Disclosure - Long-Term Debt (Details-1)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
     "shortName": "Long-Term Debt (Details-1)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
       "div",
       "us-gaap:LongTermDebtTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_9e3b0819-8f1e-4f21-b414-df9302256651",
      "decimals": "4",
      "lang": null,
      "name": "us-gaap:DebtInstrumentInterestRateStatedPercentage",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R8": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_6b1615b6-9753-4563-9137-b22e9927532e",
      "decimals": "INF",
      "first": true,
      "lang": null,
      "name": "us-gaap:SharesIssued",
      "reportCount": 1,
      "unitRef": "U_shares",
      "xsiNil": "false"
     },
     "groupType": "statement",
     "isDefault": "false",
     "longName": "100100 - Statement - Madison Gas and Electric Company Consolidated Statements of Equity",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity",
     "shortName": "Madison Gas and Electric Company Consolidated Statements of Equity",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_4d348155-363b-4b5f-a507-8ec4568b78a1",
      "decimals": "INF",
      "lang": null,
      "name": "us-gaap:SharesIssued",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R80": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
       "div",
       "us-gaap:LongTermDebtTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100860 - Disclosure - Long-Term Debt (Details-2)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails2",
     "shortName": "Long-Term Debt (Details-2)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
       "div",
       "us-gaap:LongTermDebtTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R81": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DividendsCommonStockCash",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100870 - Disclosure - Common Equity (Details)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails",
     "shortName": "Common Equity (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:StockholdersEquityNoteDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "INF",
      "lang": null,
      "name": "mgee:StockIssuedDuringPeriodUnderTheStockPlan",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_shares",
      "xsiNil": "false"
     }
    },
    "R82": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:CommitmentsContingenciesAndGuaranteesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_1a685cb1-2a55-4a95-a884-f1eac9c882d0",
      "decimals": "-6",
      "first": true,
      "lang": null,
      "name": "mgee:ProjectedCostsForEnvironmentalRegulation",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100880 - Disclosure - Commitments and Contingencies (Details-1)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
     "shortName": "Commitments and Contingencies (Details-1)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:CommitmentsContingenciesAndGuaranteesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_1a685cb1-2a55-4a95-a884-f1eac9c882d0",
      "decimals": "-6",
      "first": true,
      "lang": null,
      "name": "mgee:ProjectedCostsForEnvironmentalRegulation",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R83": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "srt:ContractualObligationFiscalYearMaturityScheduleTableTextBlock",
       "div",
       "us-gaap:CommitmentsContingenciesAndGuaranteesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PurchaseObligationDueInNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100890 - Disclosure - Commitments and Contingencies (Details-2)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2",
     "shortName": "Commitments and Contingencies (Details-2)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "srt:ContractualObligationFiscalYearMaturityScheduleTableTextBlock",
       "div",
       "us-gaap:CommitmentsContingenciesAndGuaranteesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:PurchaseObligationDueInNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R84": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OtherCommitmentsTableTextBlock",
       "div",
       "us-gaap:CommitmentsContingenciesAndGuaranteesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OtherCommitmentDueInNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100900 - Disclosure - Commitments and Contingencies (Details-3)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3",
     "shortName": "Commitments and Contingencies (Details-3)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OtherCommitmentsTableTextBlock",
       "div",
       "us-gaap:CommitmentsContingenciesAndGuaranteesTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:OtherCommitmentDueInNextTwelveMonths",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R85": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfChangeInAssetRetirementObligationTableTextBlock",
       "div",
       "us-gaap:AssetRetirementObligationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_49233e51-1dd9-459c-8e02-762fb1bf5381",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:AssetRetirementObligation",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100910 - Disclosure - Asset Retirement Obligations (Details)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
     "shortName": "Asset Retirement Obligations (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfChangeInAssetRetirementObligationTableTextBlock",
       "div",
       "us-gaap:AssetRetirementObligationDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_bb5dafa2-3fba-479f-93ee-d222a02c5872",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:AssetRetirementObligation",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R86": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPositionTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_837ebd15-4794-4ea4-bf82-0e46ffaba954",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeFairValueOfDerivativeNet",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100920 - Disclosure - Derivative and Hedging Instruments (Details-1)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
     "shortName": "Derivative and Hedging Instruments (Details-1)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_a3cebf92-2af4-4fae-b547-57f77a7c383e",
      "decimals": "-5",
      "lang": null,
      "name": "us-gaap:DerivativeFairValueOfDerivativeNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R87": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeAssetCollateralObligationToReturnCashOffset",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100930 - Disclosure - Derivative and Hedging Instruments (Details-2)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
     "shortName": "Derivative and Hedging Instruments (Details-2)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OffsettingAssetsTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_635f71db-4ad7-4473-80df-af6b386f1676",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DerivativeAssetFairValueGrossLiability",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R88": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OffsettingLiabilitiesTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_635f71db-4ad7-4473-80df-af6b386f1676",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeFairValueOfDerivativeLiability",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100940 - Disclosure - Derivative and Hedging Instruments (Details-3)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
     "shortName": "Derivative and Hedging Instruments (Details-3)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:OffsettingLiabilitiesTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_635f71db-4ad7-4473-80df-af6b386f1676",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DerivativeLiabilityFairValueGrossAsset",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R89": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPositionTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_31a9c9d9-355d-4203-a31a-0eb23e96c06c",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeFairValueOfDerivativeNet",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100950 - Disclosure - Derivative and Hedging Instruments (Details-4)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4",
     "shortName": "Derivative and Hedging Instruments (Details-4)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPositionTableTextBlock",
       "div",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_e07c8719-e9f9-40f4-9dad-916dc129190e",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DerivativeFairValueOfDerivativeNet",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R9": {
     "firstAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100110 - Disclosure - Summary of Significant Accounting Policies",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPolicies",
     "shortName": "Summary of Significant Accounting Policies",
     "subGroupType": "",
     "uniqueAnchor": {
      "ancestors": [
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": null,
      "first": true,
      "lang": "en-US",
      "name": "us-gaap:SignificantAccountingPoliciesTextBlock",
      "reportCount": 1,
      "unique": true,
      "unitRef": null,
      "xsiNil": "false"
     }
    },
    "R90": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeNetLiabilityPositionAggregateFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100960 - Disclosure - Derivative and Hedging Instruments (Details-5)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5",
     "shortName": "Derivative and Hedging Instruments (Details-5)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "us-gaap:DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeNetLiabilityPositionAggregateFairValue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R91": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfDebtInstrumentsTextBlock",
       "div",
       "us-gaap:LongTermDebtTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100970 - Disclosure - Fair Value of Financial Instruments (Details-1)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1",
     "shortName": "Fair Value of Financial Instruments (Details-1)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_ce958251-0a16-4b15-b0bc-f4c94239d185",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:CashAndCashEquivalentsFairValueDisclosure",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R92": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_2e189553-8246-4c91-820d-f80c4e2bcb22",
      "decimals": "-5",
      "first": true,
      "lang": null,
      "name": "us-gaap:DerivativeAssetCollateralObligationToReturnCashOffset",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100980 - Disclosure - Fair Value of Financial Instruments (Details-2)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2",
     "shortName": "Fair Value of Financial Instruments (Details-2)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_76600d56-b6c7-46b2-aea8-1a84aaed5724",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:DerivativeAssets",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R93": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "mgee:FairValueInputsDeliveryPointsBasisAdjustmentOnPeak",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "100990 - Disclosure - Fair Value of Financial Instruments (Details-3)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3",
     "shortName": "Fair Value of Financial Instruments (Details-3)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
       "div",
       "ix:continuation",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "3",
      "first": true,
      "lang": null,
      "name": "mgee:FairValueInputsDeliveryPointsBasisAdjustmentOnPeak",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R94": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_49233e51-1dd9-459c-8e02-762fb1bf5381",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101000 - Disclosure - Fair Value of Financial Instruments (Details-4)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4",
     "shortName": "Fair Value of Financial Instruments (Details-4)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_c4a3fe80-bd25-466d-856e-e14e75f20880",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R95": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101010 - Disclosure - Fair Value of Financial Instruments (Details-5)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5",
     "shortName": "Fair Value of Financial Instruments (Details-5)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "mgee:FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
       "div",
       "us-gaap:FairValueDisclosuresTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R96": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DisaggregationOfRevenueTableTextBlock",
       "div",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_f53d5546-afae-42a3-8968-3f6bd38d9b33",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RevenueFromContractWithCustomerIncludingAssessedTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101020 - Disclosure - Revenue (Details-1)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1",
     "shortName": "Revenue (Details-1)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:DisaggregationOfRevenueTableTextBlock",
       "div",
       "us-gaap:RevenueFromContractWithCustomerTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_f53d5546-afae-42a3-8968-3f6bd38d9b33",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RevenueFromContractWithCustomerIncludingAssessedTax",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R97": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "mgee:NoncontrollingInterestNetIncomeTableTextBlock",
       "div",
       "us-gaap:MinorityInterestDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_5b5a3c89-0dbd-4635-8fbe-47dbf2cf1d0d",
      "decimals": "2",
      "first": true,
      "lang": null,
      "name": "us-gaap:MinorityInterestOwnershipPercentageByParent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101030 - Disclosure - Noncontrolling Interest (Details)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
     "shortName": "Noncontrolling Interest (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "link:footnote",
       "div",
       "div",
       "mgee:NoncontrollingInterestNetIncomeTableTextBlock",
       "div",
       "us-gaap:MinorityInterestDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_5b5a3c89-0dbd-4635-8fbe-47dbf2cf1d0d",
      "decimals": "2",
      "first": true,
      "lang": null,
      "name": "us-gaap:MinorityInterestOwnershipPercentageByParent",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_pure",
      "xsiNil": "false"
     }
    },
    "R98": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:RegulatedAndUnregulatedOperatingRevenue",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101040 - Disclosure - Segment Information (Details)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails",
     "shortName": "Segment Information (Details)",
     "subGroupType": "details",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:ScheduleOfSegmentReportingInformationBySegmentTextBlock",
       "div",
       "us-gaap:SegmentReportingDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_027f7547-4c75-4f74-b8d7-3e799c65c6a0",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:RegulatedAndUnregulatedOperatingRevenue",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    },
    "R99": {
     "firstAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_130ec4bc-d56e-4905-83f3-0f30ab42516d",
      "decimals": "-3",
      "first": true,
      "lang": null,
      "name": "us-gaap:UtilitiesOperatingExpenseMaintenanceAndOperations",
      "reportCount": 1,
      "unitRef": "U_USD",
      "xsiNil": "false"
     },
     "groupType": "disclosure",
     "isDefault": "false",
     "longName": "101060 - Disclosure - Schedule I - Condensed Parent Company Finanical Statements (Details-Comprehensive Income Statement)",
     "role": "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
     "shortName": "Schedule I - Condensed Parent Company Finanical Statements (Details-Comprehensive Income Statement)",
     "subGroupType": "parenthetical",
     "uniqueAnchor": {
      "ancestors": [
       "span",
       "p",
       "td",
       "tr",
       "table",
       "us-gaap:CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
       "div",
       "body",
       "html"
      ],
      "baseRef": "mgee-20211231.htm",
      "contextRef": "C_1b5bcd90-70fc-4486-b770-894d10fe9ab3",
      "decimals": "-3",
      "lang": null,
      "name": "us-gaap:UtilitiesOperatingExpenseMaintenanceAndOperations",
      "reportCount": 1,
      "unique": true,
      "unitRef": "U_USD",
      "xsiNil": "false"
     }
    }
   },
   "segmentCount": 171,
   "tag": {
    "dei_AmendmentFlag": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission.",
        "label": "Amendment Flag"
       }
      }
     },
     "localname": "AmendmentFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_AuditorFirmId": {
     "auth_ref": [
      "r959",
      "r960",
      "r961"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "PCAOB issued Audit Firm Identifier",
        "label": "Auditor Firm ID"
       }
      }
     },
     "localname": "AuditorFirmId",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "nonemptySequenceNumberItemType"
    },
    "dei_AuditorLocation": {
     "auth_ref": [
      "r959",
      "r960",
      "r961"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Location"
       }
      }
     },
     "localname": "AuditorLocation",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "internationalNameItemType"
    },
    "dei_AuditorName": {
     "auth_ref": [
      "r959",
      "r960",
      "r961"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Name"
       }
      }
     },
     "localname": "AuditorName",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "internationalNameItemType"
    },
    "dei_CityAreaCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Area code of city",
        "label": "City Area Code"
       }
      }
     },
     "localname": "CityAreaCode",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_CurrentFiscalYearEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "End date of current fiscal year in the format --MM-DD.",
        "label": "Current Fiscal Year End Date"
       }
      }
     },
     "localname": "CurrentFiscalYearEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "gMonthDayItemType"
    },
    "dei_DocumentAnnualReport": {
     "auth_ref": [
      "r959",
      "r960",
      "r961"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as an annual report.",
        "label": "Document Annual Report"
       }
      }
     },
     "localname": "DocumentAnnualReport",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentFiscalPeriodFocus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3.  1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY.",
        "label": "Document Fiscal Period Focus"
       }
      }
     },
     "localname": "DocumentFiscalPeriodFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "fiscalPeriodItemType"
    },
    "dei_DocumentFiscalYearFocus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006.",
        "label": "Document Fiscal Year Focus"
       }
      }
     },
     "localname": "DocumentFiscalYearFocus",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "gYearItemType"
    },
    "dei_DocumentPeriodEndDate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period.  The format of the date is YYYY-MM-DD.",
        "label": "Document Period End Date"
       }
      }
     },
     "localname": "DocumentPeriodEndDate",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "dateItemType"
    },
    "dei_DocumentTransitionReport": {
     "auth_ref": [
      "r962"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true only for a form used as a transition report.",
        "label": "Document Transition Report"
       }
      }
     },
     "localname": "DocumentTransitionReport",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_DocumentType": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'.",
        "label": "Document Type"
       }
      }
     },
     "localname": "DocumentType",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "submissionTypeItemType"
    },
    "dei_DocumentsIncorporatedByReferenceTextBlock": {
     "auth_ref": [
      "r957"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Documents incorporated by reference.",
        "label": "Documents Incorporated by Reference [Text Block]",
        "terseLabel": "Documents Incorporated By Reference"
       }
      }
     },
     "localname": "DocumentsIncorporatedByReferenceTextBlock",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "dei_EntityAddressAddressLine1": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name",
        "label": "Entity Address Address Line 1"
       }
      }
     },
     "localname": "EntityAddressAddressLine1",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressCityOrTown": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the City or Town",
        "label": "Entity Address City Or Town"
       }
      }
     },
     "localname": "EntityAddressCityOrTown",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressCountry": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ISO 3166-1 alpha-2 country code.",
        "label": "Entity Address Country"
       }
      }
     },
     "localname": "EntityAddressCountry",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "countryCodeItemType"
    },
    "dei_EntityAddressPostalZipCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Code for the postal or zip code",
        "label": "Entity Address Postal Zip Code"
       }
      }
     },
     "localname": "EntityAddressPostalZipCode",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityAddressStateOrProvince": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the state or province.",
        "label": "Entity Address State Or Province"
       }
      }
     },
     "localname": "EntityAddressStateOrProvince",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "stateOrProvinceItemType"
    },
    "dei_EntityCentralIndexKey": {
     "auth_ref": [
      "r956"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK.",
        "label": "Entity Central Index Key"
       }
      }
     },
     "localname": "EntityCentralIndexKey",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "centralIndexKeyItemType"
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument.",
        "label": "Entity Common Stock Shares Outstanding"
       }
      }
     },
     "localname": "EntityCommonStockSharesOutstanding",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "sharesItemType"
    },
    "dei_EntityCurrentReportingStatus": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Current Reporting Status"
       }
      }
     },
     "localname": "EntityCurrentReportingStatus",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains.",
        "label": "Entity [Domain]"
       }
      }
     },
     "localname": "EntityDomain",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterest",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestTables",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesTables",
      "http://www.mge.com/20211231/taxonomy/role/StatementMgeEnergyIncConsolidatedStatementsOfCommonEquityParentheticals"
     ],
     "xbrltype": "domainItemType"
    },
    "dei_EntityEmergingGrowthCompany": {
     "auth_ref": [
      "r956"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate if registrant meets the emerging growth company criteria.",
        "label": "Entity Emerging Growth Company"
       }
      }
     },
     "localname": "EntityEmergingGrowthCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityFileNumber": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen.",
        "label": "Entity File Number"
       }
      }
     },
     "localname": "EntityFileNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "fileNumberItemType"
    },
    "dei_EntityFilerCategory": {
     "auth_ref": [
      "r956"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure.",
        "label": "Entity Filer Category"
       }
      }
     },
     "localname": "EntityFilerCategory",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "filerCategoryItemType"
    },
    "dei_EntityIncorporationStateCountryCode": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two-character EDGAR code representing the state or country of incorporation.",
        "label": "Entity Incorporation State Country Code"
       }
      }
     },
     "localname": "EntityIncorporationStateCountryCode",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "edgarStateCountryItemType"
    },
    "dei_EntityInteractiveDataCurrent": {
     "auth_ref": [
      "r971"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files).",
        "label": "Entity Interactive Data Current"
       }
      }
     },
     "localname": "EntityInteractiveDataCurrent",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityPublicFloat": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate market value of the voting and non-voting common equity held by non-affiliates computed by reference to the price at which the common equity was last sold, or the average bid and asked price of such common equity, as of the last business day of the registrant's most recently completed second fiscal quarter.",
        "label": "Entity Public Float"
       }
      }
     },
     "localname": "EntityPublicFloat",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "monetaryItemType"
    },
    "dei_EntityRegistrantName": {
     "auth_ref": [
      "r956"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC.",
        "label": "Entity Registrant Name"
       }
      }
     },
     "localname": "EntityRegistrantName",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_EntityShellCompany": {
     "auth_ref": [
      "r956"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act.",
        "label": "Entity Shell Company"
       }
      }
     },
     "localname": "EntityShellCompany",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntitySmallBusiness": {
     "auth_ref": [
      "r956"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates that the company is a Smaller Reporting Company (SRC).",
        "label": "Entity Small Business"
       }
      }
     },
     "localname": "EntitySmallBusiness",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_EntityTaxIdentificationNumber": {
     "auth_ref": [
      "r956"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Tax Identification Number (TIN), also known as an Employer Identification Number (EIN), is a unique 9-digit value assigned by the IRS.",
        "label": "Entity Tax Identification Number"
       }
      }
     },
     "localname": "EntityTaxIdentificationNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "employerIdItemType"
    },
    "dei_EntityVoluntaryFilers": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' if the registrant is not required to file reports pursuant to Section 13 or Section 15(d) of the Act.",
        "label": "Entity Voluntary Filers"
       }
      }
     },
     "localname": "EntityVoluntaryFilers",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_EntityWellKnownSeasonedIssuer": {
     "auth_ref": [
      "r989"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicate 'Yes' or 'No' if the registrant is a well-known seasoned issuer, as defined in Rule 405 of the Securities Act. Is used on Form Type: 10-K, 10-Q, 8-K, 20-F, 6-K, 10-K/A, 10-Q/A, 20-F/A, 6-K/A, N-CSR, N-Q, N-1A.",
        "label": "Entity Well known Seasoned Issuer"
       }
      }
     },
     "localname": "EntityWellKnownSeasonedIssuer",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "yesNoItemType"
    },
    "dei_IcfrAuditorAttestationFlag": {
     "auth_ref": [
      "r959",
      "r960",
      "r961"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ICFR Auditor Attestation Flag"
       }
      }
     },
     "localname": "IcfrAuditorAttestationFlag",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "booleanItemType"
    },
    "dei_LegalEntityAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The set of legal entities associated with a report.",
        "label": "Legal Entity [Axis]"
       }
      }
     },
     "localname": "LegalEntityAxis",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterest",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestTables",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesTables",
      "http://www.mge.com/20211231/taxonomy/role/StatementMgeEnergyIncConsolidatedStatementsOfCommonEquityParentheticals"
     ],
     "xbrltype": "stringItemType"
    },
    "dei_LocalPhoneNumber": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Local phone number for entity.",
        "label": "Local Phone Number"
       }
      }
     },
     "localname": "LocalPhoneNumber",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "normalizedStringItemType"
    },
    "dei_Security12bTitle": {
     "auth_ref": [
      "r955"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Title of a 12(b) registered security.",
        "label": "Security12bTitle",
        "terseLabel": "Security 12(b) Title"
       }
      }
     },
     "localname": "Security12bTitle",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "securityTitleItemType"
    },
    "dei_SecurityExchangeName": {
     "auth_ref": [
      "r958"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of the Exchange on which a security is registered.",
        "label": "Security Exchange Name"
       }
      }
     },
     "localname": "SecurityExchangeName",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "edgarExchangeCodeItemType"
    },
    "dei_TradingSymbol": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Trading symbol of an instrument as listed on an exchange.",
        "label": "Trading Symbol"
       }
      }
     },
     "localname": "TradingSymbol",
     "nsuri": "http://xbrl.sec.gov/dei/2021q4",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "tradingSymbolItemType"
    },
    "mgee_AccountingPoliciesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Line Items]"
       }
      }
     },
     "localname": "AccountingPoliciesLineItems",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_AccountingPoliciesTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Table]"
       }
      }
     },
     "localname": "AccountingPoliciesTable",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_Accountingstandardsupdate201707memberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Standards Update 2017-07 - Compensation - Retirement Benefits [Member]"
       }
      }
     },
     "localname": "Accountingstandardsupdate201707memberMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_AccountsReceivableLatePaymentChargeOnUnpaidReceivables": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Late payment charge recorded on all receivables that remain unpaid after due date.",
        "label": "Accounts Receivable, Late Payment Charge on Unpaid Receivables",
        "terseLabel": "Late payment charge on upaid receivables"
       }
      }
     },
     "localname": "AccountsReceivableLatePaymentChargeOnUnpaidReceivables",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_AccountsReceivableLatePaymentChargeOnUnpaidReceivablesSuspended": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Late payment charge recorded on all receivables that remain unpaid after due date, suspended in response to PSCW's COVID-19 Order.",
        "label": "Accounts Receivable, Late Payment Charge on Unpaid Receivables Suspended",
        "terseLabel": "Late payment charge on unpaid receivables - suspended"
       }
      }
     },
     "localname": "AccountsReceivableLatePaymentChargeOnUnpaidReceivablesSuspended",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_AccruedInterestAndTaxes": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 4.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of accrued interest and accrued taxes.",
        "label": "Accrued interest and taxes",
        "terseLabel": "Accrued interest and accrued (prepaid) taxes"
       }
      }
     },
     "localname": "AccruedInterestAndTaxes",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_AdjustmentsToRevenuesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustments to operating revenue.",
        "label": "Adjustments To Revenues [Member]"
       }
      }
     },
     "localname": "AdjustmentsToRevenuesMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_Amountavailablefordividendpaymentswithoutregulatoryapproval": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This is the amount available for dividend payments without PSCW regulatory approval.",
        "label": "Amount Available for Dividend Payments without Regulatory Approval",
        "terseLabel": "Amount available for dividend payments without regulatory approval"
       }
      }
     },
     "localname": "Amountavailablefordividendpaymentswithoutregulatoryapproval",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_AssetsNotAllocatedMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Assets not allocated member.",
        "label": "Assets Not Allocated [Member]"
       }
      }
     },
     "localname": "AssetsNotAllocatedMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_AtcandatcholdcoequitymethodinvesteeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ATC and ATC Holdco.",
        "label": "ATC and ATC Holdco [Member]"
       }
      }
     },
     "localname": "AtcandatcholdcoequitymethodinvesteeMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_AtcequitymethodinvesteememberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ATC.",
        "label": "ATC [Member]"
       }
      }
     },
     "localname": "AtcequitymethodinvesteememberMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_AtcholdcoequitymethodinvesteeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ATC Holdco.",
        "label": "ATC Holdco [Member]"
       }
      }
     },
     "localname": "AtcholdcoequitymethodinvesteeMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_Availableforsalesecuritiesgrossunrealizedgainaccumulatedininvestments": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1": {
       "order": 0.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesAmortizedCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated pre-tax unrealized gains before deducting pre-tax unrealized losses on investments in available-for-sale securities impacting investments.",
        "label": "Available-for-sale Securities, Gross Unrealized Gain, Accumulated in Investments",
        "negatedLabel": "Gross unrealized gains",
        "terseLabel": "Gross unrealized gains"
       }
      }
     },
     "localname": "Availableforsalesecuritiesgrossunrealizedgainaccumulatedininvestments",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_Availableforsalesecuritiesgrossunrealizedlossaccumulatedininvestments": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1": {
       "order": 1.0,
       "parentTag": "us-gaap_AvailableForSaleSecuritiesAmortizedCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated pre-tax unrealized loss before deducting pre-tax unrealized gain on investments in available-for-sale securities impacting investments.",
        "label": "Available-for-sale Securities, Gross Unrealized Loss, Accumulated in Investments",
        "negatedTerseLabel": "Gross unrealized losses",
        "terseLabel": "Gross unrealized losses"
       }
      }
     },
     "localname": "Availableforsalesecuritiesgrossunrealizedlossaccumulatedininvestments",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_BadgerHollowIIUnitsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Badger Hollow II units.",
        "label": "Badger Hollow II Units [Member]"
       }
      }
     },
     "localname": "BadgerHollowIIUnitsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_BadgerHollowIUnitsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Badger Hollow I units.",
        "label": "Badger Hollow I Units [Member]"
       }
      }
     },
     "localname": "BadgerHollowIUnitsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_BadgerHollowIandIIMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Badger Hollow I and II solar farm.",
        "label": "Badger Hollow I and II [Member]"
       }
      }
     },
     "localname": "BadgerHollowIandIIMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_BadgerHollowMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Badger Hollow [Member]",
        "label": "Badger Hollow [Member]"
       }
      }
     },
     "localname": "BadgerHollowMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_CNGVehicleFuelServicing": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Revenue from CNG fuel servicing.",
        "label": "CNG Vehicle Fuel Servicing",
        "terseLabel": "CNG Vehicle Fuel Servicing Revenue"
       }
      }
     },
     "localname": "CNGVehicleFuelServicing",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_CapitalizedComputerSoftwareHostingAgreementAccumulatedAmortization": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The carrying amount of accumulated ammortization of capitalized computer software costs in a hosting arrangement as of the balance sheet date.",
        "label": "Capitalized Computer Software Hosting Agreement Accumulated Amortization",
        "terseLabel": "Capitalized software hosting agreement accumulated amortization"
       }
      }
     },
     "localname": "CapitalizedComputerSoftwareHostingAgreementAccumulatedAmortization",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_CapitalizedComputerSoftwareHostingAgreementAmortization": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For each income statement presented, the amount charged to expense for amortization of capitalized computer software costs in a hosting arrangement.",
        "label": "Capitalized Computer Software Hosting Agreement Amortization",
        "terseLabel": "Capitalized software hosting agreement amortization expense"
       }
      }
     },
     "localname": "CapitalizedComputerSoftwareHostingAgreementAmortization",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_CapitalizedComputerSoftwareHostingAgreementNet": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The carrying amount of capitalized computer software costs in a hosting arrangement as of the balance sheet date.",
        "label": "Capitalized Computer Software Hosting Agreement Net",
        "terseLabel": "Capitalized software hosting agreement"
       }
      }
     },
     "localname": "CapitalizedComputerSoftwareHostingAgreementNet",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_CapitalizedComputerSoftwareHostingAgreementUsefulLife": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Useful life of capitalized software assets in hosting agreements",
        "label": "Capitalized Computer Software Hosting Agreement Useful Life",
        "terseLabel": "Capitalized software hosting agreement, useful life",
        "verboseLabel": "Capitalized Software Assets Hosting Agreements"
       }
      }
     },
     "localname": "CapitalizedComputerSoftwareHostingAgreementUsefulLife",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "durationItemType"
    },
    "mgee_CapitalizedComputerSoftwareHostingAgreementnetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalized Computer Software Hosting Agreement Net [Abstract]",
        "terseLabel": "Capitalized Software Hosting Agreement Costs"
       }
      }
     },
     "localname": "CapitalizedComputerSoftwareHostingAgreementnetAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_CapitalizedSoftwareAssetsHostingArrangementsPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for capitalized software assets in a hosting arragement.",
        "label": "Capitalized Software Assets Hosting Agreements [Policy Text Block]",
        "terseLabel": "Capitalized Software Assets Hosting Arrangements",
        "verboseLabel": "Capitalized Software Assets Hosting Agreements"
       }
      }
     },
     "localname": "CapitalizedSoftwareAssetsHostingArrangementsPolicyTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_CashCashEquivalentsAndRestrictedCashAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash, Cash Equivalents, And Restricted Cash [Abstract]"
       }
      }
     },
     "localname": "CashCashEquivalentsAndRestrictedCashAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "xbrltype": "stringItemType"
    },
    "mgee_CashCashEquivalentsAndRestrictedCashTableTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Cash Equivalents And Restricted Cash Table [Table]"
       }
      }
     },
     "localname": "CashCashEquivalentsAndRestrictedCashTableTable",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_CashCashEquivalentsAndRestrictedcCashLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash Cash Equivalents And Restricted Cash [Line Items]"
       }
      }
     },
     "localname": "CashCashEquivalentsAndRestrictedcCashLineItems",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_Cashcashequivalentsandrestrictedcashtabletextblock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of cash and cash equivalents, including restricted amounts.",
        "label": "Cash, Cash Equivalents, and Restricted Cash [Table Text Block]",
        "terseLabel": "Cash, Cash Equivalents, and Restricted Cash"
       }
      }
     },
     "localname": "Cashcashequivalentsandrestrictedcashtabletextblock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_ChangeInDerivativeFairValueRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Change in Derivative Fair Value [Roll Forward]"
       }
      }
     },
     "localname": "ChangeInDerivativeFairValueRollForward",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_Changeinfuelrulesmonitoredcosts": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This amount represents the reduction in fuel rules monitored costs which was approved by the PSCW.",
        "label": "Change in fuel rules monitored costs",
        "terseLabel": "Change in fuel rules monitored costs"
       }
      }
     },
     "localname": "Changeinfuelrulesmonitoredcosts",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_ColumbiaEnvironmentalProjectSCRMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Columbia Environmental Project, SCR",
        "label": "Columbia Environmental Project, SCR [Member]"
       }
      }
     },
     "localname": "ColumbiaEnvironmentalProjectSCRMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ColumbiaUnitsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Columbia units.",
        "label": "Columbia Units [Member]"
       }
      }
     },
     "localname": "ColumbiaUnitsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ColumbiaenvironmentalprojectsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Columbia Environmental Projects",
        "label": "Columbia Environmental Projects [Member]"
       }
      }
     },
     "localname": "ColumbiaenvironmentalprojectsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_CommercialMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commercial operating revenue.",
        "label": "Commercial [Member]"
       }
      }
     },
     "localname": "CommercialMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_CommercialandindustrialMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commercial and Industrial operating revenue.",
        "label": "Commercial And Industrial [Member]",
        "terseLabel": "Commercial/Industrial [Member]"
       }
      }
     },
     "localname": "CommercialandindustrialMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_CommodityContractsAndFinancialTransimissionRightsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Commodity Contracts and Financial Transimission Rights [Member]",
        "label": "Commodity Contracts and Financial Transimission Rights [Member]",
        "terseLabel": "Exchange Traded Derivatives and FTRs [Member]"
       }
      }
     },
     "localname": "CommodityContractsAndFinancialTransimissionRightsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_CommonEquityRatio": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The common equity ratio, calculated on a thirteen month rolling average.",
        "label": "Common equity ratio"
       }
      }
     },
     "localname": "CommonEquityRatio",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "pureItemType"
    },
    "mgee_CommonEquityRatioDividendRestrictionThreshold": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The minimum common equity ratio required to avoid dividend payment restirctions to the parent company.",
        "label": "Common Equity Ratio, Dividend Restriction Threshold",
        "terseLabel": "Dividend restrictions, common equity ratio"
       }
      }
     },
     "localname": "CommonEquityRatioDividendRestrictionThreshold",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "pureItemType"
    },
    "mgee_ConcentrationRiskNumberOfSignificantConcentrations": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "When disclosing a particular concentration risk, the number of significant concentrations that exist as of the balance sheet date.",
        "label": "Concentration Risk, Number of Significant Concentrations",
        "terseLabel": "Concentration risk, number of significant concentrations"
       }
      }
     },
     "localname": "ConcentrationRiskNumberOfSignificantConcentrations",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "xbrltype": "integerItemType"
    },
    "mgee_ConstructionProjectAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identifies type of construction project.",
        "label": "Construction Project [Axis]"
       }
      }
     },
     "localname": "ConstructionProjectAxis",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_ConstructionProjectDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of construction project.",
        "label": "Construction Project [Domain]"
       }
      }
     },
     "localname": "ConstructionProjectDomain",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_Contributionstoaffiliates": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "label": "Contributions to affiliates",
        "negatedLabel": "Contributions to affiliates"
       }
      }
     },
     "localname": "Contributionstoaffiliates",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_Contributionstootherinvestments": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "label": "ContributionsToOtherInvestments",
        "negatedLabel": "Contributions to other Investments"
       }
      }
     },
     "localname": "Contributionstootherinvestments",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_CostOfGasSoldExpenseMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cost of gas sold expense.",
        "label": "Cost Of Gas Sold Expense [Member]"
       }
      }
     },
     "localname": "CostOfGasSoldExpenseMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_CounterpartiesInDefault": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of counterparites in default as of the balance sheet date.",
        "label": "Counterparties in Default",
        "terseLabel": "Number of counterparties in default"
       }
      }
     },
     "localname": "CounterpartiesInDefault",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "xbrltype": "integerItemType"
    },
    "mgee_CounterpartiesInNetLiabilityPositionOrDefaultAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Counterparties in Net Liability Position or Default [Abstract]",
        "terseLabel": "Counterparties in net liability position or default [Abstract]"
       }
      }
     },
     "localname": "CounterpartiesInNetLiabilityPositionOrDefaultAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_CurrentassetsmemberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing current assets.",
        "label": "Current Assets [Member]",
        "terseLabel": "Current assets [Member]"
       }
      }
     },
     "localname": "CurrentassetsmemberMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_DebtInstrumentCovenantTermsAllowableAmountAvailableForDividendPayment": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of dividends available under covenant terms",
        "label": "Debt Instrument, Covenant Terms, Allowable Amount Available for Dividend Payment",
        "terseLabel": "Debt covenant, allowable amount available for payment of dividends"
       }
      }
     },
     "localname": "DebtInstrumentCovenantTermsAllowableAmountAvailableForDividendPayment",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_DebtInstrumentCovenantTermsOwnershipInterestByOutsidePartyResultingInRepurchaseOfNotesAtParValue": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disallowable percent ownership of trading stock by an outside party that would result in repurchase of notes at par value.",
        "label": "Debt Instrument, Covenant Terms, Ownership Interest by Outside Party Resulting in Repurchase of Notes at Par Value",
        "terseLabel": "Debt covenant, ownership interest by outside party resulting in repurchase of notes at par value"
       }
      }
     },
     "localname": "DebtInstrumentCovenantTermsOwnershipInterestByOutsidePartyResultingInRepurchaseOfNotesAtParValue",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_DebtInstrumentCovenantTermsRequiredParentCompanyOwnershipOfOutstandingVotingEquityInterestInSubsidiary": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Required parent company percent ownership of subsidiary outstanding voting equity interest. Failure to maintain this percentage ownership would result in repurchase of notes at par value.",
        "label": "Debt Instrument, Covenant Terms, Required Parent Company Ownership of Outstanding Voting Equity Interest in Subsidiary",
        "terseLabel": "Debt covenant, required parent company ownership of MGE"
       }
      }
     },
     "localname": "DebtInstrumentCovenantTermsRequiredParentCompanyOwnershipOfOutstandingVotingEquityInterestInSubsidiary",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_DebtRelatedCostsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Regulatory Asset costs related to debt.",
        "label": "Debt Related Costs [Member]"
       }
      }
     },
     "localname": "DebtRelatedCostsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_DebtServiceCoverageRatio": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt service covereage ratio that must be maintained for a trailing 12-month period.",
        "label": "Debt Service Coverage Ratio",
        "terseLabel": "Debt service coverage ratio"
       }
      }
     },
     "localname": "DebtServiceCoverageRatio",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "decimalItemType"
    },
    "mgee_DeferredBadDebtExpenseMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred bad debt expense",
        "label": "Deferred Bad Debt Expense [Member]"
       }
      }
     },
     "localname": "DeferredBadDebtExpenseMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_DeferredCOVIDNineteenCostsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferral of expenditures incurred to ensure the provision of safe, reliable, and affordable access to utility services during the COVID-19 pandemic and late payment charges.",
        "label": "Deferred COVID Nineteen Costs [Member]",
        "terseLabel": "COVID-19 Costs [Member]"
       }
      }
     },
     "localname": "DeferredCOVIDNineteenCostsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_DeferredCompensationArrangementWithIndividualInvestmentInterestCalculationInvestmentMaturityPeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment maturity period used in deferred compensation interest calculation.",
        "label": "Deferred Compensation Arrangement With Individual, Investment Interest Calculation, Investment Maturity Period",
        "terseLabel": "Investment interest calculation, investment maturity period (26 weeks)"
       }
      }
     },
     "localname": "DeferredCompensationArrangementWithIndividualInvestmentInterestCalculationInvestmentMaturityPeriod",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "xbrltype": "durationItemType"
    },
    "mgee_DeferredCompensationArrangementWithIndividualInvestmentInterestCalculationMinimumAnnualRateCompoundedMonthly": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minimum annual rate compounded monthly used in deferred compensation interest calculation.",
        "label": "Deferred Compensation Arrangement With Individual Investment Interest Calculation, Minimum Annual Rate Compounded Monthly",
        "terseLabel": "Investment interest calculation, minimum annual rate compounded monthly"
       }
      }
     },
     "localname": "DeferredCompensationArrangementWithIndividualInvestmentInterestCalculationMinimumAnnualRateCompoundedMonthly",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_DeferredCompensationArrangementWithIndividualInvestmentInterestCalculationMonthlyCompoundingRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage increase compounded monthly used in deferred compensation interest calculation.",
        "label": "Deferred Compensation Arrangement With Individual, Investment Interest Calculation, Monthly Compounding Rate",
        "terseLabel": "Investment interest calculation, monthly compounding rate"
       }
      }
     },
     "localname": "DeferredCompensationArrangementWithIndividualInvestmentInterestCalculationMonthlyCompoundingRate",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_DeferredCompensationFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the portion of the balance sheet assertion valued at fair value by the entity whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission. This item represents deferred compensation obligations meeting the definition of a liability which should be reported as of the balance sheet date.",
        "label": "Deferred Compensation Fair Value Disclosure",
        "terseLabel": "Deferred compensation"
       }
      }
     },
     "localname": "DeferredCompensationFairValueDisclosure",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_DeferredFuelSavingsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fuel costs saved. These costs are included in allowable costs for rate making purposes and will be returned to customers, subject for approval by the PSCW.",
        "label": "Deferred Fuel Savings [Member]"
       }
      }
     },
     "localname": "DeferredFuelSavingsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_DeferredIncomeTaxExpenseTaxCutsAndJobsAct": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tax effect of the amount of the revaluation of deferred income tax expense from the Tax Cuts and Jobs Act.",
        "label": "Net Deferred Income Tax Benefit Tax Cuts And Jobs Act",
        "negatedLabel": "Income tax provision",
        "negatedTerseLabel": "Income tax (provision) benefit",
        "terseLabel": "Income tax provision",
        "totalLabel": "Total income tax provision"
       }
      }
     },
     "localname": "DeferredIncomeTaxExpenseTaxCutsAndJobsAct",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_DeferredPensionAndOtherPostretirementCostsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "In August 2019, the PSCW approved MGE's request to defer the difference between estimated pension and other postretirement costs included in the 2019 and 2020 rate settlement and actual expense incurred. Deferred costs for employee benefit plans were factored into future rate actions starting in 2021.",
        "label": "Deferred Pension And Other Postretirement Costs [Member]",
        "terseLabel": "Deferred Pension And Other Postretirement Costs"
       }
      }
     },
     "localname": "DeferredPensionAndOtherPostretirementCostsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_DeferredSavingsFromCurrentYearEmployeeBenefitCosts": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "During 2021, MGE deferred savings from 2021 employee benefit plan costs and recorded as a regulatory liability.",
        "label": "Deferred Savings From Current Year Employee Benefit Costs",
        "terseLabel": "Deferred savings from 2021 employee benefit plan costs"
       }
      }
     },
     "localname": "DeferredSavingsFromCurrentYearEmployeeBenefitCosts",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_DeferredTaxAssetsAccruedExpenses": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tax effect as of the balance sheet date of the amount of the estimated future tax deductions attributable to the difference between the tax basis and the generally accepted accounting principles basis of a company's accrued expenses which will decrease future taxable income when such difference reverses.",
        "label": "Deferred Tax Assets Accrued Expenses",
        "negatedLabel": "Accrued expenses",
        "terseLabel": "Accrued expenses"
       }
      }
     },
     "localname": "DeferredTaxAssetsAccruedExpenses",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_DeferredTaxAssetsLeases": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tax effect as of the balance sheet date of the amount of the estimated future tax deductions attributable to the difference between the tax basis and the generally accepted accounting principles basis of a company's leases which will decrease future taxable income when such difference reverses.",
        "label": "Deferred Tax Assets Leases",
        "negatedLabel": "Leases",
        "terseLabel": "Leases"
       }
      }
     },
     "localname": "DeferredTaxAssetsLeases",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_DeferredTaxAssetsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing deferred tax assets.",
        "label": "Deferred Tax Assets [Member]",
        "terseLabel": "Deferred tax assets [Member]"
       }
      }
     },
     "localname": "DeferredTaxAssetsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_DeferredTaxLiabilitiesDeductiblePrepayments": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tax effect as of the balance sheet date of the amount of the estimated future tax reductions attributable to the difference between the tax basis and the generally accepted accounting principles basis of a company's tax deductible prepayments which will increase future taxable income when such difference reverses.",
        "label": "Deferred Tax Liabilities Deductible Prepayments",
        "terseLabel": "Tax deductible prepayments"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesDeductiblePrepayments",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_DeferredTaxLiabilitiesEquityMethodInvestments": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tax effect as of the balance sheet date of the amount of the estimated future tax reductions attributable to the difference between the tax basis and the generally accepted accounting principles basis of a company's equity method investment which will increase future taxable income when such difference reverses.",
        "label": "Deferred Tax Liabilities Equity Method Investments",
        "terseLabel": "Investment in ATC"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesEquityMethodInvestments",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_DeferredTaxLiabilitiesLeases": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The tax effect as of the balance sheet date of the amount of the estimated future tax reductions attributable to the difference between the tax basis and the generally accepted accounting principles basis of a company's leases which will increase future taxable income when such difference reverses.",
        "label": "Deferred Tax Liabilities Leases",
        "terseLabel": "Leases"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesLeases",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_DeferredTaxLiabilitiesPensionAndOtherPostretirementBenefits": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences related to pension and other postretirement benefits.",
        "label": "Deferred Tax Liabilities, Pension and Other Postretirement Benefits",
        "terseLabel": "Pension and other postretirement benefits"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesPensionAndOtherPostretirementBenefits",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_Deferredfuelrulesmonitoredcosts": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of electric fuel rules monitored costs which have been deferred outside the symmetrical cost tolerance band authorized by a regulatory agency.",
        "label": "Deferred fuel rules monitored costs",
        "terseLabel": "Deferred fuel rules monitored costs"
       }
      }
     },
     "localname": "Deferredfuelrulesmonitoredcosts",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_DeferredliabilitiesmemberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing deferred liabilities.",
        "label": "Deferred Liabilities [Member]",
        "terseLabel": "Deferred tax liabilities [Member]"
       }
      }
     },
     "localname": "DeferredliabilitiesmemberMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_DefinedBenefitPlanAlternativeInvestmentsFairValueOfPlanAssets": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Net asset value of plan assets.",
        "label": "Defined Benefit Plan Alternative Investments Fair Value Of Plan Assets",
        "terseLabel": "NAV of plan assets"
       }
      }
     },
     "localname": "DefinedBenefitPlanAlternativeInvestmentsFairValueOfPlanAssets",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_DefinedBenefitPlanDeferredNetPeriodicBenefitCosts": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of net periodic benefit cost for pension and postretirement deferred (recognized prior year deferral) for the difference between estimated costs included in the rate settlement and actual costs incurred",
        "label": "Defined Benefit Plan Deferred Net Periodic Benefit Cost",
        "terseLabel": "Deferred (recognized) pension and OPEB costs"
       }
      }
     },
     "localname": "DefinedBenefitPlanDeferredNetPeriodicBenefitCosts",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_DefinedBenefitPlanDeferredPensionAndOtherPostretirementBenefitPlanCostsRecoveredAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Deferred Pension and Other Postretirement Benefit Plan Costs Recovered [Abstract]",
        "terseLabel": "Deferred Pension and OPRB Costs"
       }
      }
     },
     "localname": "DefinedBenefitPlanDeferredPensionAndOtherPostretirementBenefitPlanCostsRecoveredAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_Definedbenefitplanestimatednetfuturebenefitpaymentsabstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Benefit Payments, Net"
       }
      }
     },
     "localname": "Definedbenefitplanestimatednetfuturebenefitpaymentsabstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_Definedbenefitplanexpectednetfuturebenefitpaymentsfivefiscalyearsthereafter": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the benefits expected to be paid, net of the prescription drug subsidy receipts expected to be received in the five fiscal years thereafter (the aggregate net amount of benefits expected to be paid in years 6 through 10 after the date of the latest statement of financial position).",
        "label": "Defined benefit plan expected net future benefit payments, 2027-2031"
       }
      }
     },
     "localname": "Definedbenefitplanexpectednetfuturebenefitpaymentsfivefiscalyearsthereafter",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_Definedbenefitplanexpectednetfuturebenefitpaymentsnexttwelvemonths": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the benefits expected to be paid, net of the prescription drug subsidy receipts expected to be received in Year 1 after the balance sheet date.",
        "label": "Defined benefit plan expected net future benefit payments, 2022"
       }
      }
     },
     "localname": "Definedbenefitplanexpectednetfuturebenefitpaymentsnexttwelvemonths",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_Definedbenefitplanexpectednetfuturebenefitpaymentsyearfive": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the benefits expected to be paid, net of the prescription drug subsidy receipts expected to be received in Year 5 after the balance sheet date.",
        "label": "Defined benefit plan expected net future benefit payments, 2026"
       }
      }
     },
     "localname": "Definedbenefitplanexpectednetfuturebenefitpaymentsyearfive",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_Definedbenefitplanexpectednetfuturebenefitpaymentsyearfour": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the benefits expected to be paid, net of the prescription drug subsidy receipts expected to be received in Year 4 after the balance sheet date.",
        "label": "Defined benefit plan expected net future benefit payments, 2025"
       }
      }
     },
     "localname": "Definedbenefitplanexpectednetfuturebenefitpaymentsyearfour",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_Definedbenefitplanexpectednetfuturebenefitpaymentsyearthree": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the benefits expected to be paid, net of the prescription drug subsidy receipts expected to be received in Year 3 after the balance sheet date.",
        "label": "Defined benefit plan expected net future benefit payments, 2024"
       }
      }
     },
     "localname": "Definedbenefitplanexpectednetfuturebenefitpaymentsyearthree",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_Definedbenefitplanexpectednetfuturebenefitpaymentsyeartwo": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the benefits expected to be paid, net of the prescription drug subsidy receipts expected to be received in Year 2 after the balance sheet date.",
        "label": "Defined benefit plan expected net future benefit payments, 2023"
       }
      }
     },
     "localname": "Definedbenefitplanexpectednetfuturebenefitpaymentsyeartwo",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_DepreciationRatesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of composite straight-line depreciation rates by segment.",
        "label": "Depreciation Rates Table [Text Block]",
        "terseLabel": "Straight-Line Depreciation Rates"
       }
      }
     },
     "localname": "DepreciationRatesTableTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_DerivativeCollateralRequiredToPostAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Collateral Required To Post [Abstract]",
        "terseLabel": "Derivative collateral required to be posted for ten-year PPA [Abstract]"
       }
      }
     },
     "localname": "DerivativeCollateralRequiredToPostAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_DerivativeCollateralRequiredToPostMaximum": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maximum collateral that may be required to be posted.",
        "label": "Derivative, Collateral Required to Post, Maximum",
        "terseLabel": "Maximum collateral that may be required to be posted"
       }
      }
     },
     "localname": "DerivativeCollateralRequiredToPostMaximum",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_DerivativeCollateralRequiredToPostMinimum": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minimum collateral that may be required to be posted",
        "label": "Derivative, Collateral Required to Post, Minimum",
        "terseLabel": "Minimum collateral that may be required to be posted"
       }
      }
     },
     "localname": "DerivativeCollateralRequiredToPostMinimum",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_DerivativeLiabilitiesCurrentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other current derivative liabilities.",
        "label": "Derivative Liabilities, Current [Member]",
        "terseLabel": "Derivative Liability (Current) [Member]"
       }
      }
     },
     "localname": "DerivativeLiabilitiesCurrentMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_DerivativeLiabilitiesNoncurrentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing noncurrent derivative liabilities.",
        "label": "Derivative Liabilities, Noncurrent [Member]",
        "terseLabel": "Derivative Liability (Long-term) [Member]"
       }
      }
     },
     "localname": "DerivativeLiabilitiesNoncurrentMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_DerivativeMaximumTermOfHedgingContract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maximum term of derivative hedging contract.",
        "label": "Derivative, Maximum Term of Hedging Contract",
        "terseLabel": "Maximum term of derivative hedging contract"
       }
      }
     },
     "localname": "DerivativeMaximumTermOfHedgingContract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "xbrltype": "durationItemType"
    },
    "mgee_DerivativeNonmonetaryNotionalAmountDecathermMeasure": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nominal decatherm measure used to calculate payments on a derivative instrument.",
        "label": "Derivative, Nonmonetary Notional Amount, Decatherm Measure",
        "terseLabel": "Notional amount, decatherm measure (in Dth)"
       }
      }
     },
     "localname": "DerivativeNonmonetaryNotionalAmountDecathermMeasure",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "xbrltype": "decimalItemType"
    },
    "mgee_DerivativeNonmonetaryNotionalAmountPowerMeasure": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nominal power measure used to calculate payments on a derivative instrument.",
        "label": "Derivative, Nonmonetary Notional Amount, Power Measure",
        "terseLabel": "Notional amount, power measure (in MW)"
       }
      }
     },
     "localname": "DerivativeNonmonetaryNotionalAmountPowerMeasure",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "xbrltype": "powerItemType"
    },
    "mgee_DerivativeRealizedGainLossDeferred": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Change in realized derivative gains and losses deferred.",
        "label": "Derivative Realized Gain Loss Deferred",
        "negatedLabel": "Realized (loss) gain reclassified to a deferred account"
       }
      }
     },
     "localname": "DerivativeRealizedGainLossDeferred",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_DerivativeUnrealizedRealizedGainsLossesOnBalanceSheetLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Unrealized Realized Gains Losses On Balance Sheet [Line Items]",
        "terseLabel": "Unrealized and realized gains (losses) on balance sheet [Line Items]"
       }
      }
     },
     "localname": "DerivativeUnrealizedRealizedGainsLossesOnBalanceSheetLineItems",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_DirectorIncentiveAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan for 2013 Director Incentive Agreement as described in our report.",
        "label": "Director Incentive Agreement [Member]",
        "terseLabel": "2013 Director Incentive Agreement [Member]"
       }
      }
     },
     "localname": "DirectorIncentiveAgreementMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_DividendRestrictionsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividend Restrictions [Abstract]",
        "terseLabel": "Dividend Restrictions"
       }
      }
     },
     "localname": "DividendRestrictionsAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_DividendsFromAffiliatesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Dividends from Affiliates [Line Items]"
       }
      }
     },
     "localname": "DividendsFromAffiliatesLineItems",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_DividendsFromAffiliatesTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table or schedule providing information pertaining to dividends from affiliates.",
        "label": "Dividends From Affiliates [Table]"
       }
      }
     },
     "localname": "DividendsFromAffiliatesTable",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_DocumentAndEntityInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document and Entity Information [Abstract]"
       }
      }
     },
     "localname": "DocumentAndEntityInformationAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "xbrltype": "stringItemType"
    },
    "mgee_DocumentAndEntityInformationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document and Entity Information [Line Items]"
       }
      }
     },
     "localname": "DocumentAndEntityInformationLineItems",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_DocumentAndEntityInformationTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Container to support the formal attachment of each official or unofficial, public or private document as part of a submission package and to assemble all relevant information about each entity associated with the document instance.",
        "label": "Document and Entity Information [Table]"
       }
      }
     },
     "localname": "DocumentAndEntityInformationTable",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_DomesticLargeCapEquitySecuritiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Domestic Large Cap Equity Securities",
        "label": "Domestic Large Cap Equity Securities [Member]",
        "terseLabel": "U.S. Large Cap [Member]"
       }
      }
     },
     "localname": "DomesticLargeCapEquitySecuritiesMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_DomesticMidCapEquitySecuritiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Domestic Mid Cap Equity Securities",
        "label": "Domestic Mid Cap Equity Securities [Member]",
        "terseLabel": "U.S. Mid Cap [Member]"
       }
      }
     },
     "localname": "DomesticMidCapEquitySecuritiesMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_DomesticSmallCapEquitySecuritiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Domestic Small Cap Equity Securities",
        "label": "Domestic Small Cap Equity Securities [Member]",
        "terseLabel": "U.S. Small Cap [Member]"
       }
      }
     },
     "localname": "DomesticSmallCapEquitySecuritiesMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_EffectsOfTheTaxCutsAndJobsActAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial statement tax effects of the Tax Cuts and Jobs Act.",
        "label": "Effects Of The Tax Cuts And Jobs Act [Abstract]"
       }
      }
     },
     "localname": "EffectsOfTheTaxCutsAndJobsActAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_ElectricMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Electric member.",
        "label": "Electric [Member]",
        "terseLabel": "Corporate And Other Member"
       }
      }
     },
     "localname": "ElectricMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ElectricRateProceedingMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Electric Rate Proceeding",
        "label": "Electric Rate Proceeding [Member]",
        "terseLabel": "Electric Rate Proceeding [Member]"
       }
      }
     },
     "localname": "ElectricRateProceedingMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_Electricfuelcredit": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of fuel savings approved by the PSCW for an electric fuel credit to be returned to customers via a bill credit.",
        "label": "Electric fuel credit",
        "terseLabel": "Electric fuel credit ($)"
       }
      }
     },
     "localname": "Electricfuelcredit",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_Electricfuelcreditperkwh": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The approved amount ($/kWh) for an electric fuel credit to be returned to customers via a bill credit.",
        "label": "Electric Fuel Credit (per kWh)",
        "terseLabel": "Electric fuel credit (per kWh)"
       }
      }
     },
     "localname": "Electricfuelcreditperkwh",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_Electricfuelmonitoredcosts2016Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Electric Fuel Monitored Costs, 2016 [Member]",
        "terseLabel": "Electric Fuel Monitored Costs, 2016"
       }
      }
     },
     "localname": "Electricfuelmonitoredcosts2016Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ElectricfuelmonitoredcostsyearAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Electric Fuel Monitored Costs Year",
        "label": "Electric Fuel Monitored Costs Year [Axis]"
       }
      }
     },
     "localname": "ElectricfuelmonitoredcostsyearAxis",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_ElectricfuelmonitoredcostsyearDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Electric Fuel Monitored Costs Year",
        "label": "Electric Fuel Monitored Costs Year [Domain]"
       }
      }
     },
     "localname": "ElectricfuelmonitoredcostsyearDomain",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ElmRoadRegulatoryLiabilityMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Any difference between the expected start date and the actual start date of the lease payments will be returned to customers. Also, MGE has deferred payments made to MGE Power Elm Road for carrying costs during construction of the facility, management fees, community impact mitigation, and transition costs.",
        "label": "Elm Road Regulatory Liability [Member]",
        "terseLabel": "Elm Road [Member]"
       }
      }
     },
     "localname": "ElmRoadRegulatoryLiabilityMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ElmRoadUnit1Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Elm Road Unit 1 [Member]"
       }
      }
     },
     "localname": "ElmRoadUnit1Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ElmRoadUnit2Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Elm Road Unit 2 [Member]"
       }
      }
     },
     "localname": "ElmRoadUnit2Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ElmRoadUnitsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Elm Road, a coal-fired generating facility.",
        "label": "Elm Road Units [Member]"
       }
      }
     },
     "localname": "ElmRoadUnitsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_EnergyRelatedCommodityContractMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Energy Related Commodity Contract [Member]",
        "label": "Energy Related Commodity Contract [Member]"
       }
      }
     },
     "localname": "EnergyRelatedCommodityContractMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_EquityMethodAndOtherInvestmentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of equity method investments in common stock and other investments. The equity method investments disclosure may include: (a) the name of each investee or group of investments for which combined disclosure is appropriate, (2) the percentage ownership of common stock, (3) the difference, if any, between the carrying amount of an investment and the value of the underlying equity in the net assets and the accounting treatment of difference, if any, and (4) the aggregate value of each identified investment based on its quoted market price, if available.",
        "label": "Equity Method and Other Investments Table [Text Block]",
        "terseLabel": "Equity Method and Other Investments"
       }
      }
     },
     "localname": "EquityMethodAndOtherInvestmentsTableTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_EquityMethodInvestmentSummarizedFinancialInformationInterestIncomeExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "order": 3.0,
       "parentTag": "mgee_EquityMethodInvestmentSummarizedFinancialInformationNetIncomeLossBeforeTaxes",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of interest reported by an equity method investment of the entity.",
        "label": "Equity Method Investment Summarized Financial Information Interest Income (Expense)",
        "terseLabel": "Interest expense, net"
       }
      }
     },
     "localname": "EquityMethodInvestmentSummarizedFinancialInformationInterestIncomeExpense",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_EquityMethodInvestmentSummarizedFinancialInformationLongTermDebt": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of long-term debt reported by an equity method investment of the entity.",
        "label": "Equity Method Investment Summarized Financial Information Long Term Debt",
        "terseLabel": "Long-term debt"
       }
      }
     },
     "localname": "EquityMethodInvestmentSummarizedFinancialInformationLongTermDebt",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_EquityMethodInvestmentSummarizedFinancialInformationNetIncomeLossBeforeTaxes": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income or net loss before taxes reported by an equity method investment of the entity.",
        "label": "Equity Method Investment Summarized Financial Information Net Income Loss Before Taxes",
        "totalLabel": "Earnings before members' income taxes"
       }
      }
     },
     "localname": "EquityMethodInvestmentSummarizedFinancialInformationNetIncomeLossBeforeTaxes",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_EquityMethodInvestmentSummarizedFinancialInformationOtherIncomeExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "order": 2.0,
       "parentTag": "mgee_EquityMethodInvestmentSummarizedFinancialInformationNetIncomeLossBeforeTaxes",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of other income or expenses reported by an equity method investment of the entity.",
        "label": "Equity Method Investment, Summarized Financial Information, Other Income (Expense)",
        "terseLabel": "Other income, net"
       }
      }
     },
     "localname": "EquityMethodInvestmentSummarizedFinancialInformationOtherIncomeExpense",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_EquityMethodInvestmentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity method investments [Abstract]",
        "terseLabel": "Equity method investments: [Abstract]"
       }
      }
     },
     "localname": "EquityMethodInvestmentsAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_EquityMethodInvestmentsAndOtherInvestmentsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investments and Other Investments [Line Items]"
       }
      }
     },
     "localname": "EquityMethodInvestmentsAndOtherInvestmentsLineItems",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_EquitySecuritiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Securities [Abstract]"
       }
      }
     },
     "localname": "EquitySecuritiesAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_EquitySecuritiesDomesticMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity Securities, Domestic",
        "label": "Equity Securities, Domestic [Member]",
        "terseLabel": "United States Equity Securities [Member]"
       }
      }
     },
     "localname": "EquitySecuritiesDomesticMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_EquitySecuritiesForeignMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity Securities, Foreign",
        "label": "Equity Securities, Foreign [Member]",
        "terseLabel": "Non-United States Equity Securities [Member]"
       }
      }
     },
     "localname": "EquitySecuritiesForeignMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_EstimatedPayoutPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Awards related to the 2020 Performance Unit Plan are subject to vesting provisions providing for 100% vesting at the end of the performance period, in the case of performance units, and at the end of the defined time period in the case of restricted units.",
        "label": "Estimated Payout Percentage",
        "terseLabel": "Estimated payout % based on performance criteria"
       }
      }
     },
     "localname": "EstimatedPayoutPercentage",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_ExcessDeferredTaxIncomeStatementEffect": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Included are impacts of the Tax Cuts and Jobs Act for the regulated utility for excess deferred taxes recognized using a normalization method of accounting. The amount and timing of the cash impacts will depend on the period over which certain income tax benefits are provided to customers, determined by the PSCW.",
        "label": "Excess Deferred Tax Income Statement Effect",
        "terseLabel": "Excess deferred tax - Income statement effect"
       }
      }
     },
     "localname": "ExcessDeferredTaxIncomeStatementEffect",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_ExcessDeferredTaxesTaxCutsAndJobsActMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Deferred tax effects of the Tax Cuts and Jobs Act.",
        "label": "Excess Deferred Taxes, Tax Cuts And Jobs Act [Member]"
       }
      }
     },
     "localname": "ExcessDeferredTaxesTaxCutsAndJobsActMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ExciseTaxesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Excise taxes [Abstract]",
        "terseLabel": "Excise taxes"
       }
      }
     },
     "localname": "ExciseTaxesAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Changes in Level 3 assets and liabilities measured at fair value on a recurring basis.",
        "label": "Fair Value Assets And Liabilities Measured On Recurring Basis Unobservable Input Reconciliation [Table Text Block]",
        "terseLabel": "Changes in Level 3 Assets and Liabilities Measured at Fair Value on a Recurring Basis"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_FairValueInputsBasisAdjustmentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Inputs, Basis Adjustment [Abstract]",
        "terseLabel": "Basis adjustment:"
       }
      }
     },
     "localname": "FairValueInputsBasisAdjustmentAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_FairValueInputsCounterpartyFuelMixAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Inputs Counterparty Fuel Mix [Abstract]",
        "terseLabel": "Counterparty fuel mix:"
       }
      }
     },
     "localname": "FairValueInputsCounterpartyFuelMixAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_FairValueInputsCounterpartyFuelMixInternalGeneration": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Estimate of counterparty's internal generation as a portion of their fuel mix, used as an input to measure fair value.",
        "label": "Fair Value Inputs Counterparty Fuel Mix Internal Generation",
        "terseLabel": "Internal generation"
       }
      }
     },
     "localname": "FairValueInputsCounterpartyFuelMixInternalGeneration",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_FairValueInputsCounterpartyFuelMixPurchasedPower": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Estimate of counterparty's purchased power as a portion of their fuel mix, used as an input to measure fair value.",
        "label": "Fair Value Inputs Counterparty Fuel Mix Purchased Power",
        "terseLabel": "Purchased power"
       }
      }
     },
     "localname": "FairValueInputsCounterpartyFuelMixPurchasedPower",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_FairValueInputsDeliveryPointsBasisAdjustmentOffPeak": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Basis adjustment between delivery points for off peak electric future prices. Used as an input to measure fair value.",
        "label": "Fair Value Inputs Delivery Points Basis Adjustment Off Peak",
        "terseLabel": "Basis adjustment - off peak"
       }
      }
     },
     "localname": "FairValueInputsDeliveryPointsBasisAdjustmentOffPeak",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_FairValueInputsDeliveryPointsBasisAdjustmentOnPeak": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Basis adjustment between delivery points for on peak electric future prices. Used as an input to measure fair value.",
        "label": "Fair Value Inputs Delivery Points Basis Adjustment On Peak",
        "terseLabel": "Basis adjustment - on peak"
       }
      }
     },
     "localname": "FairValueInputsDeliveryPointsBasisAdjustmentOnPeak",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Gain (Loss) [Abstract]",
        "terseLabel": "Realized and unrealized gains (losses):"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInCurrentAssets": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents total gains or losses for the period (realized and unrealized), arising from assets measured at fair value on a recurring basis using unobservable inputs (Level 3), which are included in current assets.",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Gain (Loss) Included In Current Assets",
        "terseLabel": "Included in current assets"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInCurrentAssets",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInRegulatoryAssets": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Gain (Loss) Included In Regulatory Assets",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Gain (Loss) Included In Regulatory Assets",
        "terseLabel": "Included in regulatory assets"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInRegulatoryAssets",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInRegulatoryLiabilities": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Gain (Loss) Included In Regulatory Liabilities",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Gain (Loss) Included In Regulatory Liabilities",
        "terseLabel": "Included in regulatory liability"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInRegulatoryLiabilities",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_FairValueOfNonvestedAward": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair Value of each nonvested performance unit aware under the 2020 Peformance Unit Plan.",
        "label": "Fair Value Of Nonvested Award",
        "terseLabel": "Fair Value of each nonvested award"
       }
      }
     },
     "localname": "FairValueOfNonvestedAward",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_FinancialTransmissionRightsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial transmission rights.",
        "label": "Financial Transmission Rights [Member]"
       }
      }
     },
     "localname": "FinancialTransmissionRightsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FirstMortgageBondsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Secured first mortgage bonds.",
        "label": "First Mortgage Bonds [Member]",
        "terseLabel": "7.70%, 2028 Series [Member]"
       }
      }
     },
     "localname": "FirstMortgageBondsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FivePointOneNinePercentNotesDue2033Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Five Point One Nine Percent Notes due 2033 [Member]",
        "terseLabel": "5.19%, due 2033"
       }
      }
     },
     "localname": "FivePointOneNinePercentNotesDue2033Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FivePointSixEightPercentNotesDue2033Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Five Point Six Eight Percent Notes due 2033 [Member]",
        "terseLabel": "5.68%, due 2033"
       }
      }
     },
     "localname": "FivePointSixEightPercentNotesDue2033Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FivePointTwoSixPercentNotesDue2040Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Five Point Two Six Percent Notes due 2040 [Member]",
        "terseLabel": "5.26%, due 2040"
       }
      }
     },
     "localname": "FivePointTwoSixPercentNotesDue2040Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FivePointZeroFourPercentNotesDue2040Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Five Point Zero Four Percent Notes due 2040 [Member]",
        "terseLabel": "5.04%, due 2040"
       }
      }
     },
     "localname": "FivePointZeroFourPercentNotesDue2040Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FixedIncomeSecuritiesByInvestmentObjectiveAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by investment objective of fixed income securities.",
        "label": "Fixed Income Securities by Investment Objective [Axis]"
       }
      }
     },
     "localname": "FixedIncomeSecuritiesByInvestmentObjectiveAxis",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_FixedIncomeSecuritiesInvestmentObjectiveDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fixed income securities segregated by investment objective.",
        "label": "Fixed Income Securities Investment Objective [Domain]"
       }
      }
     },
     "localname": "FixedIncomeSecuritiesInvestmentObjectiveDomain",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FixedRateFundMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fixed Rate Fund [Member]",
        "label": "Fixed Rate Fund [Member]"
       }
      }
     },
     "localname": "FixedRateFundMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ForwardWindAggregatePurchasePrice": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate purchase price for the Forward Wind site.",
        "label": "Forward Wind Aggregate Purchase Price"
       }
      }
     },
     "localname": "ForwardWindAggregatePurchasePrice",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_ForwardWindMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Forward Wind Energy Center - a wind farm in Wisconsin.",
        "label": "Forward Wind [Member]"
       }
      }
     },
     "localname": "ForwardWindMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ForwardWindNumberOfOperatingTurbines": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total operating turbines on the Forward Wind windfarm.",
        "label": "Forward Wind Number Of Operating Turbines",
        "terseLabel": "Forward Wind Turbines"
       }
      }
     },
     "localname": "ForwardWindNumberOfOperatingTurbines",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "mgee_Forwardwindproportionatepurchaseprice": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGE's portion of the purchase price for the Forward Wind site.",
        "label": "Forward Wind Proportionate Purchase Price"
       }
      }
     },
     "localname": "Forwardwindproportionatepurchaseprice",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_Forwardwindpurchasepowerenergyoutput": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGE's purchase power energy output with Forward Wind.",
        "label": "Forward Wind Purchase Power Energy Output",
        "terseLabel": "Jointly owned utility plant, energy output"
       }
      }
     },
     "localname": "Forwardwindpurchasepowerenergyoutput",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_FourPointFourSevenPercentNotesDue2048Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Four Point Four Seven Percent Notes Due 2048 [Member]",
        "terseLabel": "4.47%, due 2048"
       }
      }
     },
     "localname": "FourPointFourSevenPercentNotesDue2048Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FourPointFourTwoPercentNotesDue2043Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Four Point Four Two Percent Notes Due 2043 [Member]",
        "terseLabel": "4.42%, due 2043"
       }
      }
     },
     "localname": "FourPointFourTwoPercentNotesDue2043Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FourPointNineteenSeniorNotesDue2048Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "FourPointNineteenSeniorNotesDue2048 [Member]",
        "terseLabel": "4.19% due 2048"
       }
      }
     },
     "localname": "FourPointNineteenSeniorNotesDue2048Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FourPointSevenFourPercentNotesDue2041Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Four Point Seven Four Percent Notes due 2041 [Member]",
        "terseLabel": "4.74%, due 2041"
       }
      }
     },
     "localname": "FourPointSevenFourPercentNotesDue2041Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FourPointThirtyFourSeniorNotesDue2058Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "FourPointThirtyFourSeniorNotesDue2058 [Member]",
        "terseLabel": "4.34% due 2058"
       }
      }
     },
     "localname": "FourPointThirtyFourSeniorNotesDue2058Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FourPointThreeEightPercentSeniorNotesDue2042Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Four Point Three Eight Percent Senior Notes due 2042 [Member]",
        "terseLabel": "4.38%, due 2042"
       }
      }
     },
     "localname": "FourPointThreeEightPercentSeniorNotesDue2042Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FourPointTwentyFourSeniorNotesDue2053Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "FourPointTwentyFourSeniorNotesDue2053 [Member]",
        "terseLabel": "4.24% due 2053"
       }
      }
     },
     "localname": "FourPointTwentyFourSeniorNotesDue2053Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FuelForElectricGenerationPurchasedPowerMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fuel for electric generation",
        "label": "Fuel For Electric Generation Purchased Power [Member]"
       }
      }
     },
     "localname": "FuelForElectricGenerationPurchasedPowerMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FuelRulesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fuel Rules [Abstract]"
       }
      }
     },
     "localname": "FuelRulesAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_FuelRulesBandwidth": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Pursuant to the provisions of the rate order, the fuel rules bandwidth will be plus or minus this percentage.",
        "label": "Fuel Rules, Bandwidth",
        "terseLabel": "Fuel rules, bandwidth"
       }
      }
     },
     "localname": "FuelRulesBandwidth",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_FuelRulesCreditYearAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fuel Rules Credit Year",
        "label": "Fuel Rules Credit Year [Axis]",
        "terseLabel": "Fuel Rules Credit Year [Axis]"
       }
      }
     },
     "localname": "FuelRulesCreditYearAxis",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_FuelRulesCreditYearDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fuel Rules Credit Year",
        "label": "Fuel Rules Credit Year [Domain]",
        "terseLabel": "Fuel Rules Credit Year [Domain]"
       }
      }
     },
     "localname": "FuelRulesCreditYearDomain",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FuelRulesElectricFuelCostsDeferralLowerThreshold": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Under fuel rules, the amount in which an entity is required to defer the benefit of lower costs if actual electric fuel costs were less than the allowed electric fuel costs in latest rate order.",
        "label": "Fuel Rules, Electric Fuel Costs, Deferral, Lower Threshold",
        "terseLabel": "Fuel rules, electric fuel costs, deferral, lower threshold"
       }
      }
     },
     "localname": "FuelRulesElectricFuelCostsDeferralLowerThreshold",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_FuelRulesElectricFuelCostsDeferralUpperThreshold": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Under fuel rules, the amount in which an entity would defer if actual electric fuel costs exceeded allowed electric fuel costs in latest rate order.",
        "label": "Fuel Rules, Electric Fuel Costs, Deferral, Upper Threshold",
        "terseLabel": "Fuel rules, electric fuel costs, deferral, upper threshold"
       }
      }
     },
     "localname": "FuelRulesElectricFuelCostsDeferralUpperThreshold",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_FuelRulesElectricFuelDeferredCostsLowerThreshold": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Under fuel rules, the amount in which MGE is required to defer the benefit of lower costs if actual electric fuel costs were less than the allowed electric fuel costs in latest rate order.",
        "label": "Fuel Rules, Electric Fuel Deferred Costs, Lower Threshold",
        "terseLabel": "Fuel rules, electric fuel deferred costs lower threshold"
       }
      }
     },
     "localname": "FuelRulesElectricFuelDeferredCostsLowerThreshold",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_FuelRulesElectricFuelDeferredCostsUpperThreshold": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Under fuel rules, the amount in which MGE would defer if actual electric fuel costs exceeded allowed electric fuel costs in latest rate order.",
        "label": "Fuel Rules, Electric Fuel Deferred Costs, Upper Threshold",
        "terseLabel": "Fuel rules, electric fuel deferred costs upper threshold"
       }
      }
     },
     "localname": "FuelRulesElectricFuelDeferredCostsUpperThreshold",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_FuelRulesRefund2018Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fuel Rules Refund approved by the PSCW for 2018 electric fuel savings to be returned over a one-month period.",
        "label": "Fuel Rules Refund 2018 [Member]",
        "terseLabel": "Fuel Rules Refund, 2018 [Member]"
       }
      }
     },
     "localname": "FuelRulesRefund2018Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FuelRulesRefund2019Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fuel Rules Refund approved by the PSCW for 2019 electric fuel savings to be returned over time in rates.",
        "label": "Fuel Rules Refund 2019 [Member]",
        "terseLabel": "Fuel Rules Refund, 2019 [Member]"
       }
      }
     },
     "localname": "FuelRulesRefund2019Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_FuelRulesRefund2020Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fuel Rules refund 2020 [Member]",
        "label": "Fuel Rules refund 2020 [Member]"
       }
      }
     },
     "localname": "FuelRulesRefund2020Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_Fuelrulesrefund2017memberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fuel Rules Refund approved by the PSCW for 2017 electric fuel savings to be returned over a one-month period.",
        "label": "Fuel Rules Refund 2017 [Member]",
        "terseLabel": "Fuel Rules Refund, 2017 [Member]"
       }
      }
     },
     "localname": "Fuelrulesrefund2017memberMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_GasMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gas member.",
        "label": "Gas [Member]"
       }
      }
     },
     "localname": "GasMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_GasRateProceedingMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gas Rate Proceeding",
        "label": "Gas Rate Proceeding [Member]",
        "terseLabel": "Gas Rate Proceeding [Member]"
       }
      }
     },
     "localname": "GasRateProceedingMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_GasTransportationMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gas transportation operating revenue.",
        "label": "Gas Transportation [Member]"
       }
      }
     },
     "localname": "GasTransportationMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_HighYieldBondFixedIncomeSecuritiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "High-Yield Bond Fixed Income Securities",
        "label": "High-Yield Bond Fixed Income Securities [Member]",
        "terseLabel": "High Yield Bond [Member]"
       }
      }
     },
     "localname": "HighYieldBondFixedIncomeSecuritiesMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ImmaterialErrorCorrectionAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of a error correction made to prior period financial statement amounts.",
        "label": "ImmaterialErrorCorrectionAmount",
        "terseLabel": "Revision to classification of prior year cash flow item"
       }
      }
     },
     "localname": "ImmaterialErrorCorrectionAmount",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_IncomeTaxDisclosureLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Income Tax Disclosure [Line Items]"
       }
      }
     },
     "localname": "IncomeTaxDisclosureLineItems",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_IncomeTaxDisclosureTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Table]"
       }
      }
     },
     "localname": "IncomeTaxDisclosureTable",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_IncreaseDecreaseInAccruedInterestAndTaxes": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 15.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the amount of accrued interest and taxes.",
        "label": "Increase Decrease In Accrued Interest And Taxes",
        "terseLabel": "Accrued interest and taxes (change)"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccruedInterestAndTaxes",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_IndustrialMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Industrial operating revenue.",
        "label": "Industrial [Member]"
       }
      }
     },
     "localname": "IndustrialMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_InsuranceContinuanceFundMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Insurance continuance fund member.",
        "label": "Insurance Continuance Fund [Member]"
       }
      }
     },
     "localname": "InsuranceContinuanceFundMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_InterestIncomeExpenseOtherNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement": {
       "order": 3.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Interest income or expense on all other items not previously classified.",
        "label": "Interest Income (Expense), Other, Net",
        "negatedLabel": "Other interest, net",
        "terseLabel": "Other interest, net",
        "verboseLabel": "Interest income, net"
       }
      }
     },
     "localname": "InterestIncomeExpenseOtherNet",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_InternalUseSoftwareMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Internal Use Software [Member]",
        "label": "Internal Use Software [Member]",
        "terseLabel": "Capitalized Software [Member]"
       }
      }
     },
     "localname": "InternalUseSoftwareMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_InternationalBlendMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "International Blend [Member]"
       }
      }
     },
     "localname": "InternationalBlendMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_InvestmentsDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments Disclosure [Abstract]"
       }
      }
     },
     "localname": "InvestmentsDisclosureAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "xbrltype": "stringItemType"
    },
    "mgee_InvestmentsInNonPublicEntitiesCapitalInfusionsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in Non Public Entities, Capital Infusions [Member]"
       }
      }
     },
     "localname": "InvestmentsInNonPublicEntitiesCapitalInfusionsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_InvestmentsTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of available-for-sale, equity method, and other investments.",
        "label": "Investments [Text Block]",
        "terseLabel": "Investments"
       }
      }
     },
     "localname": "InvestmentsTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_Investments"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_JointlyOwnedUtilityPlantFuelOperatingAndMaintenanceExpense": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discloses entity portion of the fuel, operating, and maintenance expenses for the period.",
        "label": "Jointly Owned Utility Plant, Fuel, Operating, and Maintenance Expense",
        "terseLabel": "Jointly owned utility plant, fuel, operating, and maintenance expense"
       }
      }
     },
     "localname": "JointlyOwnedUtilityPlantFuelOperatingAndMaintenanceExpense",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_JointlyOwnedUtilityPlantInterestsTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Describes that the entity has a proportionate interest in a jointly owned utility plant. Should include a table showing separately for each interest the amount of plant in service, the accumulated provision for depreciation (if available), the amount of plant under construction, and the proportionate share. The amounts presented may be further subdivided to show amounts applicable to plant subcategories (for example, production, transmission, distribution). Should include statements that the amounts represent the utility's share in each joint plant and that it must provide its own financing. Information concerning two or more generating plants on the same site may be combined. Should state that the utility's share of direct expenses of the joint plants is included in the corresponding operating expenses on its income statement (for example, fuel, maintenance of plant, other operating expense). If the share of direct expenses is charged to purchased power then should disclose the amount so charged and the proportionate amounts charged to specific operating expenses on the records maintained for the joint plants.",
        "label": "Joint Plant Ownership",
        "terseLabel": "Columbia Environmental Project Construction",
        "verboseLabel": "Elm Road"
       }
      }
     },
     "localname": "JointlyOwnedUtilityPlantInterestsTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnership"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_JointlyOwnedUtilityPlantNetOwnershipAmountBeforeConstructionWorkInProgress": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_JointlyOwnedUtilityPlantNetOwnershipAmount",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total period end amount of plant in service net of accumulated depreciation for the utility's share of jointly owned electricity generation plant.",
        "label": "Jointly Owned Utility Plant, Net Ownership Amount Before Construction Work in Progress",
        "totalLabel": "Property, plant, and equipment, net"
       }
      }
     },
     "localname": "JointlyOwnedUtilityPlantNetOwnershipAmountBeforeConstructionWorkInProgress",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_JointlyOwnedUtilityPlantPlantCapacity": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total operating capacity of each of the units in the jointly owned utility plant.",
        "label": "Jointly Owned Utility Plant, Plant Capacity",
        "terseLabel": "Plant capacity (in MW)",
        "verboseLabel": "Jointly owned utility plant, plant capacity (in MW)"
       }
      }
     },
     "localname": "JointlyOwnedUtilityPlantPlantCapacity",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "powerItemType"
    },
    "mgee_JointlyOwnedUtilityPlantProportionOfTotalNetSummerGeneratingCapability": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A jointly owned utility plant's share of MGE's net generating capability.",
        "label": "Jointly Owned Utility Plant, Proportion of Total Net Summer Generating Capability",
        "terseLabel": "Jointly owned utility plant, proportion of total net summer generating capability"
       }
      }
     },
     "localname": "JointlyOwnedUtilityPlantProportionOfTotalNetSummerGeneratingCapability",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_JointlyOwnedUtilityPlantProportionOfTotalNetSummerGeneratingCapabilityPlantCapacity": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A jointly owned utility plant's share of MGE's net generating capability capacity.",
        "label": "Jointly Owned Utility Plant, Proportion of Total Net Summer Generating Capability, Plant Capacity",
        "terseLabel": "Jointly owned utility plant, proportion of total net summer generating capability, plant capacity (in MW)"
       }
      }
     },
     "localname": "JointlyOwnedUtilityPlantProportionOfTotalNetSummerGeneratingCapabilityPlantCapacity",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "powerItemType"
    },
    "mgee_JointlyOwnedUtiliytPlantNumberOfOperatingUnits": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of operating units in the jointly owned utility plant.",
        "label": "Jointly Owned Utiliyt Plant, Number of Operating Units",
        "terseLabel": "Jointly owned utility plant, number of operating units"
       }
      }
     },
     "localname": "JointlyOwnedUtiliytPlantNumberOfOperatingUnits",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "mgee_JointownersMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Joint Owners [Member]"
       }
      }
     },
     "localname": "JointownersMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_LeaseBalanceSheetTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of lessee's finance and operating lease assets and finance and operating lease liabilities along with their respective locations on the balance sheet.",
        "label": "Lease Balance Sheet [Table Text Block]",
        "terseLabel": "Lease Balance Sheet"
       }
      }
     },
     "localname": "LeaseBalanceSheetTableTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_LeaseLiability": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease Liability",
        "totalLabel": "Total lease liabilities"
       }
      }
     },
     "localname": "LeaseLiability",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_LeaseRegulatoryAssetMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Regulatory Asset costs related to leases.",
        "label": "Lease Regulatory Asset [Member]",
        "terseLabel": "Leases [Member]"
       }
      }
     },
     "localname": "LeaseRegulatoryAssetMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_LeaseRightOfUseAsset": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total of finance and operating right of use assets.",
        "label": "Lease Right Of Use Asset",
        "totalLabel": "Total lease assets"
       }
      }
     },
     "localname": "LeaseRightOfUseAsset",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_LeasesOfLesseeDisclosuresTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for lessee entity's leasing arrangements including, but not limited to, all of the following: (a.) The basis on which contingent rental payments are determined, (b.) The existence and terms of renewal or purchase options and escalation clauses, (c.) Restrictions imposed by lease agreements, such as those concerning dividends, additional debt, and further leasing.",
        "label": "Leases of Lessee Disclosures [Text Block]",
        "terseLabel": "Lease"
       }
      }
     },
     "localname": "LeasesOfLesseeDisclosuresTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_Leases"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_LesseeDisclosureLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee Disclosure [Line Items]"
       }
      }
     },
     "localname": "LesseeDisclosureLineItems",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_LicenseFeeTaxRateElectricResaleByPurchaser": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Electric license fee tax rate for resale by purchaser.",
        "label": "License Fee Tax Rate, Electric, Resale by Purchaser",
        "terseLabel": "License fee tax rate, electric, resale by purchaser"
       }
      }
     },
     "localname": "LicenseFeeTaxRateElectricResaleByPurchaser",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_LicenseFeeTaxRateElectricRetailSales": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Electric license fee tax rate for retail sales.",
        "label": "License Fee Tax Rate, Electric, Retail Sales",
        "terseLabel": "License fee tax rate, electric, retail sales"
       }
      }
     },
     "localname": "LicenseFeeTaxRateElectricRetailSales",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_LicenseFeeTaxRateNaturalGas": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Natural gas license fee tax rate.",
        "label": "License Fee Tax Rate, Natural Gas",
        "terseLabel": "License fee tax rate, natural gas"
       }
      }
     },
     "localname": "LicenseFeeTaxRateNaturalGas",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_LongDurationBondFixedIncomeSecuritiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Long Duration Bond Fixed Income Securities",
        "label": "Long Duration Bond Fixed Income Securities [Member]",
        "terseLabel": "Long Duration Bond [Member]"
       }
      }
     },
     "localname": "LongDurationBondFixedIncomeSecuritiesMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_LongTermIncentivePlan2021Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan for 2021 Long Term Incentive Plan as decribed in our report.",
        "label": "Long Term Incentive Plan 2021 [Member]",
        "terseLabel": "2021 Long Term Incentive Plan [Member]"
       }
      }
     },
     "localname": "LongTermIncentivePlan2021Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_LongTermPurchaseCommitmentMinimumPowerRequired": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Power that must be purchased within the specified time period of the agreement to avoid penalties or unfavorable effects on pricing, among other adverse consequences.",
        "label": "Long Term Purchase Commitment, Minimum Power Required",
        "terseLabel": "Long-term purchase commitment, minimum power required (in MW)"
       }
      }
     },
     "localname": "LongTermPurchaseCommitmentMinimumPowerRequired",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "powerItemType"
    },
    "mgee_Margindepositassetspolicytextblock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for restricted receivable margin account.",
        "label": "Margin Deposit Assets Policy [Text Block]",
        "terseLabel": "Receivable Margin Account"
       }
      }
     },
     "localname": "Margindepositassetspolicytextblock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_MaturityfourtofiveyearsmemberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maturity period that is more than four years but less than five years from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "label": "Maturity Four To Five Years [Member]",
        "terseLabel": "2024 [Member]"
       }
      }
     },
     "localname": "MaturityfourtofiveyearsmemberMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_MaturityonetotwoyearsmemberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maturity period that is more than one year but less than two years from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "label": "Maturity One To Two Years [Member]",
        "terseLabel": "2021 [Member]"
       }
      }
     },
     "localname": "MaturityonetotwoyearsmemberMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_MaturityoverfiveyearsmemberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maturity period of over five years from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "label": "Maturity Over Five Years [Member]",
        "terseLabel": "Thereafter [Member]"
       }
      }
     },
     "localname": "MaturityoverfiveyearsmemberMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_MaturitythreetofouryearsmemberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maturity period that is more than three years but less than four years from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "label": "Maturity Three To Four Years [Member]",
        "terseLabel": "2023 [Member]"
       }
      }
     },
     "localname": "MaturitythreetofouryearsmemberMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_MaturitytwotothreeyearsmemberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maturity period that is more than two years but less than three years from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "label": "Maturity Two To Three Years [Member]",
        "terseLabel": "2022 [Member]"
       }
      }
     },
     "localname": "MaturitytwotothreeyearsmemberMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_MaturityuptooneyearmemberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maturity period of up to one year from the reporting date for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements.",
        "label": "Maturity Up To One Year [Member]",
        "terseLabel": "2020 [Member]"
       }
      }
     },
     "localname": "MaturityuptooneyearmemberMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_MgeEnergyUnsecuredCommittedRevolvingLineOfCreditMemberTotalingFiftyMillionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "MGE Energy Unsecured Committed Revolving Line of Credit Totaling Fifty million [Member]",
        "terseLabel": "MGE Energy unsecured committed revolving line of credit totaling $50 million [Member]"
       }
      }
     },
     "localname": "MgeEnergyUnsecuredCommittedRevolvingLineOfCreditMemberTotalingFiftyMillionMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_MgeMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The set of legal entities associated with a report",
        "label": "MGE [Member]"
       }
      }
     },
     "localname": "MgeMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DocumentAndEntityInformation",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterest",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestTables",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/StatementMgeEnergyIncConsolidatedStatementsOfCommonEquityParentheticals"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_MgePowerElmRoadMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGE Power Elm Road.",
        "label": "MGE Power Elm Road [Member]"
       }
      }
     },
     "localname": "MgePowerElmRoadMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesTables"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_MgePowerMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGE Power.",
        "label": "MGE Power [Member]"
       }
      }
     },
     "localname": "MgePowerMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_MgePowerWestCampusMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGE Power West Campus.",
        "label": "MGE Power West Campus [Member]"
       }
      }
     },
     "localname": "MgePowerWestCampusMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesTables"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_MgeTranscoMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGE Transco.",
        "label": "MGE Transco [Member]"
       }
      }
     },
     "localname": "MgeTranscoMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_MgeUnsecuredCommittedRevolvingLinesOfCreditMemberTotalingOneHundredMillionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "MGE Unsecured Committed Revolving Lines of Credit Totaling One Hundred Million [Member]",
        "terseLabel": "MGE unsecured committed revolving lines of credit totaling $100 million [Member]"
       }
      }
     },
     "localname": "MgeUnsecuredCommittedRevolvingLinesOfCreditMemberTotalingOneHundredMillionMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_MgeetranscoMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGEE Transco.",
        "label": "MGEE Transco [Member]"
       }
      }
     },
     "localname": "MgeetranscoMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_NaturalGasMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual obligation to provide natural gas over periods that initially exceed one year or the normal operating cycle, if longer.",
        "label": "Natural Gas [Member]"
       }
      }
     },
     "localname": "NaturalGasMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_NaturalGasSupplyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Natural Gas, Supply [Member]"
       }
      }
     },
     "localname": "NaturalGasSupplyMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_NaturalGasTransportationAndStorageMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual obligation to provide transportation and storage of natural gas over periods that initially exceed one year or the normal operating cycle, if longer.",
        "label": "Natural Gas, Transportation and Storage [Member]"
       }
      }
     },
     "localname": "NaturalGasTransportationAndStorageMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_NgvfuelingservicesmemberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "NGV Fueling Services.",
        "label": "NGV Fueling Services [Member]"
       }
      }
     },
     "localname": "NgvfuelingservicesmemberMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_NonAssetRetirementObligationRemovalCostMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "In connection with accounting for asset retirement obligations, companies are required to reclassify cumulative collections for non-ARO removal costs as a regulatory liability, with an offsetting entry to accumulated depreciation. Under the current rate structure, these removal costs are being recovered as a component of depreciation expense.",
        "label": "Non Asset Retirement Obligation Removal Cost [Member]",
        "terseLabel": "Non-ARO Removal Cost [Member]"
       }
      }
     },
     "localname": "NonAssetRetirementObligationRemovalCostMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_NonRegulatedEnergyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Non-regulated energy member.",
        "label": "Non Regulated Energy [Member]"
       }
      }
     },
     "localname": "NonRegulatedEnergyMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_NoncontrollingInterestBalanceSheetTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of noncontrolling interest included in balance sheet.",
        "label": "Noncontrolling Interest Balance Sheet Table [Text Block]",
        "terseLabel": "Noncontrolling Interest in Balance Sheet"
       }
      }
     },
     "localname": "NoncontrollingInterestBalanceSheetTableTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_NoncontrollingInterestNetIncomeTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of net income attributable to noncontrolling interest, net of tax.",
        "label": "Noncontrolling Interest Net Income Table [Text Block]",
        "terseLabel": "Net Income Attributable to Noncontrolling Interest, Net of Tax"
       }
      }
     },
     "localname": "NoncontrollingInterestNetIncomeTableTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_OperatingLeaseLiabilityCurrentAndNoncurrent": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating leases on the balance sheet (current and noncurrent).",
        "label": "Operating Lease Liability Current And Noncurrent",
        "terseLabel": "Operating Lease Liability",
        "totalLabel": "Operating Lease Liability Current And Noncurrent, Total"
       }
      }
     },
     "localname": "OperatingLeaseLiabilityCurrentAndNoncurrent",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_OtherCommitmentContractTerm": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other Commitment, Contract Term",
        "label": "Other Commitment, Contract Term",
        "terseLabel": "Other commitment, contract term, expiring in 2022"
       }
      }
     },
     "localname": "OtherCommitmentContractTerm",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "xbrltype": "durationItemType"
    },
    "mgee_OtherCommitmentInitialAgreedUponCommitmentTotal": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount the company has committed to contribute toward an investment.",
        "label": "Other Commitment, Initial Agreed Upon Commitment Total",
        "terseLabel": "Other commitment, initial agreed upon commitment total"
       }
      }
     },
     "localname": "OtherCommitmentInitialAgreedUponCommitmentTotal",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_OtherEquityMethodInvestmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other equity method investments member.",
        "label": "Other Equity Method Investments [Member]"
       }
      }
     },
     "localname": "OtherEquityMethodInvestmentsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_OtherFinancialInformationTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of other financial information including but not limited to cash paid for amounts included in the measurment of lease liabilities and lease assets obtained in exchange for lease liabilities.",
        "label": "Other Financial Information [Table Text Block]",
        "terseLabel": "Other Financial Information"
       }
      }
     },
     "localname": "OtherFinancialInformationTableTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_OtherLongTermDebtExpectedInFuturePeriodsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other types of long-term debt expected to be funded in the future. Note Purchase Agreement commited to, but funding expected in August 2021 (after filing).",
        "label": "Other Long Term Debt Expected In Future Periods [Member]"
       }
      }
     },
     "localname": "OtherLongTermDebtExpectedInFuturePeriodsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_OtherLongTermDebtMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other types of long-term debt not otherwise specified in the taxonomy",
        "label": "Other Long-Term Debt [Member]"
       }
      }
     },
     "localname": "OtherLongTermDebtMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_OtherLongTermPurchaseCommitmentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual obligation to provide commitments other than those specifically stated over periods that initially exceed one year or the normal operating cycle, if longer.",
        "label": "Other Long Term Purchase Commitments [Member]",
        "terseLabel": "Other [Member]"
       }
      }
     },
     "localname": "OtherLongTermPurchaseCommitmentsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_OtherPostretirementBenefitsDefinedBenefitPlanDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Postretirement Benefits Defined Benefit Plan Disclosure [Abstract]",
        "terseLabel": "Other postretirement benefits [Abstract]"
       }
      }
     },
     "localname": "OtherPostretirementBenefitsDefinedBenefitPlanDisclosureAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_OtherRegulatoryAssetMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other regulatory asset amounts.",
        "label": "Other Regulatory Asset [Member]"
       }
      }
     },
     "localname": "OtherRegulatoryAssetMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_OtherRegulatoryLiabilityMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other regulatory liabilities amount.",
        "label": "Other Regulatory Liability [Member]"
       }
      }
     },
     "localname": "OtherRegulatoryLiabilityMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_OtherRetailAndMunicipalMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Retail and municipal operating revenue.",
        "label": "OtherRetailAndMunicipal [Member]",
        "terseLabel": "Other-retail/municipal [Member]"
       }
      }
     },
     "localname": "OtherRetailAndMunicipalMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_OtherRevenuesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other operating revenues.",
        "label": "Other Revenues [Member]"
       }
      }
     },
     "localname": "OtherRevenuesMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_OtherpostretirementsupplementalplansdefinedbenefitmasterpensiontrustmemberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Master Pension Trust",
        "label": "Master Pension Trust [Member]"
       }
      }
     },
     "localname": "OtherpostretirementsupplementalplansdefinedbenefitmasterpensiontrustmemberMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_PaymentsForDistributionsToParentFromNoncontrollingInterest": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow for distributions to parent company from noncontrolling interest.",
        "label": "Payments for Distributions to Parent from Noncontrolling Interest",
        "negatedLabel": "Distributions to parent from noncontrolling interest"
       }
      }
     },
     "localname": "PaymentsForDistributionsToParentFromNoncontrollingInterest",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension And Other Postretirement Defined Benefit Plans, Regulatory Asset [Abstract]",
        "terseLabel": "Amounts recognized in the consolidated balance sheets as regulatory asset [Abstract]"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiability": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This represents the regulatory asset (liability) for underfunded (overfunded) plans recognized in the balance sheet that is associated with the defined benefit pension plans and other postretirement defined benefit plans.",
        "label": "Pension and Other Postretirement Defined Benefit Plans, Regulatory Asset (Liability)",
        "terseLabel": "Regulatory asset (liability)",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiability",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiabilityActuarialNetGainLoss": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1": {
       "order": 0.0,
       "parentTag": "mgee_PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiability",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the regulatory asset (liability) recognized in the balance sheet attributable to the net increase or decrease of changes in the value of either the benefit obligation or the plan assets resulting from experience different from that assumed or from a change in an actuarial assumption, or the consequence of a decision to temporarily deviate from the substantive plan.",
        "label": "Pension And Other Postretirement Defined Benefit Plans, Regulatory Asset (Liability), Actuarial Net Gain (Loss)",
        "negatedLabel": "Net actuarial loss",
        "terseLabel": "Net actuarial loss"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiabilityActuarialNetGainLoss",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiabilityAmortizationOfPriorServiceCostCredit": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1": {
       "order": 1.0,
       "parentTag": "mgee_PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiability",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the regulatory asset (liability) recognized in the balance sheet attributable to the prior service cost or credit relating to benefit changes attributable to plan participants' prior service pursuant to a plan amendment or a plan initiation.",
        "label": "Pension And Other Postretirement Defined Benefit Plans, Regulatory Asset (Liability), Amortization of Prior Service Cost (Credit)",
        "negatedLabel": "Prior service (credit) cost",
        "terseLabel": "Prior service cost",
        "verboseLabel": "Prior service (credit) cost"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiabilityAmortizationOfPriorServiceCostCredit",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiabilityAmortizationOfTransitionObligationAssets": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1": {
       "order": 2.0,
       "parentTag": "mgee_PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiability",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the regulatory asset (liability) recognized in the balance sheet attributable to the transition obligation or asset.",
        "label": "Pension And Other Postretirement Defined Benefit Plans, Regulatory Asset (Liability), Amortization of Transition Obligation Assets",
        "negatedLabel": "Transition obligation",
        "terseLabel": "Transition obligation"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansRegulatoryAssetLiabilityAmortizationOfTransitionObligationAssets",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PensionAndPostretirementBenefitPlanAssetsTotalMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total pension and postretirement benefit plan assets, when it serves as a benchmark in a concentration of risk calculation, representing the sum of all reported plan assets as of the balance sheet date.",
        "label": "Pension and Postretirement Benefit Plan Assets, Total [Member]",
        "terseLabel": "Plan Assets [Member]"
       }
      }
     },
     "localname": "PensionAndPostretirementBenefitPlanAssetsTotalMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_PerformanceUnitPlan2020Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan for 2020 Performance Unit Agreement as decribed in our report.",
        "label": "Performance Unit Plan 2020 [Member]",
        "terseLabel": "2020 Performance Unit Plan [Member]"
       }
      }
     },
     "localname": "PerformanceUnitPlan2020Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_PerformanceUnitPlanAndDirectorIncentivePlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "In January 2020, cash payments were distributed relating to awards that were granted under the plans in 2017, for the 2013 Director Incentive Plan, and in 2015, for the 2006 Performance Unit Plan.",
        "label": "Performance Unit Plan And Director Incentive Plan [Member]",
        "terseLabel": "2006 Performance Unit Plan and 2013 Director Incentive Plan [Member]"
       }
      }
     },
     "localname": "PerformanceUnitPlanAndDirectorIncentivePlanMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_PerformanceUnitPlanMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan for 2006 Performance Unit Agreement as described in out report.",
        "label": "Performance Unit Plan [Member]",
        "terseLabel": "2006 Performance Unit Plan [Member]"
       }
      }
     },
     "localname": "PerformanceUnitPlanMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_PerformanceUnitsLiabilityAwardsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Performance Units Liability Awards [Member]",
        "label": "Performance Units Liability Awards [Member]"
       }
      }
     },
     "localname": "PerformanceUnitsLiabilityAwardsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_PlantAnticipatedToBeRetiredEarlyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plant anticipated to be retired early.",
        "label": "Plant Anticipated to be Retired Early [Member]"
       }
      }
     },
     "localname": "PlantAnticipatedToBeRetiredEarlyMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_PostretirementMedicalPlansWithPrescriptionDrugBenefitsSubsidyDueToEmployer": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Medicare subsidy due to MGE.",
        "label": "Postretirement Medical Plans with Prescription Drug Benefits, Subsidy Due to Employer",
        "terseLabel": "Medicare subsidy due to MGE"
       }
      }
     },
     "localname": "PostretirementMedicalPlansWithPrescriptionDrugBenefitsSubsidyDueToEmployer",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PriorityDebtToAssetsRatioMax": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Priority debt cannot be issued exceeding this percent of consolidated assets.",
        "label": "Priority Debt To Assets Ratio Max",
        "terseLabel": "Priority debt to assets ratio"
       }
      }
     },
     "localname": "PriorityDebtToAssetsRatioMax",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "pureItemType"
    },
    "mgee_ProceedsFromDistributionsOfInvestments": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This item represents disclosure of the amount of distributions that constitute a return of investment.",
        "label": "Proceeds From Distributions Of Investments",
        "terseLabel": "Return of investment - affiliates"
       }
      }
     },
     "localname": "ProceedsFromDistributionsOfInvestments",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_ProjectedCostsForEnvironmentalRegulation": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Projected costs for environmental regulations.",
        "label": "Projected Costs For Environmental Regulation",
        "terseLabel": "Projected costs for enviornmental regulations"
       }
      }
     },
     "localname": "ProjectedCostsForEnvironmentalRegulation",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_ProjectedSolarFarmProjectCosts": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The Company's projected costs for the current solar projects.",
        "label": "Projected Solar Farm Project Costs"
       }
      }
     },
     "localname": "ProjectedSolarFarmProjectCosts",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PropertyPlantAndEquipmentNetBeforeConstructionInProgress": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 1.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, net of accumulated depreciation, depletion and amortization, of long-lived physical assets used in the normal conduct of business and not intended for resale. This amount does not include constrcution work in progress. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, furniture and fixtures, and computer equipment.",
        "label": "Property, Plant and Equipment, Net, Before Construction in Progress",
        "terseLabel": "In-service utility plant, net",
        "totalLabel": "In-service utility plant, net",
        "verboseLabel": "Property, plant and equipment, total"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentNetBeforeConstructionInProgress",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PropertyplantandequipmentnetMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property Plant And Equipment Net [Member]",
        "terseLabel": "Property, plant, and equipment, net [Member]"
       }
      }
     },
     "localname": "PropertyplantandequipmentnetMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_PublicServiceCommissionOfWisconsinMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Public Service Commission of Wisconsin",
        "label": "Public Service Commission of Wisconsin [Member]",
        "terseLabel": "PSCW [Member]"
       }
      }
     },
     "localname": "PublicServiceCommissionOfWisconsinMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_PublicUtilitiesAllowanceForFundsUsedDuringConstructionCapitalizationRate": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Rate at which AFUDC was capitalized.",
        "label": "Public Utilities, Allowance for Funds Used During Construction, Capitalization Rate",
        "terseLabel": "Rate at which AFUDC was capitalized"
       }
      }
     },
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionCapitalizationRate",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_PublicUtilitiesAllowanceForFundsUsedDuringConstructionRateOneHundredPercent": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Effective rate, including composite rate, of cost of financing additions to qualifying regulated assets, commonly called allowance for funds used during construction on 100 percent of Construction Work in Progress. This PSCW authorized rate is on significant projects. Projects that fit this description are: Saratoga Wind, Two Creeks, Badger Hollow I and II, its customer information billing project, and on certain environmental costs for Columbia.",
        "label": "Public Utilities Allowance For Funds Used During Construction Rate One Hundred Percent",
        "terseLabel": "Authorized AFUDC rate - Signficiant projects (100%)"
       }
      }
     },
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionRateOneHundredPercent",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_PublicUtilitiesAllowanceForFundsUsedDuringConstructionTotalCapitalizedCostOfEquity": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total capitalized cost of equity from the start of the project.",
        "label": "Public Utilities Allowance For Funds Used During Construction Total Capitalized Cost Of Equity",
        "terseLabel": "Total capitalized cost of equity"
       }
      }
     },
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionTotalCapitalizedCostOfEquity",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PublicUtilitiesAllowanceForFundsUsedDuringConstructionTotalCapitalizedInterest": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total capitalized interest from the start of the project.",
        "label": "Public Utilities Allowance For Funds Used During Construction Total Capitalized Interest",
        "terseLabel": "Total capitalized interest"
       }
      }
     },
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionTotalCapitalizedInterest",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PublicUtilitiesAllowanceForFundsUsedDuringConstructionTotalCarryingCosts": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total capitalized interest and capitalized cost of equity from the start of the project.",
        "label": "Public Utilities Allowance For Funds Used During Construction Total Carrying Costs",
        "terseLabel": "Total carrying costs"
       }
      }
     },
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionTotalCarryingCosts",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PublicUtilitiesCarryingCostRateRecoveryPeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The period in which carrying costs are to be recovered in rates.",
        "label": "Public Utilities, Carrying Cost Rate Recovery Period",
        "terseLabel": "Carrying cost rate recovery period"
       }
      }
     },
     "localname": "PublicUtilitiesCarryingCostRateRecoveryPeriod",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "mgee_PublicUtilitiesFuelSurchargeAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Public Utility's approved surcharge by regulatory agency.",
        "label": "Public Utilities Fuel Surcharge Amount",
        "terseLabel": "Fuel surcharge effect on electric revenues ($)"
       }
      }
     },
     "localname": "PublicUtilitiesFuelSurchargeAmount",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PublicUtilitiesFuelSurchargePercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of Public Utility's approved surcharge by regulatory agency.",
        "label": "Public Utilities Fuel Surcharge Percentage",
        "terseLabel": "Fuel surcharge effect on electric revenues (%)"
       }
      }
     },
     "localname": "PublicUtilitiesFuelSurchargePercentage",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_PublicUtilitiesInventoryRenewableEnergyCreditAllowance": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Renewable energy credit allowance balances included in inventory and recorded based on specific identification.",
        "label": "Public Utilities, Inventory, Renewable Energy Credit Allowance",
        "terseLabel": "Renewable energy credit allowance included in inventory"
       }
      }
     },
     "localname": "PublicUtilitiesInventoryRenewableEnergyCreditAllowance",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PublicUtilitiesPropertyPlantAndEquipmentPlantInServiceExcludingAFUDC": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Gross amount put in-service and capitalized from projects, excluding AFUDC on the projects.",
        "label": "Public Utilities Property Plant And Equipment Plant In Service Excluding AFUDC",
        "terseLabel": "In-service utility plant, gross (excluding AFUDC)"
       }
      }
     },
     "localname": "PublicUtilitiesPropertyPlantAndEquipmentPlantInServiceExcludingAFUDC",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PublicUtilitiesReturnOfFuelRulesCredit": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fuel rules credit that is not required to be refunded to customers and will be amortized. The fuel credit will accrue interest at weighted cost of capital.",
        "label": "Public Utilities, Return of Fuel Rules Credit",
        "terseLabel": "Return of electric fuel credit, total"
       }
      }
     },
     "localname": "PublicUtilitiesReturnOfFuelRulesCredit",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PublicUtilitiesReturnOfNormalizedExcessDeferredTaxes": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount ofover-collection of excess deferred taxes that has been returned to customers via bill credits.",
        "label": "Public Utilities Return Of Normalized Excess Deferred Taxes",
        "terseLabel": "Return of tax credit, total"
       }
      }
     },
     "localname": "PublicUtilitiesReturnOfNormalizedExcessDeferredTaxes",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PublicUtilitiesReturnOfTaxCredit": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of income tax expense over-collection approved by the PSCW for a tax credit to be returned to customers via a bill credit.",
        "label": "Public Utilities Return Of Tax Credit",
        "terseLabel": "Return of tax credit"
       }
      }
     },
     "localname": "PublicUtilitiesReturnOfTaxCredit",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PublicUtilitiesReturnOfTaxCutsAndJobsActUnprotectedExcessDeferredTaxes": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The 2021 rate settlement includes a one-time return to customers of the portion of electric excess deferred taxes related to the 2017 Tax Act not governed by IRS normalization rules.",
        "label": "Public Utilities Return Of Tax Cuts And Jobs Act Unprotected Excess Deferred Taxes",
        "terseLabel": "Return of unprotected excess deferred taxes"
       }
      }
     },
     "localname": "PublicUtilitiesReturnOfTaxCutsAndJobsActUnprotectedExcessDeferredTaxes",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PublicUtilityCarryingCostsRecovery": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total carrying costs incurred during construction that the PSCW has authorized recovery for.",
        "label": "Public Utility Carrying Costs Recovery",
        "terseLabel": "Carrying costs recovered"
       }
      }
     },
     "localname": "PublicUtilityCarryingCostsRecovery",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PurchaseGasAdjustmentOverUnderCollected": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Natural gas rates are subject to a fuel adjustment clause designed to recover or refund the difference between the actual cost of purchased gas and the amount included in rates. Differences between the amounts billed to customers and the actual costs recoverable are deferred and recovered or refunded in future periods by means of prospective monthly adjustments to rates.",
        "label": "Purchase Gas Adjustment, Over (Under) Collected",
        "terseLabel": "Purchased gas adjustment, over (under) collected"
       }
      }
     },
     "localname": "PurchaseGasAdjustmentOverUnderCollected",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_PurchasePowerAgreementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase Power Agreement [Abstract]"
       }
      }
     },
     "localname": "PurchasePowerAgreementAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_PurchasePowerAgreementOsceolaWindpowerIiLlcMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase Power Agreement, Osceola Windpower II, LLC [Member]",
        "terseLabel": "Purchased Power [Member]"
       }
      }
     },
     "localname": "PurchasePowerAgreementOsceolaWindpowerIiLlcMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_PurchasePowerMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual obligation to purchase power over periods that initially exceed one year or the normal operating cycle, if longer.",
        "label": "Purchase Power [Member]"
       }
      }
     },
     "localname": "PurchasePowerMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_PurchasedGasAdjustmentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchased gas adjustment [Abstract]",
        "terseLabel": "Purchased Gas Adjustment Clause"
       }
      }
     },
     "localname": "PurchasedGasAdjustmentAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_PurchasedGasAdjustmentClausePolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for purchased gas adjustment clause.",
        "label": "Purchased Gas Adjustment Clause Policy [Text Block]",
        "terseLabel": "Purchased Gas Adjustment Clause"
       }
      }
     },
     "localname": "PurchasedGasAdjustmentClausePolicyTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_PurchasedGasAdjustmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGE's natural gas rates are subject to a fuel adjustment clause designed to recover or refund the difference between the actual cost of purchased gas and the amount included in rates. Differences between the amounts billed to customers and the actual costs recoverable are deferred and recovered or refunded in future periods by means of prospective monthly adjustments to rates.",
        "label": "Purchased Gas Adjustment [Member]",
        "terseLabel": "Purchased Gas Adjustment [Member]"
       }
      }
     },
     "localname": "PurchasedGasAdjustmentMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_PurchasedPowerAgreementMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Purchased power agreement.",
        "label": "Purchased Power Agreement [Member]",
        "terseLabel": "PPA [Member]"
       }
      }
     },
     "localname": "PurchasedPowerAgreementMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_PurchasedPowerExpenseMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Purchased power expense member.",
        "label": "Purchased Power Expense [Member]"
       }
      }
     },
     "localname": "PurchasedPowerExpenseMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ReconciliationOfUnrecognizedTaxBenefitsInterestRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Reconciliation Of Unrecognized Tax Benefits Interest [Roll Forward]",
        "terseLabel": "Interest on unrecognized tax benefits [Roll Forward]"
       }
      }
     },
     "localname": "ReconciliationOfUnrecognizedTaxBenefitsInterestRollForward",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_RegionalTransmissionOrganizationReductionToSalesAndPurchasedPowerExpenseFromNetBasisReporting": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The transactions for whichan entity buys and sells power within the same hour to meet electric energy delivery requirements are reported on a net basis. The treatment results in a reduction to sales to the market and purchased power expense.",
        "label": "Regional Transmission Organization, Reduction to Sales and Purchased Power Expense From Net Basis Reporting",
        "terseLabel": "Reduction to sales and purchased power expense from reporting RTO transactions from net basis reporting"
       }
      }
     },
     "localname": "RegionalTransmissionOrganizationReductionToSalesAndPurchasedPowerExpenseFromNetBasisReporting",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_RegionalTransmissionOrganizationsDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regional Transmission Organizations Disclosure [Abstract]",
        "terseLabel": "Regional Transmission Organizations"
       }
      }
     },
     "localname": "RegionalTransmissionOrganizationsDisclosureAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_RegionalTransmissionOrganizationsPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for regional transmission organization transactions on the MISO market.",
        "label": "Regional Transmission Organizations, Policy [Policy Text Block]",
        "terseLabel": "Regional Transmission Organizations"
       }
      }
     },
     "localname": "RegionalTransmissionOrganizationsPolicyPolicyTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_RegulatedGasRevenuesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Regulated gas revenues.",
        "label": "Regulated Gas Revenues [Member]"
       }
      }
     },
     "localname": "RegulatedGasRevenuesMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_RegulatoryAssetMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Regulatory asset.",
        "label": "Regulatory Asset [Member]",
        "terseLabel": "Current and Long-Term Regulatory Asset [Member]"
       }
      }
     },
     "localname": "RegulatoryAssetMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_RenewableEnergyCreditsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGE receives renewable energy credits from certain purchase power. The value of the credits are recorded as inventory and expensed when the credit is redeemed or expired. A regulatory liability has been established for the value of its renewable energy credits included in inventory. In Wisconsin, renewable energy credits expire four years after the year of acquisition. This benefit will be returned to customers in the year the credit is redeemed or expired.",
        "label": "Renewable Energy Credits [Member]"
       }
      }
     },
     "localname": "RenewableEnergyCreditsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ResidentialMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Residential operating revenue.",
        "label": "Residential [Member]"
       }
      }
     },
     "localname": "ResidentialMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_RestrictedStockUnitsEquityAwardsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Restricted stock units equity awards [Member]",
        "label": "Restricted Stock Units Equity Awards [Member]"
       }
      }
     },
     "localname": "RestrictedStockUnitsEquityAwardsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_RestrictedStockUnitsLiabilityAwardsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Restricted stock units liability awards [Member]",
        "label": "Restricted Stock Units Liability Awards [Member]"
       }
      }
     },
     "localname": "RestrictedStockUnitsLiabilityAwardsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_RevisionToCashFlowStatementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revision To Cash Flow Statement [Abstract]"
       }
      }
     },
     "localname": "RevisionToCashFlowStatementAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_SalestothemarketMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sales to the market operating revenue.",
        "label": "Sales To The Market [Member]"
       }
      }
     },
     "localname": "SalestothemarketMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_SaratogaWindAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Saratoga Wind [Abstract]",
        "terseLabel": "Saratoga Wind"
       }
      }
     },
     "localname": "SaratogaWindAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_SaratogaWindFarmMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Saratoga Wind Farm project. Constructed in 2018 and operational in early 2019.",
        "label": "Saratoga Wind Farm [Member]"
       }
      }
     },
     "localname": "SaratogaWindFarmMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_SaratogaWindMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Solar Project in Saratoga, IA approved in 2017.",
        "label": "Saratoga Wind [Member]"
       }
      }
     },
     "localname": "SaratogaWindMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_SaratogawindprojectMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Saratoga Wind Project [Member]"
       }
      }
     },
     "localname": "SaratogawindprojectMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPositionTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of the location and amount of gains and losses reported in the statement of financial position on derivative instruments designated and qualifying as hedging instruments.",
        "label": "Schedule Of Derivative Instruments Gain Loss In Statement Of Financial Position [Table Text Block]",
        "terseLabel": "Derivative Gains and Losses in Balance Sheet"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPositionTableTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_ScheduleOfEquityMethodInvestmentsAvailableForSaleSecuritiesAndOtherInvestmentsTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summarization of information required and determined to be disclosed concerning equity method investments in common stock, available for sale securities and other investments.",
        "label": "Schedule of Equity Method Investments, Available for Sale Securities, and Other Investments [Table]"
       }
      }
     },
     "localname": "ScheduleOfEquityMethodInvestmentsAvailableForSaleSecuritiesAndOtherInvestmentsTable",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_ScheduleOfNetPeriodicBenefitCostNotYetRecognizedRegulatoryAssetTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the amounts related to pension plans and/or other employee benefit plans in regulatory assets that have not yet been recognized as components of net periodic benefit cost, such as the net gain (loss), net prior service cost or credit, and net transition asset or obligation.",
        "label": "Schedule Of Net Periodic Benefit Cost Not Yet Recognized Regulatory Asset Table [Text Block]",
        "terseLabel": "Amounts Recognized in Regulatory Asset"
       }
      }
     },
     "localname": "ScheduleOfNetPeriodicBenefitCostNotYetRecognizedRegulatoryAssetTableTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_ScheduleOfRegulatoryAssetsAndLiabilitiesTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of regulatory assets and liabilities. Assets are created when regulatory agencies permit public utilities to defer certain costs included in rate-setting to the balance sheet. Liabillities are the result of rate actions a regulator can impose on a regulated enterprise resulting in a regulatory liability.",
        "label": "Schedule Of Regulatory Assets And Liabilities Table [Text Block]",
        "terseLabel": "Regulatory Assets and Liabilities"
       }
      }
     },
     "localname": "ScheduleOfRegulatoryAssetsAndLiabilitiesTableTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RegulatoryAssetsAndLiabilitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_Scheduleofremeasurementsofdeferredincometaxesduetotaxreformtabletextblock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the financial statement effects of the Tax Cuts and Jobs Act to MGEE Energy and MGE.",
        "label": "Schedule Of Remeasurements Of Deferred Income Taxes Due To Tax Reform [Table Text Block]"
       }
      }
     },
     "localname": "Scheduleofremeasurementsofdeferredincometaxesduetotaxreformtabletextblock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_SecuritiesSoldUnderAgreementsToRepurchaseMaximumExposure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maximum potential amount of future payments (undiscounted) the guarantor could be required to make under the repurchase agreement with recourse.",
        "label": "Securities Sold Under Agreements To Repurchase Maximum Exposure",
        "terseLabel": "Repurchase agreement, maximum exposure"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseMaximumExposure",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_SecuritiesSoldUnderAgreementsToRepurchaseTerm": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Describes the approximate term of the repurchase agreement.",
        "label": "Securities Sold Under Agreements To Repurchase, Term",
        "terseLabel": "MGE guarantee to the financial institution, term"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseTerm",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "durationItemType"
    },
    "mgee_SegmentReportingInformationAssetsAndCapitalExpendituresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting Information Assets And Capital Expenditures [Abstract]"
       }
      }
     },
     "localname": "SegmentReportingInformationAssetsAndCapitalExpendituresAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_SevenPointOneTwoPercentMediumTermNotesDue2032Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Seven Point One Two Percent Medium Term Notes due 2032 [Member]",
        "terseLabel": "7.12%, due 2032"
       }
      }
     },
     "localname": "SevenPointOneTwoPercentMediumTermNotesDue2032Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_SevenPointSevenZeroPercentFirstMortgageBondsDue2028Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Seven Point Seven Zero Percent First Mortgage Bonds due 2028 [Member]",
        "terseLabel": "7.70%, 2028 Series [Member]"
       }
      }
     },
     "localname": "SevenPointSevenZeroPercentFirstMortgageBondsDue2028Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresInPeriod": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The value of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Forfeitures in Period",
        "terseLabel": "Awards forfeited during period, value"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresInPeriod",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsUndistributedVestedawardsInPeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ShareBased Compensation Arrangement By ShareBased Payment Award Equity Instruments OtherThan Options Undistributed Vestedawards In Period",
        "label": "ShareBased Compensation Arrangement By ShareBased Payment Award Equity Instruments OtherThan Options Undistributed Vestedawards In Period",
        "terseLabel": "Undistributed vested awards"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardEquityInstrumentsOtherthanOptionsUndistributedVestedawardsInPeriod",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "mgee_Sharebasedcompensationarrangementbysharebasedpaymentawardequityinstrumentsotherthanoptionsundistributedvestedawardsinperiodweightedaveragegrantdatefairvalue": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsUndistributedVestedAwardsInPeriodWeightedAverageGrantDateFairValue",
        "label": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsUndistributedVestedAwardsInPeriodWeightedAverageGrantDateFairValue",
        "terseLabel": "Undistributed vested awards, weighted average grant date fair value per share"
       }
      }
     },
     "localname": "Sharebasedcompensationarrangementbysharebasedpaymentawardequityinstrumentsotherthanoptionsundistributedvestedawardsinperiodweightedaveragegrantdatefairvalue",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "mgee_ShortTermDebtCommercialPaperFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the portion of the balance sheet assertion valued at fair value by the entity whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission. This item represents short-term debt commercial paper obligations meeting the definition of a liability which should be reported as of the balance sheet date.",
        "label": "Short Term Debt Commercial Paper Fair Value Disclosure",
        "terseLabel": "Short-term debt - commercial paper"
       }
      }
     },
     "localname": "ShortTermDebtCommercialPaperFairValueDisclosure",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_ShortTermDebtWeightedAverageInterestRateDuringPeriod": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reflects the calculation of the average interest rate weighted by the amount of short-term debt outstanding by type or by instrument during the period.",
        "label": "Short Term Debt Weighted Average Interest Rate During Period",
        "terseLabel": "Weighted-average interest rate during the year"
       }
      }
     },
     "localname": "ShortTermDebtWeightedAverageInterestRateDuringPeriod",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_ShortTermFixedIncomeSecuritiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Short-Term Fixed Income Securities",
        "label": "Short-Term Fixed Income Securities [Member]",
        "terseLabel": "Short-Term Fund [Member]"
       }
      }
     },
     "localname": "ShortTermFixedIncomeSecuritiesMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_SixPointOneTwoPercentMediumTermNotesDue2028Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Six Point One Two Percent Medium Term Notes due 2028 [Member]",
        "terseLabel": "6.12%, due 2028"
       }
      }
     },
     "localname": "SixPointOneTwoPercentMediumTermNotesDue2028Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_SixPointTwoFourSevenPercentMediumTermNotesDue2037Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Six Point Two Four Seven Percent Medium Term Notes Due 2037 [Member]",
        "terseLabel": "6.247%, due 2037"
       }
      }
     },
     "localname": "SixPointTwoFourSevenPercentMediumTermNotesDue2037Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_StockIssuedDuringPeriodUnderTheStockPlan": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "MGE Energy sells shares of its common stock through its Direct Stock Purchase and Dividend Reinvestment Plan (the Stock Plan).",
        "label": "StockIssuedDuringPeriodUnderTheStockPlan",
        "terseLabel": "Common stock issued during period under the stock plan"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodUnderTheStockPlan",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "mgee_StockholdersEquityValueCashInLieuOfFractionalSharesRelatedToStockSplit": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cash paid in lieu of fractional shares related to a stock split.",
        "label": "Stockholders Equity, Value, Cash in Lieu of Fractional Shares Related to Stock Split",
        "negatedLabel": "Cash in lieu of fractional shares related to stock split"
       }
      }
     },
     "localname": "StockholdersEquityValueCashInLieuOfFractionalSharesRelatedToStockSplit",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_TaxCutsAndJobsActMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "2017 Tax reform bill signed by congress",
        "label": "Tax Cuts and Jobs Act [Member]"
       }
      }
     },
     "localname": "TaxCutsAndJobsActMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_TaxRecoveryAfudcEquityMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "AFUDC equity represents the after-tax equity cost associated with utility plant construction and results in a temporary difference between the book and tax basis of such plant. It is probable, under regulation, that an entity can recover in future rates the future increase in taxes payable represented by the deferred income tax liability. The amounts will be recovered in rates over the depreciable life of the asset for which AFUDC was applied. Tax recovery related to AFUDC equity represents the revenue requirement related to recovery of these future taxes payable, calculated at current statutory tax rates",
        "label": "Tax Recovery AFUDC Equity [Member]",
        "terseLabel": "Tax recovery related to AFUDC equity [Member]"
       }
      }
     },
     "localname": "TaxRecoveryAfudcEquityMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ThreePointFourFivePercentIndustrialDevelopmentRevenueBondsDue2027Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Three Point Four Five Percent Industrial Development Revenue Bonds due 2027 [Member]",
        "terseLabel": "3.45%, 2027 Series, Industrial Development Revenue Bonds"
       }
      }
     },
     "localname": "ThreePointFourFivePercentIndustrialDevelopmentRevenueBondsDue2027Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ThreePointThreeEightPercentNotesDue2020Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Three Point Three Eight Percent Notes due 2020 [Member]",
        "terseLabel": "3.38%, retired 2020"
       }
      }
     },
     "localname": "ThreePointThreeEightPercentNotesDue2020Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ThreePointTwoNinePercentNoteDue2026Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Three Point Two Nine Percent Note Due 2026 [Member]",
        "terseLabel": "3.29%, due 2026"
       }
      }
     },
     "localname": "ThreePointTwoNinePercentNoteDue2026Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_ThreePointZeroNinePercentNotesDue2023Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Three Point Zero Nine Percent Notes Due 2023 [Member]",
        "terseLabel": "3.09%, due 2023"
       }
      }
     },
     "localname": "ThreePointZeroNinePercentNotesDue2023Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_Threepointelevenpercentnotedue2027memberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "ThreePointElevenPercentNoteDue2027Member [Member]",
        "terseLabel": "3.11% due 2027"
       }
      }
     },
     "localname": "Threepointelevenpercentnotedue2027memberMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_Threepointsevensixpercentnotedue2052memberMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "ThreePointSevenSixPercentNoteDue2052Member [Member]",
        "terseLabel": "3.76% due 2052"
       }
      }
     },
     "localname": "Threepointsevensixpercentnotedue2052memberMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_TotalOperatingRevenueMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total operating revenue.",
        "label": "Total Operating Revenue [Member]"
       }
      }
     },
     "localname": "TotalOperatingRevenueMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_TotalRetailMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total retail operating revenue.",
        "label": "Total Retail [Member]"
       }
      }
     },
     "localname": "TotalRetailMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_TransmissionInvestmentMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Transmission investment member.",
        "label": "Transmission Investment [Member]"
       }
      }
     },
     "localname": "TransmissionInvestmentMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_TransmissioncostsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The current accounting treatment for transmission costs allows MGE to reflect any differential between transmission costs reflected in rates and actual costs incurred in its next rate filing",
        "label": "Transmission Costs [Member]"
       }
      }
     },
     "localname": "TransmissioncostsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_TwoCreeksMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two Creeks solar array located in Two Creeks, WI.",
        "label": "Two Creeks [Member]"
       }
      }
     },
     "localname": "TwoCreeksMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_TwoCreeksUnitsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two Creeks units.",
        "label": "Two Creeks Units [Member]"
       }
      }
     },
     "localname": "TwoCreeksUnitsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_TwoPointFiveIndustrialReveueBondDue2023Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Point Five Industrial Reveue Bond Due 2023 [Member]",
        "terseLabel": "2.05%, 2023 Series, Industrial Development Revenue Bonds"
       }
      }
     },
     "localname": "TwoPointFiveIndustrialReveueBondDue2023Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_TwoPointFourEightPercentNotesDue2031Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two Point Four Eight Percent Notes Due 2031 [Member]",
        "label": "Two Point Four Eight Percent Notes Due 2031 [Member]",
        "terseLabel": "2.48%, due 2031"
       }
      }
     },
     "localname": "TwoPointFourEightPercentNotesDue2031Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_TwoPointNinteyFourPercentNoteDue2029Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Point Nintey Four Percent Note Due 2029 [Member]",
        "terseLabel": "2.94% due 2029"
       }
      }
     },
     "localname": "TwoPointNinteyFourPercentNoteDue2029Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_TwoPointSixThreePercentNotesDue2033Member": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Two Point Six Three Percent Notes Due 2033 [Member]",
        "label": "Two Point Six Three Percent Notes Due 2033 [Member]",
        "terseLabel": "2.63%, due 2033"
       }
      }
     },
     "localname": "TwoPointSixThreePercentNotesDue2033Member",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_UnfundedPensionAndOtherPostretirementPlansCostsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Regulatory asset or liability for unfunded pension and other postretirement liability",
        "label": "Unfunded Pension and Other Postretirement Plans Costs [Member]",
        "terseLabel": "Unfunded Pension and Other Postretirement Liability [Member]"
       }
      }
     },
     "localname": "UnfundedPensionAndOtherPostretirementPlansCostsMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_UnitedStatesEnvironmentalProtectionAgencyMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Environmental Protection Agency [Member]",
        "label": "EPA [Member]"
       }
      }
     },
     "localname": "UnitedStatesEnvironmentalProtectionAgencyMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_UniversityOfWisconsinMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "University of Wisconsin [Member]",
        "terseLabel": "UW [Member]"
       }
      }
     },
     "localname": "UniversityOfWisconsinMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_UnrecognizedTaxBenefitsCurrentPeriodTaxPositionsPermanentDifferences": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The gross amount of permanent unrecognized tax benefits resulting from tax positions that have been or will be taken in the tax return for the current period, excluding amounts pertaining to examined tax returns.",
        "label": "Unrecognized Tax Benefits Current Period Tax Positions Permanent Differences",
        "terseLabel": "Unrecognized tax benefits permanent differences"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefitsCurrentPeriodTaxPositionsPermanentDifferences",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_UnrecognizedTaxBenefitsDecreaseResultingFromInterestExpenseOnUncertainTaxPositions": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of decrease in unrecognized tax benefits resulting from interest expense on uncertain tax positions.",
        "label": "Unrecognized Tax Benefits, Decrease Resulting from Interest Expense on Uncertain Tax Positions",
        "negatedLabel": "Reduction in interest expense on uncertain tax positions"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefitsDecreaseResultingFromInterestExpenseOnUncertainTaxPositions",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_UtilitiesOperatingExpenseCostOfGasSold": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 2.0,
       "parentTag": "us-gaap_UtilitiesOperatingExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cost of gas sold charged against earnings for the period.",
        "label": "Utilities Operating Expense Cost of gas sold",
        "terseLabel": "Cost of gas sold"
       }
      }
     },
     "localname": "UtilitiesOperatingExpenseCostOfGasSold",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "mgee_UtilityPlantNumberofOperatingTurbines": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total operating turbines on the Saratoga windfarm.",
        "label": "Saratoga Turbines",
        "terseLabel": "Saratoga Turbines"
       }
      }
     },
     "localname": "UtilityPlantNumberofOperatingTurbines",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "integerItemType"
    },
    "mgee_UtilityPlantPlantCapacity": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total operating capacity of the utility plant.",
        "label": "Saratoga Megawatts",
        "terseLabel": "Saratoga Capacity (MW)"
       }
      }
     },
     "localname": "UtilityPlantPlantCapacity",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "powerItemType"
    },
    "mgee_VariableInterestEntitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Interest Entities Disclosure [Abstract]"
       }
      }
     },
     "localname": "VariableInterestEntitiesDisclosureAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "xbrltype": "stringItemType"
    },
    "mgee_VariableInterestEntitiesDisclosureTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of variable interest entities (VIE), including, but not limited to the nature, purpose, size, and activities of the VIE, the carrying amount and classification of consolidated assets that are collateral for the VIE's obligations, lack of recourse if creditors (or beneficial interest holders) of a consolidated VIE have no recourse to the general credit of the primary beneficiary. An enterprise that holds a significant variable interest in a VIE but is not the primary beneficiary may disclose the nature of its involvement with the VIE and when that involvement began, the nature, purpose, size, and activities of the VIE and the enterprise's maximum exposure to loss as a result of its involvement with the VIE.",
        "label": "Variable Interest Entities Disclosure [Text Block]",
        "terseLabel": "Variable Interest Entities"
       }
      }
     },
     "localname": "VariableInterestEntitiesDisclosureTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_VariableInterestEntitiesOtherAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Variable Interest Entities. Other [Abstract]",
        "terseLabel": "Other Variable Interest Entities"
       }
      }
     },
     "localname": "VariableInterestEntitiesOtherAbstract",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "mgee_VariableInterestEntityNumberOfEntitiesOther": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of variable interest entities not otherwise specifically disclosed.",
        "label": "Variable Interest Entity, Number of Entities, Other",
        "terseLabel": "Number of other variable interest entities"
       }
      }
     },
     "localname": "VariableInterestEntityNumberOfEntitiesOther",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "integerItemType"
    },
    "mgee_VariableInterestEntityPurchasePowerAgreementPlantCapacityOther": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of power being purchased from other varaible interest entities.",
        "label": "Variable Interest Entity, Purchase Power Agreement, Plant Capacity, Other",
        "terseLabel": "Other variable interest entities, purchase power agreement, plant capacity (in MW)"
       }
      }
     },
     "localname": "VariableInterestEntityPurchasePowerAgreementPlantCapacityOther",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "powerItemType"
    },
    "mgee_VentureDebtFundMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Venture Debt Fund [Member]"
       }
      }
     },
     "localname": "VentureDebtFundMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_WeightedAverageAndDiscountRateTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of weigted average remaining lease terms and discount rates.",
        "label": "Weighted Average And Discount Rate [Table Text Block]",
        "terseLabel": "Weighted Average And Discount Rate"
       }
      }
     },
     "localname": "WeightedAverageAndDiscountRateTableTextBlock",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "mgee_WeightedAverageEstimatedPayoutPercentBasedOnPerformanceCriteria": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average estimated payout percent based on performance criteria",
        "label": "Weighted average estimated payout percent based on performance criteria"
       }
      }
     },
     "localname": "WeightedAverageEstimatedPayoutPercentBasedOnPerformanceCriteria",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "mgee_WestCampusMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "West Campus Cogeneration Facility.",
        "label": "West Campus [Member]"
       }
      }
     },
     "localname": "WestCampusMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "mgee_WisconsinEnergyEfficiencyAndRenewablesActMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Wisconsin Energy Efficiency and Renewables Act [Member]"
       }
      }
     },
     "localname": "WisconsinEnergyEfficiencyAndRenewablesActMember",
     "nsuri": "http://www.mge.com/20211231",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_CondensedBalanceSheetStatementTable": {
     "auth_ref": [
      "r168",
      "r630",
      "r974"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about condensed balance sheet, including, but not limited to, balance sheets of consolidated entities and consolidation eliminations.",
        "label": "Condensed Balance Sheet Statement [Table]"
       }
      }
     },
     "localname": "CondensedBalanceSheetStatementTable",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_CondensedBalanceSheetStatementsCaptionsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Condensed Balance Sheet Statements, Captions [Line Items]"
       }
      }
     },
     "localname": "CondensedBalanceSheetStatementsCaptionsLineItems",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_CondensedCashFlowStatementTable": {
     "auth_ref": [
      "r168",
      "r630",
      "r975"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about condensed cash flow statement, including, but not limited to, cash flow statements of consolidated entities and consolidation eliminations.",
        "label": "Condensed Cash Flow Statement [Table]"
       }
      }
     },
     "localname": "CondensedCashFlowStatementTable",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_CondensedCashFlowStatementsCaptionsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Condensed Cash Flow Statements, Captions [Line Items]"
       }
      }
     },
     "localname": "CondensedCashFlowStatementsCaptionsLineItems",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_CondensedFinancialInformationOfParentCompanyOnlyDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Condensed Financial Information of Parent Company Only Disclosure [Abstract]"
       }
      }
     },
     "localname": "CondensedFinancialInformationOfParentCompanyOnlyDisclosureAbstract",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "srt_CondensedIncomeStatementTable": {
     "auth_ref": [
      "r168",
      "r630",
      "r975"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about condensed income statement including, but not limited to, income statements of consolidated entities and consolidation eliminations.",
        "label": "Condensed Income Statement [Table]"
       }
      }
     },
     "localname": "CondensedIncomeStatementTable",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatementParentheticals"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_CondensedIncomeStatementsCaptionsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Condensed Income Statements, Captions [Line Items]"
       }
      }
     },
     "localname": "CondensedIncomeStatementsCaptionsLineItems",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatementParentheticals"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidatedEntitiesAxis": {
     "auth_ref": [
      "r168",
      "r361",
      "r366",
      "r374",
      "r635",
      "r636",
      "r644",
      "r645",
      "r777",
      "r926",
      "r973",
      "r977",
      "r986",
      "r987"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by consolidated entity or group of entities.",
        "label": "Consolidated Entities [Axis]"
       }
      }
     },
     "localname": "ConsolidatedEntitiesAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatementParentheticals",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidatedEntitiesDomain": {
     "auth_ref": [
      "r168",
      "r361",
      "r366",
      "r374",
      "r635",
      "r636",
      "r644",
      "r645",
      "r777",
      "r926",
      "r973",
      "r977",
      "r986",
      "r987"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Entity or group of entities consolidated into reporting entity.",
        "label": "Consolidated Entities [Domain]"
       }
      }
     },
     "localname": "ConsolidatedEntitiesDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatementParentheticals",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ConsolidationItemsAxis": {
     "auth_ref": [
      "r168",
      "r235",
      "r254",
      "r255",
      "r256",
      "r257",
      "r259",
      "r261",
      "r265",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r368",
      "r369",
      "r371",
      "r373",
      "r374",
      "r977",
      "r978",
      "r979",
      "r980",
      "r981",
      "r982",
      "r983",
      "r984",
      "r985",
      "r986",
      "r987"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by components, eliminations, non-segment corporate-level activity and reconciling items used in consolidating a parent entity and its subsidiaries or its operating segments.",
        "label": "Consolidation Items [Axis]"
       }
      }
     },
     "localname": "ConsolidationItemsAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ConsolidationItemsDomain": {
     "auth_ref": [
      "r168",
      "r235",
      "r254",
      "r255",
      "r256",
      "r257",
      "r259",
      "r261",
      "r265",
      "r361",
      "r362",
      "r363",
      "r364",
      "r365",
      "r366",
      "r368",
      "r369",
      "r371",
      "r373",
      "r374",
      "r977",
      "r978",
      "r979",
      "r980",
      "r981",
      "r982",
      "r983",
      "r984",
      "r985",
      "r986",
      "r987"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Components, elimination, non-segment corporate-level activity and reconciling items used in consolidating a parent entity and its subsidiaries or its operating segments.",
        "label": "Consolidation Items [Domain]"
       }
      }
     },
     "localname": "ConsolidationItemsDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ContractualObligationFiscalYearMaturityScheduleTableTextBlock": {
     "auth_ref": [
      "r970"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of contractual obligation by timing of payment due. Includes, but is not limited to, long-term debt obligation, lease obligation, and purchase obligation.",
        "label": "Contractual Obligation, Fiscal Year Maturity Schedule"
       }
      }
     },
     "localname": "ContractualObligationFiscalYearMaturityScheduleTableTextBlock",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "srt_CounterpartyNameAxis": {
     "auth_ref": [
      "r89",
      "r92",
      "r165",
      "r166",
      "r380",
      "r409",
      "r988"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of counterparty. A counterparty is the other party that participates in a financial transaction. Examples include, but not limited to, the name of the financial institution.",
        "label": "Counterparty Name [Axis]"
       }
      }
     },
     "localname": "CounterpartyNameAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember": {
     "auth_ref": [
      "r2",
      "r180",
      "r192",
      "r301",
      "r571",
      "r572",
      "r573",
      "r613",
      "r614",
      "r684",
      "r690",
      "r691",
      "r992"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents amount after cumulative-effect adjustment to financial statements in period of adoption of amendment to accounting standards.",
        "label": "Cumulative Effect Period Of Adoption Adjusted Balance [Member]"
       }
      }
     },
     "localname": "CumulativeEffectPeriodOfAdoptionAdjustedBalanceMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember": {
     "auth_ref": [
      "r2",
      "r180",
      "r192",
      "r199",
      "r301",
      "r571",
      "r572",
      "r573",
      "r613",
      "r614",
      "r684",
      "r687",
      "r690",
      "r691",
      "r992"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Increase (decrease) to financial statements for cumulative-effect adjustment in period of adoption of amendment to accounting standards.",
        "label": "Cumulative Effect Period Of Adoption Adjustment [Member]"
       }
      }
     },
     "localname": "CumulativeEffectPeriodOfAdoptionAdjustmentMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_CumulativeEffectPeriodOfAdoptionAxis": {
     "auth_ref": [
      "r2",
      "r180",
      "r192",
      "r199",
      "r301",
      "r571",
      "r572",
      "r573",
      "r613",
      "r614",
      "r684",
      "r687",
      "r690",
      "r691",
      "r992"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by cumulative-effect adjustment to financial statements in period of adoption of amendment to accounting standards.",
        "label": "Cumulative Effect Period Of Adoption [Axis]"
       }
      }
     },
     "localname": "CumulativeEffectPeriodOfAdoptionAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_CumulativeEffectPeriodOfAdoptionDomain": {
     "auth_ref": [
      "r2",
      "r180",
      "r192",
      "r199",
      "r301",
      "r571",
      "r572",
      "r573",
      "r613",
      "r614",
      "r684",
      "r687",
      "r690",
      "r691",
      "r992"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cumulative-effect adjustment to financial statements in period of adoption of amendment to accounting standards.",
        "label": "Cumulative Effect Period Of Adoption [Domain]"
       }
      }
     },
     "localname": "CumulativeEffectPeriodOfAdoptionDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_EquityMethodInvesteeNameDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of investment including named security. Excludes entity that is consolidated.",
        "label": "Equity Method Investee, Name [Domain]"
       }
      }
     },
     "localname": "EquityMethodInvesteeNameDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MaximumMember": {
     "auth_ref": [
      "r379",
      "r408",
      "r546",
      "r552",
      "r792",
      "r793",
      "r794",
      "r795",
      "r796",
      "r797",
      "r818",
      "r886",
      "r888",
      "r927",
      "r928"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Upper limit of the provided range.",
        "label": "Maximum [Member]"
       }
      }
     },
     "localname": "MaximumMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_MinimumMember": {
     "auth_ref": [
      "r379",
      "r408",
      "r546",
      "r552",
      "r792",
      "r793",
      "r794",
      "r795",
      "r796",
      "r797",
      "r818",
      "r886",
      "r888",
      "r927",
      "r928"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Lower limit of the provided range.",
        "label": "Minimum [Member]"
       }
      }
     },
     "localname": "MinimumMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_OwnershipAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of entity in which ownership interest is disclosed. Excludes equity method investee and named security investment.",
        "label": "Ownership [Axis]"
       }
      }
     },
     "localname": "OwnershipAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_OwnershipDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Name of entity in which ownership interest is disclosed. Excludes equity method investee and named security investment.",
        "label": "Ownership [Domain]"
       }
      }
     },
     "localname": "OwnershipDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ParentCompanyMember": {
     "auth_ref": [
      "r168"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The registrant that controls, directly or indirectly, another entity (or entities). The usual condition for control is ownership of a majority (over 50%) of the outstanding voting stock. The power to control may also exist with a lesser percentage of ownership, for example, by contract, lease, agreement with other stockholders or by court decree.",
        "label": "MGE Energy [Member]",
        "terseLabel": "Parent Company Member"
       }
      }
     },
     "localname": "ParentCompanyMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatementParentheticals",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ProductOrServiceAxis": {
     "auth_ref": [
      "r267",
      "r442",
      "r444",
      "r820",
      "r885",
      "r887"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by product and service, or group of similar products and similar services.",
        "label": "Product or Service [Axis]"
       }
      }
     },
     "localname": "ProductOrServiceAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ProductsAndServicesDomain": {
     "auth_ref": [
      "r267",
      "r442",
      "r444",
      "r820",
      "r885",
      "r887"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Product or service, or a group of similar products or similar services.",
        "label": "Products And Services [Domain]"
       }
      }
     },
     "localname": "ProductsAndServicesDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RangeAxis": {
     "auth_ref": [
      "r379",
      "r408",
      "r484",
      "r546",
      "r552",
      "r792",
      "r793",
      "r794",
      "r795",
      "r796",
      "r797",
      "r818",
      "r886",
      "r888",
      "r927",
      "r928"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median.",
        "label": "Range [Axis]"
       }
      }
     },
     "localname": "RangeAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RangeMember": {
     "auth_ref": [
      "r379",
      "r408",
      "r484",
      "r546",
      "r552",
      "r792",
      "r793",
      "r794",
      "r795",
      "r796",
      "r797",
      "r818",
      "r886",
      "r888",
      "r927",
      "r928"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Statistical measurement. Includes, but is not limited to, minimum, maximum, weighted average, arithmetic average, and median.",
        "label": "Range [Domain]"
       }
      }
     },
     "localname": "RangeMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RepurchaseAgreementCounterpartyNameDomain": {
     "auth_ref": [
      "r91",
      "r92",
      "r165",
      "r166",
      "r380",
      "r409"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Named other party that participates in a financial transaction. Examples include, but not limited to, the name of the financial institution.",
        "label": "Counterparty Name [Domain]"
       }
      }
     },
     "localname": "RepurchaseAgreementCounterpartyNameDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RestatementAdjustmentMember": {
     "auth_ref": [
      "r177",
      "r178",
      "r179",
      "r183",
      "r184",
      "r189",
      "r190",
      "r192",
      "r194",
      "r195",
      "r197",
      "r198",
      "r211",
      "r690",
      "r691"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Cumulative increase (decrease) for adjustment to previously issued financial statements. Includes, but is not limited to, adjustment for retrospective application of amendment to accounting standards, other change in accounting principle, correction of error, and other revision.",
        "label": "Restatement Adjustment [Member]"
       }
      }
     },
     "localname": "RestatementAdjustmentMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_RestatementAxis": {
     "auth_ref": [
      "r3",
      "r177",
      "r178",
      "r179",
      "r183",
      "r184",
      "r189",
      "r190",
      "r191",
      "r192",
      "r194",
      "r195",
      "r196",
      "r197",
      "r198",
      "r199",
      "r211",
      "r304",
      "r305",
      "r575",
      "r614",
      "r685",
      "r690",
      "r691",
      "r692",
      "r891",
      "r892",
      "r893",
      "r894",
      "r895",
      "r896",
      "r897",
      "r898",
      "r899",
      "r900",
      "r993",
      "r994"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by adjustment to previously issued financial statements. Includes, but is not limited to, adjustment for retrospective application of amendment to accounting standards, other change in accounting principle, correction of error, and other revision.",
        "label": "Restatement [Axis]"
       }
      }
     },
     "localname": "RestatementAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_RestatementDomain": {
     "auth_ref": [
      "r3",
      "r177",
      "r178",
      "r179",
      "r183",
      "r184",
      "r189",
      "r190",
      "r191",
      "r192",
      "r194",
      "r195",
      "r196",
      "r197",
      "r198",
      "r199",
      "r211",
      "r304",
      "r305",
      "r575",
      "r614",
      "r685",
      "r690",
      "r691",
      "r692",
      "r891",
      "r892",
      "r893",
      "r894",
      "r895",
      "r896",
      "r897",
      "r898",
      "r899",
      "r900",
      "r993",
      "r994"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Adjustment to previously issued financial statements. Includes, but is not limited to, adjustment for retrospective application of amendment to accounting standards, other change in accounting principle, correction of error, and other revision.",
        "label": "Restatement [Domain]"
       }
      }
     },
     "localname": "RestatementDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScenarioForecastMember": {
     "auth_ref": [
      "r193",
      "r547",
      "r972"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information reported for future period. Excludes information expected to be reported in future period for effect on historical fact.",
        "label": "Scenario, Forecast [Member]",
        "terseLabel": "Rate Matters For Future Periods [Member]"
       }
      }
     },
     "localname": "ScenarioForecastMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScenarioPreviouslyReportedMember": {
     "auth_ref": [
      "r3",
      "r177",
      "r179",
      "r183",
      "r184",
      "r189",
      "r190",
      "r191",
      "r192",
      "r194",
      "r195",
      "r197",
      "r198",
      "r211",
      "r304",
      "r305",
      "r575",
      "r614",
      "r685",
      "r690",
      "r691",
      "r692",
      "r891",
      "r892",
      "r893",
      "r894",
      "r895",
      "r896",
      "r897",
      "r898",
      "r899",
      "r900",
      "r993",
      "r994"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents amount as previously reported before adjustment for retrospective application of amendment to accounting standards, other change in accounting principle, correction of error, and other revision.",
        "label": "Scenario Previously Reported [Member]"
       }
      }
     },
     "localname": "ScenarioPreviouslyReportedMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScenarioUnspecifiedDomain": {
     "auth_ref": [
      "r193",
      "r199",
      "r547"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Scenario reported, distinguishing information from actual fact. Includes, but is not limited to, pro forma and forecast. Excludes actual facts.",
        "label": "Scenario, Unspecified [Domain]"
       }
      }
     },
     "localname": "ScenarioUnspecifiedDomain",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis": {
     "auth_ref": [
      "r293"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of investment including named security. Excludes entity that is consolidated.",
        "label": "Schedule of Equity Method Investment, Equity Method Investee, Name [Axis]"
       }
      }
     },
     "localname": "ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock": {
     "auth_ref": [
      "r175",
      "r976"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for valuation and qualifying accounts and reserves.",
        "label": "Valuation and Qualifying Accounts"
       }
      }
     },
     "localname": "ScheduleOfValuationAndQualifyingAccountsDisclosureTextBlock",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DisclosureValuationAndQualifyingAccounts"
     ],
     "xbrltype": "textBlockItemType"
    },
    "srt_StatementScenarioAxis": {
     "auth_ref": [
      "r193",
      "r199",
      "r355",
      "r547",
      "r784"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by scenario reported, distinguishing information from actual fact. Includes, but is not limited to, pro forma and forecast. Excludes actual facts.",
        "label": "Scenario [Axis]"
       }
      }
     },
     "localname": "StatementScenarioAxis",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "srt_ValuationAndQualifyingAccountsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Valuation and Qualifying Accounts [Abstract]"
       }
      }
     },
     "localname": "ValuationAndQualifyingAccountsAbstract",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "srt_WeightedAverageMember": {
     "auth_ref": [
      "r792",
      "r794",
      "r797",
      "r927",
      "r928"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Average of a range of values, calculated with consideration of proportional relevance.",
        "label": "Weighted Average [Member]"
       }
      }
     },
     "localname": "WeightedAverageMember",
     "nsuri": "http://fasb.org/srt/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingChangesAndErrorCorrectionsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Changes and Error Corrections [Abstract]"
       }
      }
     },
     "localname": "AccountingChangesAndErrorCorrectionsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountingPoliciesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting Policies [Abstract]"
       }
      }
     },
     "localname": "AccountingPoliciesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AccountingStandardsUpdate201601Member": {
     "auth_ref": [
      "r721"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounting Standards Update 2016-01 Financial Instruments-Overall (Subtopic 825-10): Recognition and Measurement of Financial Assets and Financial Liabilities.",
        "label": "Accounting Standards Update 2016-01 - Financial Instruments - Overall [Member]"
       }
      }
     },
     "localname": "AccountingStandardsUpdate201601Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingStandardsUpdate201602Member": {
     "auth_ref": [
      "r748"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounting Standards Update 2016-02 Leases (Topic 842).",
        "label": "Accounting Standards Update 2016-02 - Leases [Member]"
       }
      }
     },
     "localname": "AccountingStandardsUpdate201602Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountingStandardsUpdate201618Member": {
     "auth_ref": [
      "r149"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accounting Standards Update 2016-18 Statement of Cash Flows (Topic 230): Restricted Cash (a consensus of the FASB Emerging Issues Task Force).",
        "label": "Accounting Standards Update 2016-18 - Restricted Cash [Member]"
       }
      }
     },
     "localname": "AccountingStandardsUpdate201618Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AccountsPayableCurrent": {
     "auth_ref": [
      "r57",
      "r781"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 5.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of liabilities incurred (and for which invoices have typically been received) and payable to vendors for goods and services received that are used in an entity's business. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Accounts payable",
        "totalLabel": "Accounts Payable, Current, Total"
       }
      }
     },
     "localname": "AccountsPayableCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccountsReceivableNetCurrent": {
     "auth_ref": [
      "r10",
      "r44",
      "r272",
      "r273"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 9.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, of right to consideration from customer for product sold and service rendered in normal course of business, classified as current.",
        "label": "Accounts receivable, less reserves",
        "totalLabel": "Accounts Receivable, after Allowance for Credit Loss, Current, Total"
       }
      }
     },
     "localname": "AccountsReceivableNetCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccruedIncomeTaxes": {
     "auth_ref": [
      "r36",
      "r39",
      "r590",
      "r845",
      "r868"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of the unpaid sum of the known and estimated amounts payable to satisfy all domestic and foreign income tax obligations due.  This amount is the total of current and noncurrent accrued income taxes.",
        "label": "Accrued taxes",
        "totalLabel": "Accrued Income Taxes, Total"
       }
      }
     },
     "localname": "AccruedIncomeTaxes",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedDeferredInvestmentTaxCredit": {
     "auth_ref": [
      "r69",
      "r202",
      "r580"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 5.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The noncurrent portion of the reserve for accumulated deferred investment tax credits as of the balance sheet date. This is the remaining investment credit, which will reduce the cost of services collected from ratepayers by a ratable portion over the investment's regulatory life.",
        "label": "Investment tax credit - deferred"
       }
      }
     },
     "localname": "AccumulatedDeferredInvestmentTaxCredit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment": {
     "auth_ref": [
      "r55",
      "r333"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails": {
       "order": 1.0,
       "parentTag": "mgee_PropertyPlantAndEquipmentNetBeforeConstructionInProgress",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated depreciation, depletion and amortization for physical assets used in the normal conduct of business to produce goods and services.",
        "label": "Less: Accumulated depreciation and amortization",
        "periodEndLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Ending Balance",
        "periodStartLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Beginning Balance",
        "totalLabel": "Accumulated Depreciation, Depletion and Amortization, Property, Plant, and Equipment, Total"
       }
      }
     },
     "localname": "AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AccumulatedOtherComprehensiveIncomeMember": {
     "auth_ref": [
      "r96",
      "r98",
      "r104",
      "r105",
      "r106",
      "r177",
      "r178",
      "r179",
      "r642",
      "r891",
      "r892",
      "r994"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Accumulated increase (decrease) in equity from transactions and other events and circumstances from non-owner sources, attributable to the parent. Excludes net income (loss), and accumulated changes in equity from transactions resulting from investments by owners and distributions to owners.",
        "label": "Accumulated Other Comprehensive (Loss)/ Income [Member]"
       }
      }
     },
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdditionalPaidInCapital": {
     "auth_ref": [
      "r45",
      "r575",
      "r781"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 1.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of excess of issue price over par or stated value of stock and from other transaction involving stock or stockholder. Includes, but is not limited to, additional paid-in capital (APIC) for common and preferred stock.",
        "label": "Additional paid-in capital",
        "periodEndLabel": "Additional Paid in Capital, Ending Balance",
        "periodStartLabel": "Additional Paid in Capital, Beginning Balance",
        "totalLabel": "Additional Paid in Capital, Total"
       }
      }
     },
     "localname": "AdditionalPaidInCapital",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AdditionalPaidInCapitalMember": {
     "auth_ref": [
      "r177",
      "r178",
      "r179",
      "r571",
      "r572",
      "r573",
      "r690"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Excess of issue price over par or stated value of the entity's capital stock and amounts received from other transactions involving the entity's stock or stockholders.",
        "label": "Additional Paid-In Capital [Member]"
       }
      }
     },
     "localname": "AdditionalPaidInCapitalMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AdjustmentForAmortizationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment For Amortization [Abstract]",
        "terseLabel": "Amortization of:"
       }
      }
     },
     "localname": "AdjustmentForAmortizationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdjustmentsForNewAccountingPronouncementsAxis": {
     "auth_ref": [
      "r0",
      "r1",
      "r2",
      "r3",
      "r4",
      "r183",
      "r184",
      "r185",
      "r187",
      "r199",
      "r280",
      "r281",
      "r298",
      "r299",
      "r300",
      "r301",
      "r304",
      "r305",
      "r360",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r575",
      "r611",
      "r612",
      "r613",
      "r614",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r689",
      "r690",
      "r691",
      "r692",
      "r722",
      "r723",
      "r724",
      "r725",
      "r726",
      "r727",
      "r731",
      "r732",
      "r766",
      "r821",
      "r822",
      "r823",
      "r889",
      "r890",
      "r891",
      "r892",
      "r893",
      "r894",
      "r895",
      "r896",
      "r897",
      "r898",
      "r899",
      "r900",
      "r990",
      "r991",
      "r992",
      "r993",
      "r994"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by amendment to accounting standards.",
        "label": "Adjustments for New Accounting Pronouncements [Axis]"
       }
      }
     },
     "localname": "AdjustmentsForNewAccountingPronouncementsAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Items not affecting cash:"
       }
      }
     },
     "localname": "AdjustmentsNoncashItemsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AllocatedShareBasedCompensationExpense": {
     "auth_ref": [
      "r555",
      "r565",
      "r576"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for award under share-based payment arrangement. Excludes amount capitalized.",
        "label": "Compensation expense"
       }
      }
     },
     "localname": "AllocatedShareBasedCompensationExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForDoubtfulAccountsPremiumsAndOtherReceivables": {
     "auth_ref": [
      "r275"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The valuation allowance as of the balance sheet date to reduce the gross amount of receivables to estimated net realizable value, which would be presented in parentheses on the face of the balance sheet.",
        "label": "Reserve for uncollectible other accounts receivable"
       }
      }
     },
     "localname": "AllowanceForDoubtfulAccountsPremiumsAndOtherReceivables",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForDoubtfulAccountsReceivable": {
     "auth_ref": [
      "r275",
      "r306",
      "r308",
      "r311"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of allowance for credit loss on accounts receivable.",
        "label": "Allowance For Doubtful Accounts Receivable",
        "periodEndLabel": "Accounts Receivable, Allowance for Credit Loss, Ending Balance",
        "periodStartLabel": "Accounts Receivable, Allowance for Credit Loss, Beginning Balance",
        "terseLabel": "Accounts receivable, allowance for credit loss"
       }
      }
     },
     "localname": "AllowanceForDoubtfulAccountsReceivable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent": {
     "auth_ref": [
      "r50",
      "r275",
      "r306"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of allowance for credit loss on accounts receivable, classified as current.",
        "label": "Reserve for uncollectible accounts receivable"
       }
      }
     },
     "localname": "AllowanceForDoubtfulAccountsReceivableCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForDoubtfulAccountsReceivablePeriodIncreaseDecrease": {
     "auth_ref": [
      "r312"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in allowance for credit loss on accounts receivable.",
        "label": "Allowance For Doubtful Accounts Receivable Period Increase Decrease",
        "terseLabel": "Accounts receivable, allowance for credit loss, period increase",
        "totalLabel": "Accounts Receivable, Allowance for Credit Loss, Period Increase (Decrease), Total"
       }
      }
     },
     "localname": "AllowanceForDoubtfulAccountsReceivablePeriodIncreaseDecrease",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForDoubtfulAccountsReceivableWriteOffs": {
     "auth_ref": [
      "r310"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of direct write-downs of accounts receivable charged against the allowance.",
        "label": "Allowance For Doubtful Accounts Receivable Write Offs",
        "terseLabel": "Accounts receivable, allowance for credit loss, writeoff"
       }
      }
     },
     "localname": "AllowanceForDoubtfulAccountsReceivableWriteOffs",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AllowanceForFundsUsedDuringConstructionPolicy": {
     "auth_ref": [
      "r936"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for AFUDC (for example, component of PPE, credit to income statement), information regarding the inclusion in rates (only capitalized if its inclusion in rates is probable) and description of AFUDC (for example, represents the cost of capital used during construction).",
        "label": "Allowance for Funds Used During Construction Policy",
        "terseLabel": "Allowance for Funds Used During Construction"
       }
      }
     },
     "localname": "AllowanceForFundsUsedDuringConstructionPolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_AssetRetirementObligation": {
     "auth_ref": [
      "r342"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The carrying amount of a liability for an asset retirement obligation. An asset retirement obligation is a legal obligation associated with the disposal or retirement of a tangible long-lived asset that results from the acquisition, construction or development, or the normal operations of a long-lived asset, except for certain obligations of lessees.",
        "label": "Asset retirement obligation, beginning balance",
        "periodEndLabel": "Asset retirement obligation, ending balance",
        "periodStartLabel": "Asset retirement obligation, beginning balance",
        "totalLabel": "Asset Retirement Obligation, Total"
       }
      }
     },
     "localname": "AssetRetirementObligation",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetRetirementObligationAccretionExpense": {
     "auth_ref": [
      "r341",
      "r345"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accretion expense recognized during the period that is associated with an asset retirement obligation. Accretion expense measures and incorporates changes due to the passage of time into the carrying amount of the liability.",
        "label": "Accretion expense"
       }
      }
     },
     "localname": "AssetRetirementObligationAccretionExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetRetirementObligationCostsMember": {
     "auth_ref": [
      "r932",
      "r943"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Rate action of a regulator resulting in capitalization or accrual of costs for the retirement of long-lived assets.",
        "label": "Asset Retirement Obligation [Member]"
       }
      }
     },
     "localname": "AssetRetirementObligationCostsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AssetRetirementObligationDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asset Retirement Obligation Disclosure [Abstract]"
       }
      }
     },
     "localname": "AssetRetirementObligationDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetRetirementObligationDisclosureTextBlock": {
     "auth_ref": [
      "r348"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for an asset retirement obligation and the associated long-lived asset. An asset retirement obligation is a legal obligation associated with the disposal or retirement from service of a tangible long-lived asset that results from the acquisition, construction or development, or the normal operations of a long-lived asset, except for certain obligations of lessees.",
        "label": "Asset Retirement Obligations"
       }
      }
     },
     "localname": "AssetRetirementObligationDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligations"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_AssetRetirementObligationLiabilitiesIncurred": {
     "auth_ref": [
      "r343"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of asset retirement obligations incurred during the period.",
        "label": "Liabilities incurred",
        "terseLabel": "Saratoga Wind Asset Retirement Obligation"
       }
      }
     },
     "localname": "AssetRetirementObligationLiabilitiesIncurred",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetRetirementObligationLiabilitiesSettled": {
     "auth_ref": [
      "r344"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of asset retirement obligations settled, or otherwise disposed of, during the period. This may include asset retirement obligations transferred to third parties associated with the sale of a long-lived asset.",
        "label": "Asset Retirement Obligation, Liabilities Settled",
        "negatedLabel": "Liabilities settled"
       }
      }
     },
     "localname": "AssetRetirementObligationLiabilitiesSettled",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetRetirementObligationRevisionOfEstimate": {
     "auth_ref": [
      "r340",
      "r346"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in the asset retirement obligation from changes in the amount or timing of the estimated cash flows associated with the settlement of the obligation.",
        "label": "Revisions in estimated cash flows",
        "negatedLabel": "Revisions in estimated cash flows"
       }
      }
     },
     "localname": "AssetRetirementObligationRevisionOfEstimate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetRetirementObligationRollForwardAnalysisRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Asset Retirement Obligations [Roll Forward]"
       }
      }
     },
     "localname": "AssetRetirementObligationRollForwardAnalysisRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetRetirementObligationsPolicy": {
     "auth_ref": [
      "r347"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for legal obligation associated with retirement of long-lived asset that results from acquisition, construction, or development or from normal operation of long-lived asset. Excludes environmental remediation liability from improper or other-than-normal operation of long-lived asset, obligation arising in connection with leased property that meets definition of lease payments or variable lease payments and from plan to sell or otherwise dispose of a long-lived asset.",
        "label": "Asset Retirement Obligations Policy",
        "terseLabel": "Asset Retirement Obligations"
       }
      }
     },
     "localname": "AssetRetirementObligationsPolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_Assets": {
     "auth_ref": [
      "r158",
      "r243",
      "r256",
      "r263",
      "r296",
      "r361",
      "r362",
      "r363",
      "r365",
      "r366",
      "r367",
      "r368",
      "r370",
      "r372",
      "r374",
      "r375",
      "r635",
      "r644",
      "r720",
      "r779",
      "r781",
      "r842",
      "r867"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are recognized. Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Total Assets",
        "terseLabel": "Assets",
        "totalLabel": "Total Assets"
       }
      }
     },
     "localname": "Assets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "ASSETS",
        "terseLabel": "Equity method investment summarized assets [Abstract]"
       }
      }
     },
     "localname": "AssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsCurrent": {
     "auth_ref": [
      "r12",
      "r14",
      "r80",
      "r158",
      "r296",
      "r361",
      "r362",
      "r363",
      "r365",
      "r366",
      "r367",
      "r368",
      "r370",
      "r372",
      "r374",
      "r375",
      "r635",
      "r644",
      "r720",
      "r779",
      "r781"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "order": 0.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 0.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are expected to be realized in cash, sold, or consumed within one year (or the normal operating cycle, if longer). Assets are probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Total Current Assets",
        "totalLabel": "Total Current Assets"
       }
      }
     },
     "localname": "AssetsCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsCurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Assets:"
       }
      }
     },
     "localname": "AssetsCurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsFairValueDisclosure": {
     "auth_ref": [
      "r695"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events.",
        "label": "Assets Fair Value Disclosure",
        "terseLabel": "Total Assets"
       }
      }
     },
     "localname": "AssetsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsFairValueDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets Fair Value Disclosure [Abstract]",
        "terseLabel": "Assets:"
       }
      }
     },
     "localname": "AssetsFairValueDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AssetsHeldForSaleNotPartOfDisposalGroupCurrent": {
     "auth_ref": [
      "r329",
      "r781"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 10.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of assets held-for-sale that are not part of a disposal group, expected to be sold within a year or the normal operating cycle, if longer.",
        "label": "Assets Held-for-sale, Not Part of Disposal Group, Current",
        "terseLabel": "Assets held for sale",
        "totalLabel": "Assets Held-for-sale, Not Part of Disposal Group, Current, Total"
       }
      }
     },
     "localname": "AssetsHeldForSaleNotPartOfDisposalGroupCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsNoncurrent": {
     "auth_ref": [
      "r22",
      "r23",
      "r24",
      "r26",
      "r27",
      "r28",
      "r29",
      "r30",
      "r158",
      "r296",
      "r361",
      "r362",
      "r363",
      "r365",
      "r366",
      "r367",
      "r368",
      "r370",
      "r372",
      "r374",
      "r375",
      "r635",
      "r644",
      "r720",
      "r779"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "order": 1.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all assets that are expected to be realized in cash, sold or consumed after one year or beyond the normal operating cycle, if longer.",
        "label": "Total Noncurrent Assets",
        "totalLabel": "Total Noncurrent Assets"
       }
      }
     },
     "localname": "AssetsNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodDomain": {
     "auth_ref": [
      "r164",
      "r802"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maturity period remaining for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements. Element name and standard label in Maturity [numeric lower end] to [numeric higher end] [date measure] [Member] or Maturity Greater Than [low end numeric value] [date measure] [Member] or Maturity Less Than [high end numeric value] [date measure] [Member] formats.",
        "label": "Repurchase Agreements and Similar Transactions, Maturity Periods [Domain]"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodsAxis": {
     "auth_ref": [
      "r164",
      "r802"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by maturity period remaining for repurchase agreements and similar transactions, for example, but not limited to, securities lending arrangements. Element name and standard label in Maturity [numeric lower end] to [numeric higher end] [date measure] [Member] or Maturity Greater Than [low end numeric value] [date measure] [Member] or Maturity Less Than [high end numeric value] [date measure] [Member] formats.",
        "label": "Repurchase Agreements and Similar Transactions, Maturity Periods [Axis]"
       }
      }
     },
     "localname": "AssetsSoldUnderAgreementsToRepurchaseMaturityPeriodsAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_AvailableForSaleSecuritiesAmortizedCost": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This item represents the cost of debt and equity securities, which are categorized neither as held-to-maturity nor trading, net of adjustments including accretion, amortization, collection of cash, previous other-than-temporary impairments recognized in earnings (less any cumulative-effect adjustments recognized, as defined), and fair value hedge accounting adjustments, if any.",
        "label": "Cost basis",
        "totalLabel": "Cost basis"
       }
      }
     },
     "localname": "AvailableForSaleSecuritiesAmortizedCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_AwardTypeAxis": {
     "auth_ref": [
      "r556",
      "r566"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of award under share-based payment arrangement.",
        "label": "Award Type [Axis]"
       }
      }
     },
     "localname": "AwardTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by location on balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Axis]"
       }
      }
     },
     "localname": "BalanceSheetLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_BalanceSheetLocationDomain": {
     "auth_ref": [
      "r662",
      "r667"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Location in the balance sheet (statement of financial position).",
        "label": "Balance Sheet Location [Domain]"
       }
      }
     },
     "localname": "BalanceSheetLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_BasisOfAccountingPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for basis of accounting, or basis of presentation, used to prepare the financial statements (for example, US Generally Accepted Accounting Principles, Other Comprehensive Basis of Accounting, IFRS).",
        "label": "Basis of Presentation"
       }
      }
     },
     "localname": "BasisOfAccountingPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CapitalAdditionsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual obligation to increase property, plant and equipment either through construction or future purchases.",
        "label": "Capital Additions [Member]",
        "terseLabel": "Renewable energy [Member]"
       }
      }
     },
     "localname": "CapitalAdditionsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CapitalExpendituresIncurredButNotYetPaid": {
     "auth_ref": [
      "r145",
      "r146",
      "r147"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Future cash outflow to pay for purchases of fixed assets that have occurred.",
        "label": "Accrued capital expenditures"
       }
      }
     },
     "localname": "CapitalExpendituresIncurredButNotYetPaid",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CapitalizationLongtermDebtAndEquity": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents the total consolidated (as applicable) capitalization of the entity which is comprised of its long-term debt and equity instruments. The table may be detailed by subsidiary (legal entity) and include information by type of debt or equity detailed by instrument.",
        "label": "Total Capitalization",
        "totalLabel": "Total Capitalization"
       }
      }
     },
     "localname": "CapitalizationLongtermDebtAndEquity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CapitalizationLongtermDebtAndEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalization:",
        "terseLabel": "Shareholders' Equity"
       }
      }
     },
     "localname": "CapitalizationLongtermDebtAndEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CapitalizedComputerSoftwareAccumulatedAmortization": {
     "auth_ref": [
      "r953"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For each balance sheet presented, the amount of accumulated amortization for capitalized computer software costs.",
        "label": "CapitalizedComputerSoftwareAccumulatedAmortization",
        "terseLabel": "Capitalized software - accumulated amortization"
       }
      }
     },
     "localname": "CapitalizedComputerSoftwareAccumulatedAmortization",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CapitalizedComputerSoftwareAmortization1": {
     "auth_ref": [
      "r952",
      "r954"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense for amortization of capitalized computer software costs.",
        "label": "Capitalized software amortization"
       }
      }
     },
     "localname": "CapitalizedComputerSoftwareAmortization1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CapitalizedComputerSoftwareNet": {
     "auth_ref": [
      "r951"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The carrying amount of capitalized computer software costs net of accumulated amortization as of the balance sheet date.",
        "label": "Capitalized software",
        "periodEndLabel": "Capitalized Computer Software, Net, Ending Balance",
        "periodStartLabel": "Capitalized Computer Software, Net, Beginning Balance",
        "totalLabel": "Capitalized Computer Software, Net, Total"
       }
      }
     },
     "localname": "CapitalizedComputerSoftwareNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CapitalizedComputerSoftwareNetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "CapitalizedComputerSoftwareNetAbstract",
        "terseLabel": "Capitalized Software Costs"
       }
      }
     },
     "localname": "CapitalizedComputerSoftwareNetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CarryingReportedAmountFairValueDisclosureMember": {
     "auth_ref": [
      "r716",
      "r717"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measured as reported on the statement of financial position (balance sheet).",
        "label": "Carrying Amount [Member]"
       }
      }
     },
     "localname": "CarryingReportedAmountFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CashAndCashEquivalentsAtCarryingValue": {
     "auth_ref": [
      "r9",
      "r52",
      "r142"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2": {
       "order": 0.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 10.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates. Excludes cash and cash equivalents within disposal group and discontinued operation.",
        "label": "Cash and cash equivalents",
        "periodEndLabel": "Cash and cash equivalents at end of period",
        "periodStartLabel": "Cash and cash equivalents at beginning of period",
        "totalLabel": "Cash and Cash Equivalents, at Carrying Value, Total"
       }
      }
     },
     "localname": "CashAndCashEquivalentsAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsFairValueDisclosure": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value portion of currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash And Cash Equivalents Fair Value Disclosure",
        "terseLabel": "Cash and cash equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashAndCashEquivalentsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Currency on hand as well as demand deposits with banks or financial institutions. Includes other kinds of accounts that have the general characteristics of demand deposits. Also includes short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash and Cash Equivalents [Member]"
       }
      }
     },
     "localname": "CashAndCashEquivalentsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CashAndCashEquivalentsRestrictedCashAndCashEquivalentsPolicy": {
     "auth_ref": [
      "r21",
      "r143",
      "r839"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Entity's cash and cash equivalents accounting policy with respect to restricted balances.  Restrictions may include legally restricted deposits held as compensating balances against short-term borrowing arrangements, contracts entered into with others, or company statements of intention with regard to particular deposits; however, time deposits and short-term certificates of deposit are not generally included in legally restricted deposits.",
        "label": "Restricted Cash"
       }
      }
     },
     "localname": "CashAndCashEquivalentsRestrictedCashAndCashEquivalentsPolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CashAndCashEquivalentsUnrestrictedCashAndCashEquivalentsPolicy": {
     "auth_ref": [
      "r143"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for cash and cash equivalents with respect to unrestricted balances.",
        "label": "Cash And Cash Equivalents Unrestricted Cash And Cash Equivalents Policy",
        "terseLabel": "Cash Equivalents"
       }
      }
     },
     "localname": "CashAndCashEquivalentsUnrestrictedCashAndCashEquivalentsPolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations": {
     "auth_ref": [
      "r134",
      "r142",
      "r148"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash and cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including, but not limited to, disposal group and discontinued operations. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Cash Cash Equivalents Restricted Cash And Restricted Cash Equivalents Including Disposal Group And Discontinued Operations",
        "periodEndLabel": "Cash, cash equivalents, and restricted cash at end of period",
        "periodStartLabel": "Cash, cash equivalents, and restricted cash at beginning of period",
        "terseLabel": "Cash, cash equivalents, and restricted cash",
        "totalLabel": "Cash, cash equivalents, and restricted cash"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect": {
     "auth_ref": [
      "r134",
      "r733"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in cash, cash equivalents, and cash and cash equivalents restricted to withdrawal or usage; including effect from exchange rate change. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
        "terseLabel": "Change in cash, cash equivalents, and restricted cash",
        "totalLabel": "Change in cash, cash equivalents, and restricted cash:"
       }
      }
     },
     "localname": "CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries": {
     "auth_ref": [
      "r169"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents disclosure of the aggregate cash dividends paid to the entity by consolidated subsidiaries.",
        "label": "Cash dividends paid to parent company by MGE",
        "negatedLabel": "Cash dividends paid to parent by MGE",
        "terseLabel": "Cash dividends paid to parent by MGE"
       }
      }
     },
     "localname": "CashDividendsPaidToParentCompanyByConsolidatedSubsidiaries",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CashFlowHedgingMember": {
     "auth_ref": [
      "r659"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Hedge of the exposure to variability in the cash flows of a recognized asset or liability, or of a forecasted transaction, that is attributable to a particular risk.",
        "label": "Cash Flow Hedging [Member]"
       }
      }
     },
     "localname": "CashFlowHedgingMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Significant noncash investing activities:"
       }
      }
     },
     "localname": "CashFlowNoncashInvestingAndFinancingActivitiesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ChangesInProjectedBenefitObligationsFairValueOfPlanAssetsAndFundedStatusOfPlanTableTextBlock": {
     "auth_ref": [
      "r472"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the change in the benefit obligation, fair value of plan assets, and funded status of pension plans or other employee benefit plans.",
        "label": "Changes in Projected Benefit Obligations, Fair Value of Plan Assets, and Funded Status of Plan [Table Text Block]",
        "terseLabel": "Schedule of Benefit Obligations and Change in Plan Assets"
       }
      }
     },
     "localname": "ChangesInProjectedBenefitObligationsFairValueOfPlanAssetsAndFundedStatusOfPlanTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ClassOfStockLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Class of Stock [Line Items]"
       }
      }
     },
     "localname": "ClassOfStockLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CollateralAlreadyPostedAggregateFairValue": {
     "auth_ref": [
      "r675"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate fair value of assets that are already posted, at the end of the reporting period, as collateral for derivative instruments with credit-risk-related contingent features.",
        "label": "Collateral posted"
       }
      }
     },
     "localname": "CollateralAlreadyPostedAggregateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommercialPaper": {
     "auth_ref": [
      "r31",
      "r843",
      "r870"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying value as of the balance sheet date of short-term borrowings using unsecured obligations issued by banks, corporations and other borrowers to investors. The maturities of these money market securities generally do not exceed 270 days.",
        "label": "Commercial paper outstanding"
       }
      }
     },
     "localname": "CommercialPaper",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommitmentsAndContingencies": {
     "auth_ref": [
      "r68",
      "r354",
      "r851",
      "r875"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Represents the caption on the face of the balance sheet to indicate that the entity has entered into (1) purchase or supply arrangements that will require expending a portion of its resources to meet the terms thereof, and (2) is exposed to potential losses or, less frequently, gains, arising from (a) possible claims against a company's resources due to future performance under contract terms, and (b) possible losses or likely gains from uncertainties that will ultimately be resolved when one or more future events that are deemed likely to occur do occur or fail to occur.",
        "label": "Commitments and contingencies (see Footnote 16)",
        "terseLabel": "Commitments and contingencies (see Footnote 3)"
       }
      }
     },
     "localname": "CommitmentsAndContingencies",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommitmentsAndContingenciesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments and Contingencies Disclosure [Abstract]",
        "terseLabel": "Commitments and Contingencies"
       }
      }
     },
     "localname": "CommitmentsAndContingenciesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommitmentsContingenciesAndGuaranteesTextBlock": {
     "auth_ref": [
      "r353",
      "r356",
      "r357"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for commitments, contingencies, and guarantees.",
        "label": "Commitments and Contingencies"
       }
      }
     },
     "localname": "CommitmentsContingenciesAndGuaranteesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingencies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_CommodityContractMember": {
     "auth_ref": [
      "r485",
      "r670"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Derivative instrument whose primary underlying risk is tied to commodity prices.",
        "label": "Commodity Derivative Contracts [Member]",
        "terseLabel": "Commodity Derivative Contracts [Member]"
       }
      }
     },
     "localname": "CommodityContractMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockCapitalSharesReservedForFutureIssuance": {
     "auth_ref": [
      "r71"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate number of common shares reserved for future issuance.",
        "label": "Common Stock Capital Shares Reserved For Future Issuance",
        "terseLabel": "Common stock to be issued with plan"
       }
      }
     },
     "localname": "CommonStockCapitalSharesReservedForFutureIssuance",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockDividendsPerShareCashPaid": {
     "auth_ref": [
      "r429"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate dividends paid during the period for each share of common stock outstanding.",
        "label": "Dividends per share of common stock",
        "terseLabel": "Common stock dividends declared (in dollars per share)",
        "verboseLabel": "Dividends per share"
       }
      }
     },
     "localname": "CommonStockDividendsPerShareCashPaid",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/StatementMgeEnergyIncConsolidatedStatementsOfCommonEquityParentheticals"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockMember": {
     "auth_ref": [
      "r177",
      "r178",
      "r690"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Stock that is subordinate to all other stock of the issuer.",
        "label": "Common Stock [Member]"
       }
      }
     },
     "localname": "CommonStockMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common shareholders' equity"
       }
      }
     },
     "localname": "CommonStockNumberOfSharesParValueAndOtherDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_CommonStockParOrStatedValuePerShare": {
     "auth_ref": [
      "r43"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face amount or stated value per share of common stock.",
        "label": "Common stock, par value"
       }
      }
     },
     "localname": "CommonStockParOrStatedValuePerShare",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_CommonStockSharesAuthorized": {
     "auth_ref": [
      "r43"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The maximum number of common shares permitted to be issued by an entity's charter and bylaws.",
        "label": "Common stock, shares authorized"
       }
      }
     },
     "localname": "CommonStockSharesAuthorized",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesIssued": {
     "auth_ref": [
      "r43"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total number of common shares of an entity that have been sold or granted to shareholders (includes common shares that were issued, repurchased and remain in the treasury). These shares represent capital invested by the firm's shareholders and owners, and may be all or only a portion of the number of shares authorized. Shares issued include shares outstanding and shares held in the treasury.",
        "label": "Common stock, shares issued",
        "terseLabel": "Common stock, shares issued",
        "totalLabel": "Common Stock, Shares, Issued, Total"
       }
      }
     },
     "localname": "CommonStockSharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockSharesOutstanding": {
     "auth_ref": [
      "r43",
      "r422"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of common stock outstanding. Common stock represent the ownership interest in a corporation.",
        "label": "Common stock, shares outstanding",
        "periodEndLabel": "Common Stock, Shares, Outstanding, Ending Balance",
        "periodStartLabel": "Common Stock, Shares, Outstanding, Beginning Balance"
       }
      }
     },
     "localname": "CommonStockSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_CommonStockValue": {
     "auth_ref": [
      "r43",
      "r781"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 2.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Aggregate par or stated value of issued nonredeemable common stock (or common stock redeemable solely at the option of the issuer). This item includes treasury stock repurchased by the entity. Note: elements for number of nonredeemable common shares, par value and other disclosure concepts are in another section within stockholders' equity.",
        "label": "Common stock",
        "periodEndLabel": "Common Stock, Value, Issued, Ending Balance",
        "periodStartLabel": "Common Stock, Value, Issued, Beginning Balance",
        "totalLabel": "Common Stock, Value, Issued, Total"
       }
      }
     },
     "localname": "CommonStockValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CommonStocksIncludingAdditionalPaidInCapital": {
     "auth_ref": [
      "r43",
      "r45",
      "r429"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "order": 0.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of par value plus amounts in excess of par value or issuance value for common stock issued.",
        "label": "Common Stocks, Including Additional Paid in Capital",
        "periodEndLabel": "Common Stocks, Including Additional Paid in Capital, Ending Balance",
        "periodStartLabel": "Common Stocks, Including Additional Paid in Capital, Beginning Balance",
        "terseLabel": "Common shareholders' equity",
        "totalLabel": "Common Stocks, Including Additional Paid in Capital, Total"
       }
      }
     },
     "localname": "CommonStocksIncludingAdditionalPaidInCapital",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CompensationAndRetirementDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation and Retirement Disclosure [Abstract]",
        "terseLabel": "Pension Plans and Other Postretirement Benefits"
       }
      }
     },
     "localname": "CompensationAndRetirementDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ComponentsOfDeferredTaxAssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components Of Deferred Tax Assets [Abstract]"
       }
      }
     },
     "localname": "ComponentsOfDeferredTaxAssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax assets and liabilities on balance sheet [Abstract]"
       }
      }
     },
     "localname": "ComponentsOfDeferredTaxAssetsAndLiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ComponentsOfDeferredTaxLiabilitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components Of Deferred Tax Liabilities [Abstract]"
       }
      }
     },
     "localname": "ComponentsOfDeferredTaxLiabilitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskBenchmarkDomain": {
     "auth_ref": [
      "r226",
      "r227",
      "r270",
      "r718",
      "r719",
      "r922"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The denominator in a calculation of a disclosed concentration risk percentage.",
        "label": "Concentration Risk Benchmark [Domain]"
       }
      }
     },
     "localname": "ConcentrationRiskBenchmarkDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ConcentrationRiskByBenchmarkAxis": {
     "auth_ref": [
      "r226",
      "r227",
      "r270",
      "r718",
      "r719",
      "r901",
      "r922"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by benchmark of concentration risk.",
        "label": "Concentration Risk Benchmark [Axis]"
       }
      }
     },
     "localname": "ConcentrationRiskByBenchmarkAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskByTypeAxis": {
     "auth_ref": [
      "r226",
      "r227",
      "r270",
      "r718",
      "r719",
      "r901",
      "r922"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of concentration risk, for example, but not limited to, asset, liability, net assets, geographic, customer, employees, supplier, lender.",
        "label": "Concentration Risk Type [Axis]"
       }
      }
     },
     "localname": "ConcentrationRiskByTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ConcentrationRiskPercentage1": {
     "auth_ref": [
      "r226",
      "r227",
      "r270",
      "r718",
      "r719"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For an entity that discloses a concentration risk in relation to quantitative amount, which serves as the \"benchmark\" (or denominator) in the equation, this concept represents the concentration percentage derived from the division.",
        "label": "Concentration risk, percentage"
       }
      }
     },
     "localname": "ConcentrationRiskPercentage1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ConcentrationRiskTypeDomain": {
     "auth_ref": [
      "r226",
      "r227",
      "r270",
      "r718",
      "r719",
      "r922"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For an entity that discloses a concentration risk as a percentage of some financial balance or benchmark, identifies the type (for example, asset, liability, net assets, geographic, customer, employees, supplier, lender) of the concentration.",
        "label": "Concentration Risk Type [Domain]"
       }
      }
     },
     "localname": "ConcentrationRiskTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock": {
     "auth_ref": [
      "r6",
      "r168",
      "r630"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for condensed financial information, including the financial position, cash flows, and the results of operations of the registrant (parent company) as of the same dates or for the same periods for which audited consolidated financial statements are being presented. Alternatively, the details of this disclosure can be reported by the specific parent company taxonomy elements, indicating the appropriate date and period contexts in an instance document.",
        "label": "Condensed Parent Company Financial Statements"
       }
      }
     },
     "localname": "CondensedFinancialInformationOfParentCompanyOnlyDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DisclosureCondensedParentCompanyFinancialStatements"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ConsolidationPolicyTextBlock": {
     "auth_ref": [
      "r151",
      "r637"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy regarding (1) the principles it follows in consolidating or combining the separate financial statements, including the principles followed in determining the inclusion or exclusion of subsidiaries or other entities in the consolidated or combined financial statements and (2) its treatment of interests (for example, common stock, a partnership interest or other means of exerting influence) in other entities, for example consolidation or use of the equity or cost methods of accounting.  The accounting policy may also address the accounting treatment for intercompany accounts and transactions, noncontrolling interest, and the income statement treatment in consolidation for issuances of stock by a subsidiary.",
        "label": "Principles of Consolidation"
       }
      }
     },
     "localname": "ConsolidationPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ConstructionInProgressGross": {
     "auth_ref": [
      "r332"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 0.0,
       "parentTag": "us-gaap_PropertyPlantAndEquipmentNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of structure or a modification to a structure under construction. Includes recently completed structures or modifications to structures that have not been placed into service.",
        "label": "Construction work in progress",
        "terseLabel": "Total incurred costs to date"
       }
      }
     },
     "localname": "ConstructionInProgressGross",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CorporateAndOtherMember": {
     "auth_ref": [
      "r231"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Component of an entity that provides financial and operational oversight and administrative support for other segments and other segments not separately reported due to size or nature of business activities. Excludes intersegment elimination and reconciling items.",
        "label": "All Others [Member]"
       }
      }
     },
     "localname": "CorporateAndOtherMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_CostOfRevenue": {
     "auth_ref": [
      "r116",
      "r158",
      "r296",
      "r361",
      "r362",
      "r363",
      "r366",
      "r367",
      "r368",
      "r370",
      "r372",
      "r374",
      "r375",
      "r720"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "order": 1.0,
       "parentTag": "mgee_EquityMethodInvestmentSummarizedFinancialInformationNetIncomeLossBeforeTaxes",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate cost of goods produced and sold and services rendered during the reporting period.",
        "label": "Cost Of Revenue",
        "negatedLabel": "Operating expenses",
        "totalLabel": "Cost of Revenue, Total"
       }
      }
     },
     "localname": "CostOfRevenue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CurrentFederalTaxExpenseBenefit": {
     "auth_ref": [
      "r159",
      "r607",
      "r620"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current federal tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Current payable: Federal"
       }
      }
     },
     "localname": "CurrentFederalTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_CurrentStateAndLocalTaxExpenseBenefit": {
     "auth_ref": [
      "r159",
      "r607",
      "r620"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current state and local tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Current payable: State"
       }
      }
     },
     "localname": "CurrentStateAndLocalTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Disclosure [Abstract]"
       }
      }
     },
     "localname": "DebtDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentAxis": {
     "auth_ref": [
      "r34",
      "r36",
      "r37",
      "r157",
      "r168",
      "r376",
      "r377",
      "r378",
      "r379",
      "r380",
      "r381",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r397",
      "r398",
      "r399",
      "r400",
      "r745",
      "r844",
      "r847",
      "r863"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of debt instrument, including, but not limited to, draws against credit facilities.",
        "label": "Debt Instrument [Axis]"
       }
      }
     },
     "localname": "DebtInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentCarryingAmount": {
     "auth_ref": [
      "r37",
      "r394",
      "r847",
      "r863"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1": {
       "order": 0.0,
       "parentTag": "us-gaap_LongTermDebtNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt.",
        "label": "Long-term debt, gross, current and noncurrent",
        "terseLabel": "Long-term debt, gross",
        "totalLabel": "Long-term debt, gross",
        "verboseLabel": "Total Long-Term Debt"
       }
      }
     },
     "localname": "DebtInstrumentCarryingAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentFaceAmount": {
     "auth_ref": [
      "r376",
      "r397",
      "r398",
      "r743",
      "r745",
      "r746"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Face (par) amount of debt instrument at time of issuance.",
        "label": "Debt Instrument, Face Amount",
        "terseLabel": "Face amount"
       }
      }
     },
     "localname": "DebtInstrumentFaceAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentInterestRateStatedPercentage": {
     "auth_ref": [
      "r64",
      "r377"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Contractual interest rate for funds borrowed, under the debt agreement.",
        "label": "Interest rate"
       }
      }
     },
     "localname": "DebtInstrumentInterestRateStatedPercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DebtInstrumentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Debt Instrument [Line Items]"
       }
      }
     },
     "localname": "DebtInstrumentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentMaturityDate": {
     "auth_ref": [
      "r65",
      "r379",
      "r700"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Date when the debt instrument is scheduled to be fully repaid, in YYYY-MM-DD format.",
        "label": "Maturity date"
       }
      }
     },
     "localname": "DebtInstrumentMaturityDate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "dateItemType"
    },
    "us-gaap_DebtInstrumentNameDomain": {
     "auth_ref": [
      "r66",
      "r157",
      "r168",
      "r376",
      "r377",
      "r378",
      "r379",
      "r380",
      "r381",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r397",
      "r398",
      "r399",
      "r400",
      "r745"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The name for the particular debt instrument or borrowing that distinguishes it from other debt instruments or borrowings, including draws against credit facilities.",
        "label": "Debt Instrument, Name [Domain]"
       }
      }
     },
     "localname": "DebtInstrumentNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DebtInstrumentTable": {
     "auth_ref": [
      "r66",
      "r157",
      "r168",
      "r376",
      "r377",
      "r378",
      "r379",
      "r380",
      "r381",
      "r382",
      "r383",
      "r384",
      "r385",
      "r386",
      "r387",
      "r388",
      "r389",
      "r390",
      "r391",
      "r392",
      "r393",
      "r397",
      "r398",
      "r399",
      "r400",
      "r423",
      "r426",
      "r427",
      "r428",
      "r742",
      "r743",
      "r745",
      "r746",
      "r861"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table or schedule providing information pertaining to long-term debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer.",
        "label": "Schedule of Long-term Debt Instruments [Table]"
       }
      }
     },
     "localname": "DebtInstrumentTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtInstrumentTerm": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period of time between issuance and maturity of debt instrument, in PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days.",
        "label": "Debt Instrument, Term",
        "terseLabel": "Term"
       }
      }
     },
     "localname": "DebtInstrumentTerm",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet": {
     "auth_ref": [
      "r383",
      "r395",
      "r397",
      "r398",
      "r744"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1": {
       "order": 2.0,
       "parentTag": "us-gaap_LongTermDebtNoncurrent",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unamortized debt discount (premium) and debt issuance costs.",
        "label": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net",
        "negatedLabel": "Unamortized discount and debt issuance costs",
        "terseLabel": "Unamortized discount and debt issuance costs",
        "totalLabel": "Debt Instrument, Unamortized Discount (Premium) and Debt Issuance Costs, Net, Total"
       }
      }
     },
     "localname": "DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DebtInstrumentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Plant related debt items"
       }
      }
     },
     "localname": "DebtInstrumentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DebtPolicyTextBlock": {
     "auth_ref": [
      "r358"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy related to debt. Includes, but is not limited to, debt issuance costs, the effects of refinancings, method of amortizing debt issuance costs and original issue discount, and classifications of debt.",
        "label": "Debt Issuance Costs"
       }
      }
     },
     "localname": "DebtPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DeferredCompensationArrangementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred Compensation Arrangements [Abstract]",
        "terseLabel": "Deferred compensation plan [Abstract]"
       }
      }
     },
     "localname": "DeferredCompensationArrangementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredDerivativeGainLossMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Rate action of a regulator resulting in capitalization or accrual of gain (loss) on derivative contracts.",
        "label": "Deferred Derivative Gain (Loss) [Member]",
        "terseLabel": "Derivatives [Member]"
       }
      }
     },
     "localname": "DeferredDerivativeGainLossMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DeferredFederalIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r159",
      "r608",
      "r620"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred federal income tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Net-deferred: Federal",
        "negatedLabel": "Income tax provision",
        "negatedTerseLabel": "Income tax (provision) benefit",
        "terseLabel": "Income tax provision",
        "totalLabel": "Total income tax provision"
       }
      }
     },
     "localname": "DeferredFederalIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredFuelCostsMember": {
     "auth_ref": [
      "r932"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Rate action of a regulator resulting in capitalization or accrual of fuel costs incurred.",
        "label": "Deferred Fuel Costs [Member]"
       }
      }
     },
     "localname": "DeferredFuelCostsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DeferredIncomeTaxChargesMember": {
     "auth_ref": [
      "r932",
      "r942",
      "r946",
      "r947"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Rate action of a regulator resulting in capitalization or accrual of income taxes.",
        "label": "Income Taxes [Member]"
       }
      }
     },
     "localname": "DeferredIncomeTaxChargesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DeferredIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r140",
      "r159",
      "r608",
      "r620",
      "r621",
      "r622"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 13.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred income tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Deferred income taxes",
        "totalLabel": "Deferred Income Tax Expense (Benefit), Total"
       }
      }
     },
     "localname": "DeferredIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxLiabilities": {
     "auth_ref": [
      "r40",
      "r41",
      "r597",
      "r846",
      "r862"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences.",
        "label": "Deferred Tax Liabilities, Gross",
        "totalLabel": "Gross deferred income tax liabilities"
       }
      }
     },
     "localname": "DeferredIncomeTaxLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredIncomeTaxLiabilitiesNet": {
     "auth_ref": [
      "r582",
      "r583"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 6.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences with jurisdictional netting.",
        "label": "Deferred income taxes noncurrent",
        "terseLabel": "Deferred income taxes",
        "totalLabel": "Deferred Income Tax Liabilities, Net, Total"
       }
      }
     },
     "localname": "DeferredIncomeTaxLiabilitiesNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r159",
      "r608",
      "r620"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred state and local tax expense (benefit) pertaining to income (loss) from continuing operations.",
        "label": "Net-deferred: State"
       }
      }
     },
     "localname": "DeferredStateAndLocalIncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsDerivativeInstruments": {
     "auth_ref": [
      "r605",
      "r606"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from derivative instruments.",
        "label": "Derivatives",
        "negatedLabel": "Derivatives",
        "terseLabel": "Derivatives"
       }
      }
     },
     "localname": "DeferredTaxAssetsDerivativeInstruments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsEquityMethodInvestments": {
     "auth_ref": [
      "r605",
      "r606"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from equity method investments.",
        "label": "Deferred Tax Assets Equity Method Investments",
        "negatedTerseLabel": "Investment in ATC",
        "terseLabel": "Investment in ATC"
       }
      }
     },
     "localname": "DeferredTaxAssetsEquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsGross": {
     "auth_ref": [
      "r598"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards.",
        "label": "Gross deferred income tax assets",
        "negatedTotalLabel": "Gross deferred income tax assets",
        "totalLabel": "Gross deferred income tax assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsGross",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsNet": {
     "auth_ref": [
      "r600"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_DeferredTaxLiabilities",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences and carryforwards.",
        "label": "Net deferred income tax assets",
        "negatedTotalLabel": "Net deferred income tax assets",
        "totalLabel": "Net deferred income tax assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwards": {
     "auth_ref": [
      "r605",
      "r606"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible operating loss carryforwards.",
        "label": "Operating loss carryforward, deferred tax asset",
        "totalLabel": "Deferred Tax Assets, Operating Loss Carryforwards, Total"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryforwards",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsComponentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating loss deductions and tax credit carryforwards [Abstract]"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsComponentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DeferredTaxAssetsOperatingLossCarryforwardsStateAndLocal": {
     "auth_ref": [
      "r605",
      "r606"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible state and local operating loss carryforwards.",
        "label": "State net tax operating loss deductions"
       }
      }
     },
     "localname": "DeferredTaxAssetsOperatingLossCarryforwardsStateAndLocal",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsOther": {
     "auth_ref": [
      "r605",
      "r606"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before allocation of valuation allowance, of deferred tax asset attributable to deductible temporary differences, classified as other.",
        "label": "Deferred Tax Assets, Other",
        "negatedLabel": "Other deferred tax assets",
        "terseLabel": "Other deferred tax assets"
       }
      }
     },
     "localname": "DeferredTaxAssetsOther",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsRegulatoryAssetsAndLiabilities": {
     "auth_ref": [
      "r605",
      "r606"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences derived regulatory assets and liabilities.",
        "label": "Deferred tax regulatory account",
        "negatedLabel": "Deferred tax regulatory account",
        "terseLabel": "Deferred tax regulatory account"
       }
      }
     },
     "localname": "DeferredTaxAssetsRegulatoryAssetsAndLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsTaxCreditCarryforwards": {
     "auth_ref": [
      "r603",
      "r605",
      "r606"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before allocation of a valuation allowances, of deferred tax assets attributable to deductible tax credit carryforwards including, but not limited to, research, foreign, general business, alternative minimum tax, and other deductible tax credit carryforwards.",
        "label": "Tax credit carryforward, deferred tax asset",
        "totalLabel": "Deferred Tax Assets, Tax Credit Carryforwards, Total"
       }
      }
     },
     "localname": "DeferredTaxAssetsTaxCreditCarryforwards",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits": {
     "auth_ref": [
      "r605",
      "r606"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before allocation of valuation allowances of deferred tax asset attributable to deductible temporary differences from compensation and benefits costs.",
        "label": "Deferred Tax Assets, Tax Deferred Expense, Compensation and Benefits",
        "negatedLabel": "Pension and other postretirement benefits",
        "terseLabel": "Pension and other postretirement benefits",
        "totalLabel": "Deferred Tax Assets, Tax Deferred Expense, Compensation and Benefits, Total"
       }
      }
     },
     "localname": "DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefits",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxAssetsValuationAllowance": {
     "auth_ref": [
      "r599"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxAssetsNet",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax assets for which it is more likely than not that a tax benefit will not be realized.",
        "label": "Less valuation allowance",
        "negatedLabel": "Less valuation allowance",
        "totalLabel": "Deferred Tax Assets, Valuation Allowance, Total"
       }
      }
     },
     "localname": "DeferredTaxAssetsValuationAllowance",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilities": {
     "auth_ref": [
      "r583",
      "r600"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after deferred tax asset, of deferred tax liability attributable to taxable differences without jurisdictional netting.",
        "label": "Deferred Tax Liabilities",
        "negatedTotalLabel": "Deferred income taxes",
        "terseLabel": "Deferred income taxes",
        "totalLabel": "Deferred income taxes, net",
        "verboseLabel": "Deferred income tax asset - current"
       }
      }
     },
     "localname": "DeferredTaxLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesDeferredExpenseDeferredFinancingCosts": {
     "auth_ref": [
      "r605",
      "r606"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from debt issuance costs.",
        "label": "Bond transactions"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesDeferredExpenseDeferredFinancingCosts",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesDerivatives": {
     "auth_ref": [
      "r605",
      "r606"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from derivatives.",
        "label": "Deferred Tax Liabilities, Derivatives",
        "terseLabel": "Derivatives"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesDerivatives",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesOther": {
     "auth_ref": [
      "r605",
      "r606"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences classified as other.",
        "label": "Other deferred tax liabilities"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesOther",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DeferredTaxLiabilitiesPropertyPlantAndEquipment": {
     "auth_ref": [
      "r605",
      "r606"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_DeferredIncomeTaxLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of deferred tax liability attributable to taxable temporary differences from property, plant, and equipment.",
        "label": "Property-related"
       }
      }
     },
     "localname": "DeferredTaxLiabilitiesPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAccumulatedBenefitObligation": {
     "auth_ref": [
      "r493"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of actuarial present value of benefits attributed to employee service rendered, excluding assumptions about future compensation level.",
        "label": "Accumulated benefit obligation",
        "terseLabel": "Accumulated benefit obligation, end of year"
       }
      }
     },
     "localname": "DefinedBenefitPlanAccumulatedBenefitObligation",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanActualReturnOnPlanAssets": {
     "auth_ref": [
      "r474",
      "r535"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in plan assets of defined benefit plan from actual return (loss) determined by change in fair value of plan assets adjusted for contributions, benefit payments, and other expenses.",
        "label": "Actual return on plan assets"
       }
      }
     },
     "localname": "DefinedBenefitPlanActualReturnOnPlanAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanActuarialGainLoss": {
     "auth_ref": [
      "r466"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) from change in actuarial assumptions which (increases) decreases benefit obligation of defined benefit plan. Assumptions include, but are not limited to, interest, mortality, employee turnover, salary, and temporary deviation from substantive plan.",
        "label": "Actuarial loss (gain)",
        "negatedLabel": "Actuarial loss (gain)"
       }
      }
     },
     "localname": "DefinedBenefitPlanActuarialGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAmortizationOfGainsLosses": {
     "auth_ref": [
      "r460",
      "r500",
      "r529",
      "r535",
      "r536"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2": {
       "order": 6.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in net periodic benefit (cost) credit of defined benefit plan.",
        "label": "Defined Benefit Plan Amortization Of Gains Losses",
        "negatedLabel": "Actuarial loss",
        "terseLabel": "Actuarial loss"
       }
      }
     },
     "localname": "DefinedBenefitPlanAmortizationOfGainsLosses",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit": {
     "auth_ref": [
      "r460",
      "r501",
      "r530",
      "r535",
      "r536"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2": {
       "order": 5.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of prior service cost (credit) recognized in net periodic benefit cost (credit) of defined benefit plan.",
        "label": "Defined Benefit Plan Amortization Of Prior Service Cost Credit",
        "terseLabel": "Prior service (credit) cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanAmortizationOfPriorServiceCostCredit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAmortizationOfTransitionAssetObligation": {
     "auth_ref": [
      "r460",
      "r502",
      "r531"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2": {
       "order": 4.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transition asset (obligation) recognized in net periodic benefit (cost) credit of defined benefit plan.",
        "label": "Defined Benefit Plan Amortization Of Transition Obligations Assets",
        "negatedLabel": "Transition obligation"
       }
      }
     },
     "localname": "DefinedBenefitPlanAmortizationOfTransitionAssetObligation",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAmountsRecognizedInBalanceSheetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amounts recognized in the consolidated balance sheets to reflect funded status of plans [Abstract]"
       }
      }
     },
     "localname": "DefinedBenefitPlanAmountsRecognizedInBalanceSheetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent": {
     "auth_ref": [
      "r30",
      "r458",
      "r459",
      "r482",
      "r535",
      "r841",
      "r866"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1": {
       "order": 0.0,
       "parentTag": "us-gaap_DefinedBenefitPlanFundedStatusOfPlan",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 5.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of asset, recognized in statement of financial position, for overfunded defined benefit pension and other postretirement plans.",
        "label": "Long-term asset",
        "terseLabel": "Pension and other postretirement benefit asset"
       }
      }
     },
     "localname": "DefinedBenefitPlanAssetsForPlanBenefitsNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanAssumedHealthCareCostTrendRatesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assumed health care cost trend rates:"
       }
      }
     },
     "localname": "DefinedBenefitPlanAssumedHealthCareCostTrendRatesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate": {
     "auth_ref": [
      "r507"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average rate for present value of future retirement benefits cash flows, used to determine benefit obligation of defined benefit plan.",
        "label": "Discount rate"
       }
      }
     },
     "localname": "DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationDiscountRate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease": {
     "auth_ref": [
      "r508"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average rate increase of compensation, used to determine benefit obligation of defined benefit plan. Plan includes, but is not limited to, pay-related defined benefit plan.",
        "label": "Rate of compensation increase"
       }
      }
     },
     "localname": "DefinedBenefitPlanAssumptionsUsedCalculatingBenefitObligationRateOfCompensationIncrease",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate": {
     "auth_ref": [
      "r507"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average rate for present value of future retirement benefits cash flows, used to determine net periodic benefit cost of defined benefit plan.",
        "label": "Defined Benefit Plan, Assumptions Used Calculating Net Periodic Benefit Cost, Discount Rate",
        "terseLabel": "Discount rate"
       }
      }
     },
     "localname": "DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostDiscountRate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets": {
     "auth_ref": [
      "r509",
      "r534"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average rate of return on plan assets, reflecting average rate of earnings expected on existing plan assets and expected contributions, used to determine net periodic benefit cost of defined benefit plan.",
        "label": "Long-term rate of return"
       }
      }
     },
     "localname": "DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostExpectedLongTermReturnOnAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease": {
     "auth_ref": [
      "r508"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average rate of compensation increase used to determine net periodic benefit cost of defined benefit plan. Plan includes, but is not limited to, pay-related defined benefit plan.",
        "label": "Defined Benefit Plan, Assumptions Used Calculating Net Periodic Benefit Cost, Rate of Compensation Increase",
        "terseLabel": "Rate of compensation increase"
       }
      }
     },
     "localname": "DefinedBenefitPlanAssumptionsUsedCalculatingNetPeriodicBenefitCostRateOfCompensationIncrease",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DefinedBenefitPlanBenefitObligation": {
     "auth_ref": [
      "r461"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of actuarial present value of benefits attributed to service rendered by employee for defined benefit plan.",
        "label": "Benefit obligations",
        "periodEndLabel": "Benefit obligation as of December 31",
        "periodStartLabel": "Net benefit obligation as of January 1",
        "terseLabel": "Projected benefit obligation, end of year"
       }
      }
     },
     "localname": "DefinedBenefitPlanBenefitObligation",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanBenefitObligationBenefitsPaid": {
     "auth_ref": [
      "r468",
      "r539"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of payment to participant of defined benefit plan which decreases benefit obligation. For pension plan, payment includes, but is not limited to, pension benefits and death benefits. For other postretirement plan, payment includes, but is not limited to, prescription drug benefits, health care benefits, life insurance benefits, and legal, educational and advisory services.",
        "label": "Gross benefits paid",
        "negatedLabel": "Gross benefits paid"
       }
      }
     },
     "localname": "DefinedBenefitPlanBenefitObligationBenefitsPaid",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanBenefitObligationContributionsByPlanParticipant": {
     "auth_ref": [
      "r465"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of contributions received by defined benefit plan from participant which increase benefit obligation.",
        "label": "Plan participants' contributions",
        "negatedLabel": "Plan participants' contributions"
       }
      }
     },
     "localname": "DefinedBenefitPlanBenefitObligationContributionsByPlanParticipant",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanBenefitObligationPrescriptionDrugSubsidyReceipt": {
     "auth_ref": [
      "r461",
      "r539"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before benefit payment, of receipt from prescription drug subsidy which increases benefit obligation of defined benefit postretirement plan.",
        "label": "Less: federal subsidy on benefits paid",
        "negatedLabel": "Less: federal subsidy on benefits paid"
       }
      }
     },
     "localname": "DefinedBenefitPlanBenefitObligationPrescriptionDrugSubsidyReceipt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanByPlanAssetCategoriesAxis": {
     "auth_ref": [
      "r484",
      "r485",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r513",
      "r535"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by defined benefit plan asset investment.",
        "label": "Defined Benefit Plan by Plan Asset Categories [Axis]"
       }
      }
     },
     "localname": "DefinedBenefitPlanByPlanAssetCategoriesAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanChangeInBenefitObligationRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Change in benefit obligations [Roll Forward]"
       }
      }
     },
     "localname": "DefinedBenefitPlanChangeInBenefitObligationRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Change in plan assets [Roll Forward]"
       }
      }
     },
     "localname": "DefinedBenefitPlanChangeInFairValueOfPlanAssetsRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanContributionsByEmployer": {
     "auth_ref": [
      "r476",
      "r485",
      "r487",
      "r533",
      "r535",
      "r536"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of contribution received by defined benefit plan from employer which increases plan assets.",
        "label": "Employer contributions"
       }
      }
     },
     "localname": "DefinedBenefitPlanContributionsByEmployer",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanDisclosureLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Defined Benefit Plan Disclosure [Line Items]"
       }
      }
     },
     "localname": "DefinedBenefitPlanDisclosureLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanEffectOfOnePercentagePointChangeInAssumedHealthCareCostTrendRatesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "How assumed 1% increase or decrease in health care cost trends could impact postretirement benefits [Abstract]"
       }
      }
     },
     "localname": "DefinedBenefitPlanEffectOfOnePercentagePointChangeInAssumedHealthCareCostTrendRatesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanEffectOfOnePercentagePointDecreaseOnAccumulatedPostretirementBenefitObligation1": {
     "auth_ref": [
      "r512"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of decrease in accumulated postretirement benefit obligation from one-percentage-point decrease in assumed health care cost trend rate.",
        "label": "Effect on other postretirement benefit obligation - 1% decrease",
        "negatedLabel": "Effect on other postretirement benefit obligation - 1% decrease"
       }
      }
     },
     "localname": "DefinedBenefitPlanEffectOfOnePercentagePointDecreaseOnAccumulatedPostretirementBenefitObligation1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanEffectOfOnePercentagePointDecreaseOnServiceAndInterestCostComponents1": {
     "auth_ref": [
      "r512"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of decrease in service and interest cost components of net periodic postretirement benefit cost from one-percentage-point decrease in assumed health care cost trend rate.",
        "label": "Defined Benefit Plan, Effect of One Percentage Point Decrease on Service and Interest Cost Components",
        "negatedTerseLabel": "Effect on total service and interest cost components - 1% decrease",
        "terseLabel": "Effect on total service and interest cost components - 1% decrease"
       }
      }
     },
     "localname": "DefinedBenefitPlanEffectOfOnePercentagePointDecreaseOnServiceAndInterestCostComponents1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanEffectOfOnePercentagePointIncreaseOnAccumulatedPostretirementBenefitObligation": {
     "auth_ref": [
      "r512"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in accumulated postretirement benefit obligation from one-percentage-point increase in assumed health care cost trend rate.",
        "label": "Effect on other postretirement benefit obligation - 1% increase"
       }
      }
     },
     "localname": "DefinedBenefitPlanEffectOfOnePercentagePointIncreaseOnAccumulatedPostretirementBenefitObligation",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanEffectOfOnePercentagePointIncreaseOnServiceAndInterestCostComponents": {
     "auth_ref": [
      "r512"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in service and interest cost components of net periodic postretirement benefit cost from one-percentage-point increase in assumed health care cost trend rate.",
        "label": "Defined Benefit Plan, Effect of One Percentage Point Increase on Service and Interest Cost Components",
        "terseLabel": "Effect on total service and interest cost components - 1% increase"
       }
      }
     },
     "localname": "DefinedBenefitPlanEffectOfOnePercentagePointIncreaseOnServiceAndInterestCostComponents",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Benefit Payments, Gross"
       }
      }
     },
     "localname": "DefinedBenefitPlanEstimatedFutureBenefitPaymentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanEstimatedFutureEmployerContributionsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expected Cash Flows"
       }
      }
     },
     "localname": "DefinedBenefitPlanEstimatedFutureEmployerContributionsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter": {
     "auth_ref": [
      "r494"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in five fiscal years after fifth fiscal year following current fiscal year.",
        "label": "DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter",
        "terseLabel": "Defined benefit plan expected future benefit payments, 2027-2031"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsFiveFiscalYearsThereafter",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths": {
     "auth_ref": [
      "r494"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in next fiscal year following current fiscal year.",
        "label": "Defined Benefit Plan Expected Future Benefit Payments Next Twelve Months",
        "terseLabel": "Defined benefit plan expected future benefit payments, 2022"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive": {
     "auth_ref": [
      "r494"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in fifth fiscal year following current fiscal year.",
        "label": "Defined Benefit Plan Expected Future Benefit Payments Year Five",
        "terseLabel": "Defined benefit plan expected future benefit payments, 2026"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFive",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour": {
     "auth_ref": [
      "r494"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in fourth fiscal year following current fiscal year.",
        "label": "Defined Benefit Plan Expected Future Benefit Payments Year Four",
        "terseLabel": "Defined benefit plan expected future benefit payments, 2025"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsYearFour",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree": {
     "auth_ref": [
      "r494"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in third fiscal year following current fiscal year.",
        "label": "Defined Benefit Plan Expected Future Benefit Payments Year Three",
        "terseLabel": "Defined benefit plan expected future benefit payments, 2024"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsYearThree",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo": {
     "auth_ref": [
      "r494"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of benefit for defined benefit plan expected to be paid in second fiscal year following current fiscal year.",
        "label": "Defined Benefit Plan Expected Future Benefit Payments Year Two",
        "terseLabel": "Defined benefit plan expected future benefit payments, 2023"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedFutureBenefitPaymentsYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear": {
     "auth_ref": [
      "r495",
      "r536"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of contribution expected to be received by defined benefit plan from employer in next fiscal year following current fiscal year.",
        "label": "Defined Benefit Plans, Estimated Future Employer Contributions in Next Fiscal Year",
        "terseLabel": "Expected employer contributions, 2022"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedFutureEmployerContributionsNextFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets": {
     "auth_ref": [
      "r460",
      "r499",
      "r528",
      "r535",
      "r536"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2": {
       "order": 2.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expected return (loss) recognized in net periodic benefit (cost) credit, calculated based on expected long-term rate of return and market-related value of plan assets of defined benefit plan.",
        "label": "Expected return on assets",
        "negatedLabel": "Expected return on assets"
       }
      }
     },
     "localname": "DefinedBenefitPlanExpectedReturnOnPlanAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanFairValueOfPlanAssets": {
     "auth_ref": [
      "r473",
      "r485",
      "r487",
      "r488",
      "r535"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of asset segregated and restricted to provide benefit under defined benefit plan. Asset includes, but is not limited to, stock, bond, other investment, earning from investment, and contribution by employer and employee.",
        "label": "Fair value of plan assets",
        "periodEndLabel": "Fair value of plan assets as of December 31",
        "periodStartLabel": "Fair value of plan assets as of January 1",
        "terseLabel": "Fair value of plan assets",
        "totalLabel": "Fair value of plan assets"
       }
      }
     },
     "localname": "DefinedBenefitPlanFairValueOfPlanAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanFundedStatusOfPlan": {
     "auth_ref": [
      "r458",
      "r482",
      "r535"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of funded (unfunded) status of defined benefit plan, measured as difference between fair value of plan assets and benefit obligation. Includes, but is not limited to, overfunded (underfunded) status.",
        "label": "Defined Benefit Plan, Funded Status of Plan",
        "terseLabel": "Funded Status as of December 31",
        "totalLabel": "Net liability"
       }
      }
     },
     "localname": "DefinedBenefitPlanFundedStatusOfPlan",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanHealthCareCostTrendRateAssumedNextFiscalYear": {
     "auth_ref": [
      "r511"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Assumed rate, for next fiscal year, based on annual change in cost of health care cost benefits used to measure expected cost of benefits covered by defined benefit postretirement plan. Factors include, but are not limited to, estimate of health care inflation, change in health care utilization or delivery pattern, technological advances, and change in health status of participant. Excludes factors for change in composition of plan population by age and dependency status.",
        "label": "Health care cost trend rate assumed for next year"
       }
      }
     },
     "localname": "DefinedBenefitPlanHealthCareCostTrendRateAssumedNextFiscalYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DefinedBenefitPlanInformationAboutPlanAssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined Benefit Plan, Information about Plan Assets [Abstract]"
       }
      }
     },
     "localname": "DefinedBenefitPlanInformationAboutPlanAssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanInterestCost": {
     "auth_ref": [
      "r460",
      "r464",
      "r498",
      "r527",
      "r535",
      "r536"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2": {
       "order": 1.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost recognized for passage of time related to defined benefit plan.",
        "label": "Defined Benefit Plan Interest Cost",
        "terseLabel": "Interest cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanInterestCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost": {
     "auth_ref": [
      "r496",
      "r525",
      "r535",
      "r536"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of net periodic benefit cost (credit) for defined benefit plan.",
        "label": "Defined Benefit Plan Net Periodic Benefit Cost",
        "totalLabel": "Net periodic benefit cost (credit)"
       }
      }
     },
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCostAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of Net Periodic Benefit Cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanNetPeriodicBenefitCostAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanPensionPlanWithProjectedBenefitObligationInExcessOfPlanAssetsPlanAssets": {
     "auth_ref": [
      "r521",
      "r535"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of plan asset for defined benefit pension plan with projected benefit obligation in excess of plan assets.",
        "label": "Fair value of plan assets with projected benefit obligation in excess of plan assets, end of year"
       }
      }
     },
     "localname": "DefinedBenefitPlanPensionPlanWithProjectedBenefitObligationInExcessOfPlanAssetsPlanAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanPensionPlanWithProjectedBenefitObligationInExcessOfPlanAssetsProjectedBenefitObligation": {
     "auth_ref": [
      "r521",
      "r535"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of projected benefit obligation for defined benefit pension plan with projected benefit obligation in excess of plan assets.",
        "label": "Projected benefit obligation with projected benefit obligation in excess of plan assets, end of year"
       }
      }
     },
     "localname": "DefinedBenefitPlanPensionPlanWithProjectedBenefitObligationInExcessOfPlanAssetsProjectedBenefitObligation",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated benefit obligation in excess of plan assets [Abstract]"
       }
      }
     },
     "localname": "DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAggregateAccumulatedBenefitObligation": {
     "auth_ref": [
      "r521",
      "r522",
      "r535"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of accumulated benefit obligation for defined benefit plan with accumulated benefit obligation in excess of plan assets.",
        "label": "Accumulated benefit obligation, end of year",
        "terseLabel": "Accumulated benefit obligation with accumulated benefit obligation in excess of plan assets, end of year"
       }
      }
     },
     "localname": "DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAggregateAccumulatedBenefitObligation",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAggregateFairValueOfPlanAssets": {
     "auth_ref": [
      "r521",
      "r522",
      "r535"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of plan asset for defined benefit plan with accumulated benefit obligation in excess of plan assets.",
        "label": "Fair value of plan assets with accumulated benefit obligation in excess of plan assets, end of year"
       }
      }
     },
     "localname": "DefinedBenefitPlanPensionPlansWithAccumulatedBenefitObligationsInExcessOfPlanAssetsAggregateFairValueOfPlanAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanPlanAssetsBenefitsPaid": {
     "auth_ref": [
      "r478",
      "r539"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of payment to participant under defined benefit plan which decreases plan assets. For pension plan, payment includes, but is not limited to, pension benefits and death benefits. For other postretirement plan, payment includes, but is not limited to, prescription drug benefits, health care benefits, life insurance benefits, and legal, educational and advisory services.",
        "label": "Gross benefit paid",
        "negatedLabel": "DefinedBenefitPlanBenefitObligationBenefitsPaid",
        "negatedTerseLabel": "Gross benefits paid"
       }
      }
     },
     "localname": "DefinedBenefitPlanPlanAssetsBenefitsPaid",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanPlanAssetsContributionsByPlanParticipant": {
     "auth_ref": [
      "r477"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of contributions received by defined benefit plan from participant which increases plan assets.",
        "label": "Plan participant contributions",
        "negatedLabel": "Plan participants' contributions"
       }
      }
     },
     "localname": "DefinedBenefitPlanPlanAssetsContributionsByPlanParticipant",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanPlanAssetsTargetAllocationPercentage": {
     "auth_ref": [
      "r484",
      "r535"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of target investment allocation to total plan assets. Includes, but is not limited to, percentage on weighted-average basis if more than one plan.",
        "label": "Target Plan Asset Allocation"
       }
      }
     },
     "localname": "DefinedBenefitPlanPlanAssetsTargetAllocationPercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DefinedBenefitPlanPlansWithBenefitObligationsInExcessOfPlanAssetsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Projected benefit obligation in excess of plan assets [Abstract]"
       }
      }
     },
     "localname": "DefinedBenefitPlanPlansWithBenefitObligationsInExcessOfPlanAssetsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanServiceCost": {
     "auth_ref": [
      "r462",
      "r497",
      "r526",
      "r535",
      "r536"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2": {
       "order": 0.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost for actuarial present value of benefits attributed to service rendered by employee for defined benefit plan.",
        "label": "Defined Benefit Plan Service Cost",
        "terseLabel": "Service cost"
       }
      }
     },
     "localname": "DefinedBenefitPlanServiceCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanSpecialTerminationBenefits": {
     "auth_ref": [
      "r463"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2": {
       "order": 3.0,
       "parentTag": "us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in benefit obligation for benefits provided to employees payable from defined benefit plan or payable upon retirement.",
        "label": "Special termination benefits",
        "negatedLabel": "Special termination benefits"
       }
      }
     },
     "localname": "DefinedBenefitPlanSpecialTerminationBenefits",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DefinedBenefitPlanUltimateHealthCareCostTrendRate1": {
     "auth_ref": [
      "r511"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ultimate trend rate for health care cost for defined benefit postretirement plan.",
        "label": "Rate to which the cost trend rate is assumed to decline (the ultimate trend rate)"
       }
      }
     },
     "localname": "DefinedBenefitPlanUltimateHealthCareCostTrendRate1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DefinedBenefitPlanWeightedAverageAssetAllocations": {
     "auth_ref": [
      "r484"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of actual investment allocation to total plan assets. Includes, but is not limited to, percentage on weighted-average basis if more than one plan.",
        "label": "Defined Benefit Plan, Actual Plan Asset Allocations",
        "terseLabel": "Actual Plan Asset Allocation",
        "totalLabel": "Total"
       }
      }
     },
     "localname": "DefinedBenefitPlanWeightedAverageAssetAllocations",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingBenefitObligationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted-average assumptions used to determine benefit obligations:"
       }
      }
     },
     "localname": "DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingBenefitObligationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted-average assumptions used to determine net periodic cost:"
       }
      }
     },
     "localname": "DefinedBenefitPlanWeightedAverageAssumptionsUsedInCalculatingNetPeriodicBenefitCostAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DefinedBenefitPlanYearHealthCareCostTrendRateReachesUltimateTrendRate": {
     "auth_ref": [
      "r511"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Year ultimate health care cost trend rate is expected to be reached, in YYYY format.",
        "label": "Year that the rate reaches the ultimate trend rate"
       }
      }
     },
     "localname": "DefinedBenefitPlanYearHealthCareCostTrendRateReachesUltimateTrendRate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3"
     ],
     "xbrltype": "gYearListItemType"
    },
    "us-gaap_DefinedContributionPlanCostRecognized": {
     "auth_ref": [
      "r540"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost for defined contribution plan.",
        "label": "Defined contribution costs"
       }
      }
     },
     "localname": "DefinedContributionPlanCostRecognized",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssetCollateralObligationToReturnCashOffset": {
     "auth_ref": [
      "r82",
      "r655"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2": {
       "order": 2.0,
       "parentTag": "us-gaap_DerivativeAssets",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of obligation to return cash collateral under master netting arrangements offset against derivative assets.",
        "label": "Derivative Asset, Collateral, Obligation to Return Cash, Offset",
        "negatedLabel": "Collateral posted against derivative positions",
        "terseLabel": "Derivative asset, collateral offset"
       }
      }
     },
     "localname": "DerivativeAssetCollateralObligationToReturnCashOffset",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssetFairValueGrossLiability": {
     "auth_ref": [
      "r82",
      "r94",
      "r665"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2": {
       "order": 1.0,
       "parentTag": "us-gaap_DerivativeAssets",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of liability associated with financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset.",
        "label": "Derivative Asset, Fair Value, Gross Liability",
        "negatedLabel": "Gross amounts offset in balance sheet"
       }
      }
     },
     "localname": "DerivativeAssetFairValueGrossLiability",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeAssets": {
     "auth_ref": [
      "r83",
      "r87",
      "r92",
      "r715"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets not subject to a master netting arrangement and not elected to be offset.",
        "label": "Net amount presented in balance sheet",
        "terseLabel": "Derivative assets, net",
        "totalLabel": "Net amount presented in balance sheet"
       }
      }
     },
     "localname": "DerivativeAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeCollateralRightToReclaimCash": {
     "auth_ref": [
      "r84",
      "r88",
      "r90",
      "r677"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of right to receive cash collateral under master netting arrangements that have not been offset against derivative liabilities.",
        "label": "Derivative, Collateral, Right to Reclaim Cash",
        "terseLabel": "Derivative, right to reclaim collateral (receivable)"
       }
      }
     },
     "localname": "DerivativeCollateralRightToReclaimCash",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeContractTypeDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Financial instrument or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset.",
        "label": "Derivative Contract Type [Domain]"
       }
      }
     },
     "localname": "DerivativeContractTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeAsset": {
     "auth_ref": [
      "r81",
      "r92",
      "r93",
      "r665",
      "r799"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2": {
       "order": 0.0,
       "parentTag": "us-gaap_DerivativeAssets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, before effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets elected not to be offset. Excludes assets not subject to a master netting arrangement.",
        "label": "Asset Derivatives, fair value, gross basis",
        "terseLabel": "Gross amounts",
        "totalLabel": "Derivative Asset, Fair Value, Gross Asset, Total"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeAsset",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeLiability": {
     "auth_ref": [
      "r81",
      "r92",
      "r93",
      "r665",
      "r799"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3": {
       "order": 0.0,
       "parentTag": "us-gaap_DerivativeLiabilities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, before effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities elected not to be offset. Excludes liabilities not subject to a master netting arrangement.",
        "label": "Liability Derivatives, fair value, gross basis",
        "terseLabel": "Gross amounts",
        "totalLabel": "Derivative Liability, Fair Value, Gross Liability, Total"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeLiability",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeNet": {
     "auth_ref": [
      "r715"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of the assets less the liabilities of a derivative or group of derivatives.",
        "label": "Derivative fair value, net",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance",
        "totalLabel": "Derivative, Fair Value, Net, Total"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeFairValueOfDerivativeNetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Fair Value Of Derivative Net [Abstract]",
        "terseLabel": "Derivative Fair Values [Abstract]"
       }
      }
     },
     "localname": "DerivativeFairValueOfDerivativeNetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeGainLossOnDerivativeNet": {
     "auth_ref": [
      "r664"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in the fair value of derivatives recognized in the income statement.",
        "label": "Realized (loss) gain reclassified to income statement",
        "negatedLabel": "Realized (loss) gain reclassified to income statement",
        "negatedTerseLabel": "Realized losses (gains) on income statement",
        "terseLabel": "Realized losses (gains) on income statement",
        "totalLabel": "Derivative, Gain (Loss) on Derivative, Net, Total"
       }
      }
     },
     "localname": "DerivativeGainLossOnDerivativeNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeInstrumentRiskAxis": {
     "auth_ref": [
      "r92",
      "r663",
      "r666",
      "r669",
      "r671"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of derivative contract.",
        "label": "Derivative Instrument Risk [Axis]"
       }
      }
     },
     "localname": "DerivativeInstrumentRiskAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Derivative Instruments and Hedging Activities Disclosure [Abstract]",
        "terseLabel": "Derivative and Hedging Instruments"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock": {
     "auth_ref": [
      "r680",
      "r693"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for derivative instruments and hedging activities including, but not limited to, risk management strategies, non-hedging derivative instruments, assets, liabilities, revenue and expenses, and methodologies and assumptions used in determining the amounts.",
        "label": "Derivative and Hedging Instruments"
       }
      }
     },
     "localname": "DerivativeInstrumentsAndHedgingActivitiesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstruments"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis": {
     "auth_ref": [
      "r660",
      "r663",
      "r669"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of hedging relationship.",
        "label": "Hedging Relationship [Axis]"
       }
      }
     },
     "localname": "DerivativeInstrumentsGainLossByHedgingRelationshipAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable": {
     "auth_ref": [
      "r660",
      "r663",
      "r669",
      "r671",
      "r672",
      "r678",
      "r679"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about the location and amount of derivative instruments and nonderivative instruments designated as hedging instruments reported before netting adjustments, and the amount of gain (loss) on derivative instruments and nonderivative instruments designated and qualified as hedging instruments.",
        "label": "Derivative Instruments Gain Loss By Hedging Relationship By Income Statement Location By Derivative Instrument Risk [Table]"
       }
      }
     },
     "localname": "DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeInstrumentsGainLossLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Realized losses (gains) on income statement [Line Items]"
       }
      }
     },
     "localname": "DerivativeInstrumentsGainLossLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativeLiabilities": {
     "auth_ref": [
      "r83",
      "r87",
      "r92",
      "r715"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities not subject to a master netting arrangement and not elected to be offset.",
        "label": "Net amount presented in the balance sheet",
        "terseLabel": "Derivative liabilities, net",
        "totalLabel": "Net amount presented in the balance sheet"
       }
      }
     },
     "localname": "DerivativeLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilitiesCurrent": {
     "auth_ref": [
      "r83"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 6.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled within one year or normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset.",
        "label": "Derivative Liabilities Current",
        "terseLabel": "Other current liabilities",
        "verboseLabel": "Derivative liabilities"
       }
      }
     },
     "localname": "DerivativeLiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilitiesNoncurrent": {
     "auth_ref": [
      "r83"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset, expected to be settled after one year or the normal operating cycle, if longer. Includes assets not subject to a master netting arrangement and not elected to be offset.",
        "label": "Derivative Liabilities Noncurrent",
        "terseLabel": "Other deferred liabilities",
        "verboseLabel": "Derivative liabilities"
       }
      }
     },
     "localname": "DerivativeLiabilitiesNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilityCollateralRightToReclaimCashOffset": {
     "auth_ref": [
      "r82",
      "r655"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3": {
       "order": 2.0,
       "parentTag": "us-gaap_DerivativeLiabilities",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of right to receive cash collateral under master netting arrangements offset against derivative liabilities.",
        "label": "Derivative liability, collateral offset",
        "negatedLabel": "Collateral posted against derivative positions",
        "terseLabel": "Collateral posted against derivative positions",
        "verboseLabel": "Collateral posted against derivative positions"
       }
      }
     },
     "localname": "DerivativeLiabilityCollateralRightToReclaimCashOffset",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeLiabilityFairValueGrossAsset": {
     "auth_ref": [
      "r82",
      "r90",
      "r94",
      "r665"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3": {
       "order": 1.0,
       "parentTag": "us-gaap_DerivativeLiabilities",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of asset associated with financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset.",
        "label": "Gross amounts offset in balance sheet",
        "negatedLabel": "Gross amounts offset in balance sheet"
       }
      }
     },
     "localname": "DerivativeLiabilityFairValueGrossAsset",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeNetLiabilityPositionAggregateFairValue": {
     "auth_ref": [
      "r674"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate fair value amounts of derivative instruments that contain credit-risk-related contingent features that are in a net liability position at the end of the reporting period. For nonderivative instruments that are designated and qualify as hedging instruments, the fair value amounts are the carrying value of the nonderivative hedging instrument, including the adjustment for the foreign currency transaction gain (loss) on that instrument.",
        "label": "Derivative, Net Liability Position, Aggregate Fair Value",
        "verboseLabel": "Derivative, net liability position of counterparties"
       }
      }
     },
     "localname": "DerivativeNetLiabilityPositionAggregateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DerivativeNonmonetaryNotionalAmountEnergyMeasure": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nominal energy measure used to calculate payments on a derivative instrument.",
        "label": "Derivative, Nonmonetary Notional Amount, Energy Measure",
        "terseLabel": "Notional amount, energy measure (in MWh)"
       }
      }
     },
     "localname": "DerivativeNonmonetaryNotionalAmountEnergyMeasure",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "xbrltype": "energyItemType"
    },
    "us-gaap_DerivativesFairValueLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Derivatives Fair Value [Line Items]",
        "terseLabel": "Derivative instruments at fair value on the balance sheet [Line Items]"
       }
      }
     },
     "localname": "DerivativesFairValueLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DerivativesMethodsOfAccountingHedgingDerivatives": {
     "auth_ref": [
      "r673"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for derivatives used in hedging relationships, which may include how gains or losses are recognized and presented in the financial statements, and amortization policies for deferred amounts.",
        "label": "Derivative Hedging"
       }
      }
     },
     "localname": "DerivativesMethodsOfAccountingHedgingDerivatives",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DerivativesOffsettingFairValueAmountsPolicy": {
     "auth_ref": [
      "r676"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for offsetting or not offsetting fair value amounts recognized for derivative instruments against such amounts recognized for the right to reclaim cash collateral (a receivable) or the obligation to return cash collateral (a payable) arising from derivative instruments recognized at fair value.",
        "label": "Derivative Netting"
       }
      }
     },
     "localname": "DerivativesOffsettingFairValueAmountsPolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DerivativesPolicyTextBlock": {
     "auth_ref": [
      "r167",
      "r656",
      "r658",
      "r660",
      "r661",
      "r676"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for its derivative instruments and hedging activities.",
        "label": "Derivative and Hedging Instruments Policy",
        "terseLabel": "Derivative and Hedging Instruments"
       }
      }
     },
     "localname": "DerivativesPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DilutiveSecurities": {
     "auth_ref": [
      "r210"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) to net income used for calculating diluted earnings per share (EPS), resulting from the assumed exercise stock options, restrictive stock units (RSUs), convertible preferred stock of an employee stock ownership plan (ESOP), and other dilutive convertible securities.",
        "label": "Dilutive Securities",
        "totalLabel": "Dilutive Securities, Effect on Basic Earnings Per Share, Total"
       }
      }
     },
     "localname": "DilutiveSecurities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DisaggregationOfRevenueLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Disaggregation of Revenue [Line Items]"
       }
      }
     },
     "localname": "DisaggregationOfRevenueLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisaggregationOfRevenueTable": {
     "auth_ref": [
      "r442",
      "r444",
      "r445",
      "r446",
      "r447",
      "r448",
      "r449",
      "r450"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about disaggregation of revenue into categories depicting how nature, amount, timing, and uncertainty of revenue and cash flows are affected by economic factor.",
        "label": "Disaggregation of Revenue [Table]"
       }
      }
     },
     "localname": "DisaggregationOfRevenueTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisaggregationOfRevenueTableTextBlock": {
     "auth_ref": [
      "r442"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of disaggregation of revenue into categories depicting how nature, amount, timing, and uncertainty of revenue and cash flows are affected by economic factor.",
        "label": "Disaggregation Of Revenue [Table Text Block]",
        "terseLabel": "Disaggregation of Revenue"
       }
      }
     },
     "localname": "DisaggregationOfRevenueTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock": {
     "auth_ref": [
      "r577"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for share-based payment arrangement.",
        "label": "Share-Based Compensation"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsShareBasedPaymentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Compensation Related Costs, Share-based Payments [Abstract]"
       }
      }
     },
     "localname": "DisclosureOfCompensationRelatedCostsSharebasedPaymentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisclosureOfExpectedGrossPrescriptionDrugSubsidyReceiptsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prescription Drug Subsidy Receipts, Fiscal Year Maturity [Abstract]",
        "terseLabel": "Medicare Part D Subsidies"
       }
      }
     },
     "localname": "DisclosureOfExpectedGrossPrescriptionDrugSubsidyReceiptsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock": {
     "auth_ref": [
      "r556",
      "r566"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of share-based payment arrangement.",
        "label": "Disclosure of Share-based Compensation Arrangements by Share-based Payment Award [Table Text Block]",
        "terseLabel": "Performance Unit Graded Vesting Schedule"
       }
      }
     },
     "localname": "DisclosureOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_DividendsCommonStockCash": {
     "auth_ref": [
      "r429"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of paid and unpaid common stock dividends declared with the form of settlement in cash.",
        "label": "Dividends Common Stock Cash",
        "negatedLabel": "Common stock dividends declared",
        "terseLabel": "Common stock dividends declared"
       }
      }
     },
     "localname": "DividendsCommonStockCash",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DividendsPaidinkind": {
     "auth_ref": [
      "r429",
      "r860"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of paid and unpaid paid-in-kind dividends (PIK) declared for classes of stock, for example, but not limited to, common and preferred.",
        "label": "Dividends, Paid-in-kind",
        "negatedTerseLabel": "Dividend in kind to parent",
        "terseLabel": "Dividend in kind to parent",
        "totalLabel": "Dividends, Paid-in-kind, Total",
        "verboseLabel": "Dividend in kind from affiliate"
       }
      }
     },
     "localname": "DividendsPaidinkind",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DividendsReceivable": {
     "auth_ref": [
      "r78"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of dividends declared but not received.",
        "label": "Dividends Receivable",
        "terseLabel": "Dividend receivable from ATC"
       }
      }
     },
     "localname": "DividendsReceivable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DomesticCountryMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Designated tax department of the government that is entitled to levy and collect income taxes from the entity in its country of domicile.",
        "label": "Federal [Member]"
       }
      }
     },
     "localname": "DomesticCountryMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_DueFromAffiliateCurrent": {
     "auth_ref": [
      "r73",
      "r771",
      "r773",
      "r778"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 8.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of receivables due from an entity that is affiliated with the reporting entity by means of direct or indirect ownership, due within 1 year (or 1 business cycle).",
        "label": "Affiliate receivables",
        "terseLabel": "Accounts receivable from affiliates"
       }
      }
     },
     "localname": "DueFromAffiliateCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DueFromAffiliateNoncurrent": {
     "auth_ref": [
      "r23",
      "r771",
      "r773",
      "r778",
      "r840",
      "r864",
      "r903"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 6.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of receivables due from an entity that is affiliated with the reporting entity by means of direct or indirect ownership, due after 1 year (or 1 business cycle).",
        "label": "Affiliate receivable long-term"
       }
      }
     },
     "localname": "DueFromAffiliateNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DueFromAffiliates": {
     "auth_ref": [
      "r771",
      "r773",
      "r878"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For an unclassified balance sheet, amount of receivables due from an entity that is affiliated with the reporting entity by means of direct or indirect ownership.",
        "label": "Affiliate receivables, current and noncurrent"
       }
      }
     },
     "localname": "DueFromAffiliates",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DueFromRelatedParties": {
     "auth_ref": [
      "r163",
      "r364",
      "r366",
      "r367",
      "r373",
      "r374",
      "r375",
      "r771",
      "r850",
      "r878"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For an unclassified balance sheet, amounts due from related parties including affiliates, employees, joint ventures, officers and stockholders, immediate families thereof, and pension funds.",
        "label": "Due from Related Parties",
        "totalLabel": "Due from Related Parties, Total"
       }
      }
     },
     "localname": "DueFromRelatedParties",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails4"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DueToAffiliateCurrent": {
     "auth_ref": [
      "r32",
      "r163",
      "r771",
      "r902"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 7.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of payable due to an entity that is affiliated with the reporting entity by means of direct or indirect ownership. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Affiliate payables",
        "terseLabel": "Accounts payable to affiliates"
       }
      }
     },
     "localname": "DueToAffiliateCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_DueToAffiliateNoncurrent": {
     "auth_ref": [
      "r38",
      "r163",
      "r771",
      "r902"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of receivables owed to an entity that is affiliated with the reporting entity by means of direct or indirect ownership, which are usually due after one year (or one business cycle, if longer).",
        "label": "Due to Affiliate, Noncurrent",
        "terseLabel": "Accounts payable to affiliates"
       }
      }
     },
     "localname": "DueToAffiliateNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EarningsPerShareBasic": {
     "auth_ref": [
      "r112",
      "r189",
      "r190",
      "r192",
      "r193",
      "r194",
      "r203",
      "r205",
      "r207",
      "r208",
      "r209",
      "r211",
      "r212",
      "r691",
      "r692",
      "r855",
      "r882"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) for the period per each share of common stock or unit outstanding during the reporting period.",
        "label": "Earnings Per Share, Basic",
        "terseLabel": "Earnings Per Share of Common Stock Basic",
        "totalLabel": "Earnings Per Share, Basic, Total"
       }
      }
     },
     "localname": "EarningsPerShareBasic",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareBasicAndDiluted": {
     "auth_ref": [
      "r208"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income or loss for the period per each share in instances when basic and diluted earnings per share are the same amount and reported as a single line item on the face of the financial statements.  Basic earnings per share is the amount of net income or loss for the period per each share of common stock or unit outstanding during the reporting period.  Diluted earnings per share includes the amount of net income or loss for the period available to each share of common stock or common unit outstanding during the reporting period and to each share or unit that would have been outstanding assuming the issuance of common shares or units for all dilutive potential common shares or units outstanding during the reporting period.",
        "label": "Earnings Per Share of Common Stock (basic and diluted)",
        "terseLabel": "Earnings per common share",
        "totalLabel": "Earnings Per Share, Basic and Diluted, Total"
       }
      }
     },
     "localname": "EarningsPerShareBasicAndDiluted",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EarningsPerShareDiluted": {
     "auth_ref": [
      "r112",
      "r189",
      "r190",
      "r192",
      "r193",
      "r194",
      "r205",
      "r207",
      "r208",
      "r209",
      "r211",
      "r212",
      "r691",
      "r692",
      "r855",
      "r882"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of net income (loss) for the period available to each share of common stock or common unit outstanding during the reporting period and to each share or unit that would have been outstanding assuming the issuance of common shares or units for all dilutive potential common shares or units outstanding during the reporting period.",
        "label": "Earnings Per Share, Diluted",
        "terseLabel": "Earnings Per Share of Common Stock Diluted",
        "totalLabel": "Earnings Per Share, Diluted, Total"
       }
      }
     },
     "localname": "EarningsPerShareDiluted",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateContinuingOperations": {
     "auth_ref": [
      "r585"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Effective Income Tax Rate Continuing Operations",
        "terseLabel": "Effective income tax rate",
        "totalLabel": "Effective income tax rate"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateContinuingOperations",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reconciliation of tax provision to statutory federal income tax rate [Abstract]",
        "terseLabel": "Effective Income Tax Rate [Line Items]"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateContinuingOperationsTaxRateReconciliationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate": {
     "auth_ref": [
      "r161",
      "r585",
      "r624"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 0.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of domestic federal statutory tax rate applicable to pretax income (loss).",
        "label": "Statutory federal income tax rate"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate": {
     "auth_ref": [
      "r585",
      "r624"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 7.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": -1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to changes in the income tax rates.",
        "label": "Effective Income Tax Rate Reconciliation Change In Enacted Tax Rate",
        "negatedLabel": "Amortization of utility excess deferred tax"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationDeductionsOther": {
     "auth_ref": [
      "r585",
      "r624"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 5.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": -1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to other deductions.",
        "label": "Effective Income Tax Rate Reconciliation, Deductions, Other",
        "negatedLabel": "AFUDC equity, net"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationDeductionsOther",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationDeductionsQualifiedProductionActivities": {
     "auth_ref": [
      "r585",
      "r624"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": -1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to deduction for qualified production activity.",
        "label": "Effective Income Tax Rate Reconciliation, Deductions, Qualified Production Activities",
        "negatedLabel": "Domestic manufacturing deduction"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationDeductionsQualifiedProductionActivities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 8.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": -1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of the difference, between reported income tax expense (benefit) and the expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations, that is attributable to tax exempt income, equity in earnings (loss) of an unconsolidated subsidiary, minority interest income (expense), tax holiday, disposition of a business, disposition of an asset, repatriation of foreign earnings, repatriation of foreign earnings jobs creation act of 2004, change in enacted tax rate, prior year income taxes, change in deferred tax asset valuation allowance, and other adjustments.",
        "label": "Effective Income Tax Rate Reconciliation,Other Reconciling Items, Percent",
        "negatedLabel": "Other, net, individually significant",
        "totalLabel": "Effective Income Tax Rate Reconciliation, Other Reconciling Items, Percent, Total"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationOtherReconcilingItemsPercent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationPriorYearIncomeTaxes": {
     "auth_ref": [
      "r585",
      "r624"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 6.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": -1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to revisions of previously reported income tax expense.",
        "label": "Effective Income Tax Rate Reconciliation Prior Year Income Taxes",
        "negatedLabel": "Federal income tax rate reduction"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationPriorYearIncomeTaxes",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes": {
     "auth_ref": [
      "r585",
      "r624"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations applicable to state and local income tax expense (benefit), net of federal tax expense (benefit).",
        "label": "State income taxes, net of federal benefit"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment": {
     "auth_ref": [
      "r585",
      "r624"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 2.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": -1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to investment tax credit.",
        "label": "Effective Income Tax Rate Reconciliation, Tax Credits, Investment",
        "negatedTerseLabel": "Amortized investment tax credits"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationTaxCreditsInvestment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsOther": {
     "auth_ref": [
      "r585",
      "r624"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 3.0,
       "parentTag": "us-gaap_EffectiveIncomeTaxRateContinuingOperations",
       "weight": -1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of the difference between reported income tax expense (benefit) and expected income tax expense (benefit) computed by applying the domestic federal statutory income tax rates to pretax income (loss) from continuing operations attributable to other tax credits.",
        "label": "Effective Income Tax Rate Reconciliation, Tax Credits, Other",
        "negatedLabel": "Credit for electricity from wind energy"
       }
      }
     },
     "localname": "EffectiveIncomeTaxRateReconciliationTaxCreditsOther",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EmployeeRelatedLiabilitiesCurrent": {
     "auth_ref": [
      "r62"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total of the carrying values as of the balance sheet date of obligations incurred through that date and payable for obligations related to services received from employees, such as accrued salaries and bonuses, payroll taxes and fringe benefits. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer).",
        "label": "Accrued payroll related items",
        "totalLabel": "Employee-related Liabilities, Current, Total"
       }
      }
     },
     "localname": "EmployeeRelatedLiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EnergyRelatedInventoryGasStoredUnderground": {
     "auth_ref": [
      "r76"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 7.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 3.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of natural gas stored underground in depleted gas reservoirs, aquifers, or salt caverns to meet seasonal and peak load demands, and also as insurance against unforeseen supply disruptions, and deemed to be a current asset because it is expected to be used within twelve months or in the normal operating cycle.",
        "label": "Stored natural gas, at average cost"
       }
      }
     },
     "localname": "EnergyRelatedInventoryGasStoredUnderground",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EnergyRelatedInventoryOtherFossilFuel": {
     "auth_ref": [
      "r76"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 6.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 4.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of fossil fuel included in inventory classified as other.",
        "label": "Fuel for electric generation, at average cost"
       }
      }
     },
     "localname": "EnergyRelatedInventoryOtherFossilFuel",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity [Abstract]",
        "terseLabel": "Common Equity"
       }
      }
     },
     "localname": "EquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EquityComponentDomain": {
     "auth_ref": [
      "r2",
      "r104",
      "r105",
      "r106",
      "r177",
      "r178",
      "r179",
      "r184",
      "r195",
      "r198",
      "r218",
      "r301",
      "r422",
      "r429",
      "r571",
      "r572",
      "r573",
      "r613",
      "r614",
      "r690",
      "r734",
      "r735",
      "r736",
      "r737",
      "r738",
      "r740",
      "r891",
      "r892",
      "r893",
      "r994"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Components of equity are the parts of the total Equity balance including that which is allocated to common, preferred, treasury stock, retained earnings, etc.",
        "label": "Equity Component [Domain]"
       }
      }
     },
     "localname": "EquityComponentDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityMethodInvesteeMember": {
     "auth_ref": [
      "r291",
      "r828",
      "r830",
      "r832",
      "r834",
      "r836",
      "r838"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "An entity that issued voting stock held by an investor and that is accounted for under the equity method of accounting by the investor.",
        "label": "ATC Member [Member]",
        "terseLabel": "ATC [Member]"
       }
      }
     },
     "localname": "EquityMethodInvesteeMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails4"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquityMethodInvestmentDividendsOrDistributions": {
     "auth_ref": [
      "r109",
      "r133",
      "r140",
      "r879"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 17.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of distribution received from equity method investee for return on investment, classified as operating activities. Excludes distribution for return of investment, classified as investing activities.",
        "label": "Dividends from investment",
        "terseLabel": "Dividend income from MGE Transco",
        "verboseLabel": "Dividends received from ATC"
       }
      }
     },
     "localname": "EquityMethodInvestmentDividendsOrDistributions",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityMethodInvestmentOwnershipPercentage": {
     "auth_ref": [
      "r293"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The percentage of ownership of common stock or equity participation in the investee accounted for under the equity method of accounting.",
        "label": "Ownership interest in equity-method investee"
       }
      }
     },
     "localname": "EquityMethodInvestmentOwnershipPercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_EquityMethodInvestmentSummarizedFinancialInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Method Investment Summarized Financial Information [Abstract]"
       }
      }
     },
     "localname": "EquityMethodInvestmentSummarizedFinancialInformationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EquityMethodInvestments": {
     "auth_ref": [
      "r53",
      "r244",
      "r292"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/DisclosureInvestmentsDetails12": {
       "order": 2.0,
       "parentTag": "us-gaap_Investments",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1": {
       "order": 2.0,
       "parentTag": "us-gaap_Investments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This item represents the carrying amount on the entity's balance sheet of its investment in common stock of an equity method investee. This is not an indicator of the fair value of the investment, rather it is the initial cost adjusted for the entity's share of earnings and losses of the investee, adjusted for any distributions (dividends) and other than temporary impairment (OTTI) losses recognized.",
        "label": "Investment in ATC",
        "terseLabel": "Equity method investments",
        "verboseLabel": "Decrease in Investment ATC Tax Cuts and Jobs Act"
       }
      }
     },
     "localname": "EquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquityMethodInvestmentsTextBlock": {
     "auth_ref": [
      "r297"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of equity method investments including, but not limited to, name of each investee or group of investments, percentage ownership, difference between recorded amount of an investment and the value of the underlying equity in the net assets, and summarized financial information.",
        "label": "Equity Method Investments Summarized Financial Data"
       }
      }
     },
     "localname": "EquityMethodInvestmentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_EquitySecuritiesByInvestmentObjectiveAxis": {
     "auth_ref": [
      "r484",
      "r535"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by investment objective.",
        "label": "Equity Securities by Investment Objective [Axis]"
       }
      }
     },
     "localname": "EquitySecuritiesByInvestmentObjectiveAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_EquitySecuritiesFvNiAndWithoutReadilyDeterminableFairValue": {
     "auth_ref": [
      "r712"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI) and investment in equity security without readily determinable fair value.",
        "label": "Equity Securities, FV-NI and without Readily Determinable Fair Value",
        "terseLabel": "Equity securities",
        "totalLabel": "Equity Securities, Fair Value Recognized in Net Income and without Readily Determinable Fair Value, Total"
       }
      }
     },
     "localname": "EquitySecuritiesFvNiAndWithoutReadilyDeterminableFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquitySecuritiesFvNiCurrentAndNoncurrent": {
     "auth_ref": [
      "r712"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI).",
        "label": "Equity Securities, FV-NI",
        "terseLabel": "Exchange-traded investments",
        "totalLabel": "Equity Securities, FV-NI, Total"
       }
      }
     },
     "localname": "EquitySecuritiesFvNiCurrentAndNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_EquitySecuritiesInvestmentObjectiveMember": {
     "auth_ref": [
      "r484",
      "r535"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Objective of investment.",
        "label": "Equity Securities, Investment Objective [Domain]"
       }
      }
     },
     "localname": "EquitySecuritiesInvestmentObjectiveMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EquitySecuritiesMember": {
     "auth_ref": [
      "r24",
      "r35",
      "r287",
      "r865",
      "r919",
      "r920",
      "r921"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ownership interest or right to acquire or dispose of ownership interest in corporations and other legal entities for which ownership interest is represented by shares of common or preferred stock, convertible securities, stock rights, or stock warrants.",
        "label": "Equity Securities [Member]"
       }
      }
     },
     "localname": "EquitySecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_EstimateOfFairValueFairValueDisclosureMember": {
     "auth_ref": [
      "r385",
      "r397",
      "r398",
      "r715"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measured as an estimate of fair value.",
        "label": "Fair Value [Member]"
       }
      }
     },
     "localname": "EstimateOfFairValueFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ExciseAndSalesTaxes": {
     "auth_ref": [
      "r108"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of excise and sales taxes included in sales and revenues, which are then deducted as a cost of sales. Includes excise taxes, which are applied to specific types of transactions or items (such as gasoline or alcohol); and sales, use and value added taxes, which are applied to a broad class of revenue-producing transactions involving a wide range of goods and services.",
        "label": "License fee tax expense"
       }
      }
     },
     "localname": "ExciseAndSalesTaxes",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable": {
     "auth_ref": [
      "r695",
      "r696",
      "r697",
      "r708"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about asset and liability measured at fair value on recurring and nonrecurring basis.",
        "label": "Fair Value Measurements, Recurring and Nonrecurring [Table]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value Inputs, Assets, Quantitative Information [Line Items]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable": {
     "auth_ref": [
      "r698"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about input and valuation technique used to measure fair value and change in valuation approach and technique for each separate class of asset and liability measured on recurring and nonrecurring basis.",
        "label": "Fair Value Inputs, Assets, Quantitative Information [Table]"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock": {
     "auth_ref": [
      "r698"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of input and valuation technique used to measure fair value and change in valuation approach and technique for each separate class of asset and liability measured on recurring and nonrecurring basis.",
        "label": "Significant Unobservable Inputs"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisValuationTechniquesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock": {
     "auth_ref": [
      "r702",
      "r705"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the amount of gains or losses for the period included in earnings or resulted in a change to net assets, have arisen from the use of significant unobservable inputs (level 3) to measure the fair value of assets, liabilities, and financial instruments classified in shareholders' equity.",
        "label": "Gains and Losses Included in Income for Level 3 Assets and Liabilities Measured at Fair Value on a Recurring Basis"
       }
      }
     },
     "localname": "FairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisGainLossIncludedInEarningsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value Balance Sheet Grouping Financial Statement Captions [Line Items]",
        "terseLabel": "Fair value and carrying value of financial instruments [Line Items]"
       }
      }
     },
     "localname": "FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTable": {
     "auth_ref": [
      "r695",
      "r716",
      "r717"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities.",
        "label": "Fair Value By Balance Sheet Grouping [Table]"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByBalanceSheetGroupingTextBlock": {
     "auth_ref": [
      "r695",
      "r716"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the fair value of financial instruments, including financial assets and financial liabilities, and the measurements of those instruments, assets, and liabilities.",
        "label": "Estimated Fair Market Value of Financial Instruments"
       }
      }
     },
     "localname": "FairValueByBalanceSheetGroupingTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueByFairValueHierarchyLevelAxis": {
     "auth_ref": [
      "r385",
      "r397",
      "r398",
      "r485",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r535",
      "r696",
      "r789",
      "r790",
      "r791"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by level within fair value hierarchy and fair value measured at net asset value per share as practical expedient.",
        "label": "Fair Value, Hierarchy [Axis]"
       }
      }
     },
     "localname": "FairValueByFairValueHierarchyLevelAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementBasisAxis": {
     "auth_ref": [
      "r385",
      "r397",
      "r398",
      "r695",
      "r709"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by measurement basis.",
        "label": "Measurement Basis [Axis]"
       }
      }
     },
     "localname": "FairValueByMeasurementBasisAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueByMeasurementFrequencyAxis": {
     "auth_ref": [
      "r695",
      "r696",
      "r699",
      "r700",
      "r710"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by measurement frequency.",
        "label": "Measurement Frequency [Axis]"
       }
      }
     },
     "localname": "FairValueByMeasurementFrequencyAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosureItemAmountsDomain": {
     "auth_ref": [
      "r385",
      "r397",
      "r398"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement basis, for example, but not limited to, reported value, fair value, portion at fair value, portion at other than fair value.",
        "label": "Fair Value Disclosure Item Amounts [Domain]"
       }
      }
     },
     "localname": "FairValueDisclosureItemAmountsDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueDisclosuresAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair Value Disclosures [Abstract]",
        "terseLabel": "Fair Value of Financial Instruments"
       }
      }
     },
     "localname": "FairValueDisclosuresAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueDisclosuresTextBlock": {
     "auth_ref": [
      "r706"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for the fair value of financial instruments (as defined), including financial assets and financial liabilities (collectively, as defined), and the measurements of those instruments as well as disclosures related to the fair value of non-financial assets and liabilities. Such disclosures about the financial instruments, assets, and liabilities would include: (1) the fair value of the required items together with their carrying amounts (as appropriate); (2) for items for which it is not practicable to estimate fair value, disclosure would include: (a) information pertinent to estimating fair value (including, carrying amount, effective interest rate, and maturity, and (b) the reasons why it is not practicable to estimate fair value; (3) significant concentrations of credit risk including: (a) information about the activity, region, or economic characteristics identifying a concentration, (b) the maximum amount of loss the entity is exposed to based on the gross fair value of the related item, (c) policy for requiring collateral or other security and information as to accessing such collateral or security, and (d) the nature and brief description of such collateral or security; (4) quantitative information about market risks and how such risks are managed; (5) for items measured on both a recurring and nonrecurring basis information regarding the inputs used to develop the fair value measurement; and (6) for items presented in the financial statement for which fair value measurement is elected: (a) information necessary to understand the reasons for the election, (b) discussion of the effect of fair value changes on earnings, (c) a description of [similar groups] items for which the election is made and the relation thereof to the balance sheet, the aggregate carrying value of items included in the balance sheet that are not eligible for the election; (7) all other required (as defined) and desired information.",
        "label": "Fair Value of Financial Instruments"
       }
      }
     },
     "localname": "FairValueDisclosuresTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstruments"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueInputsLevel1Member": {
     "auth_ref": [
      "r385",
      "r485",
      "r487",
      "r492",
      "r535",
      "r696",
      "r789"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Quoted prices in active markets for identical assets or liabilities that the reporting entity can access at the measurement date.",
        "label": "Level 1 [Member]"
       }
      }
     },
     "localname": "FairValueInputsLevel1Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel2Member": {
     "auth_ref": [
      "r385",
      "r397",
      "r398",
      "r485",
      "r487",
      "r492",
      "r535",
      "r696",
      "r790"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Inputs other than quoted prices included within level 1 that are observable for an asset or liability, either directly or indirectly, including, but not limited to, quoted prices for similar assets or liabilities in active markets, or quoted prices for identical or similar assets or liabilities in inactive markets.",
        "label": "Level 2 [Member]"
       }
      }
     },
     "localname": "FairValueInputsLevel2Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueInputsLevel3Member": {
     "auth_ref": [
      "r385",
      "r397",
      "r398",
      "r485",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r535",
      "r696",
      "r791"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Level 3 [Member]"
       }
      }
     },
     "localname": "FairValueInputsLevel3Member",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable": {
     "auth_ref": [
      "r701",
      "r708"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of information required and determined to be provided for purposes of reconciling beginning and ending balances of fair value measurements of liabilities using significant unobservable inputs (level 3). Separately presenting changes during the period, attributable to: (1) total gains or losses for the period (realized and unrealized) and location reported in the statement of income (or activities); (2) purchases, sales, issuances, and settlements (net); (3) transfers in and/or out of Level 3.",
        "label": "Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table]"
       }
      }
     },
     "localname": "FairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueMeasuredAtNetAssetValuePerShareMember": {
     "auth_ref": [
      "r487",
      "r694",
      "r710"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value measured at net asset value per share as practical expedient.",
        "label": "Fair Value Measured At Net Asset Value Per Share [Member]",
        "terseLabel": "Fair Value Measured At Net Asset Value"
       }
      }
     },
     "localname": "FairValueMeasuredAtNetAssetValuePerShareMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementFrequencyDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Measurement frequency.",
        "label": "Fair Value, Measurement Frequency [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementFrequencyDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for fair value measurements of financial and non-financial assets, liabilities and instruments classified in shareholders' equity. Disclosures include, but are not limited to, how an entity that manages a group of financial assets and liabilities on the basis of its net exposure measures the fair value of those assets and liabilities.",
        "label": "Fair Value of Pension and Other Postretirement Benefit Plan Assets",
        "terseLabel": "Fair Value of Pension and Other Postretirement Benefit Plan Assets"
       }
      }
     },
     "localname": "FairValueMeasurementPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValueMeasurementsFairValueHierarchyDomain": {
     "auth_ref": [
      "r385",
      "r397",
      "r398",
      "r485",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r535",
      "r789",
      "r790",
      "r791"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Categories used to prioritize the inputs to valuation techniques to measure fair value.",
        "label": "Fair Value, Measurements, Fair Value Hierarchy [Domain]"
       }
      }
     },
     "localname": "FairValueMeasurementsFairValueHierarchyDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueMeasurementsRecurringMember": {
     "auth_ref": [
      "r706",
      "r710"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Frequent fair value measurement. Includes, but is not limited to, fair value adjustment for impairment of asset, liability or equity, frequently measured at fair value.",
        "label": "Recurring [Member]"
       }
      }
     },
     "localname": "FairValueMeasurementsRecurringMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisChangeInUnrealizedGainLoss": {
     "auth_ref": [
      "r705"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrealized gain (loss) recognized in income for derivative asset (liability) after deduction of derivative liability (asset), measured at fair value using unobservable input (level 3) and still held.",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Change in Unrealized Gain (Loss)",
        "terseLabel": "Total gains (losses) included in earnings attributed to the change in unrealized gains (losses) related to assets and liabilities"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisChangeInUnrealizedGainLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]",
        "terseLabel": "Realized and unrealized gains (losses) included in income for level 3 instruments [Line Items]"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Input Reconciliation [Roll Forward]"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInEarnings": {
     "auth_ref": [
      "r702",
      "r707"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in income from derivative asset (liability) after deduction of derivative liability (asset), measured at fair value on recurring basis using unobservable input (level 3).",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Gain (Loss) Included in Earnings",
        "terseLabel": "Included in earnings"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInEarnings",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInOtherComprehensiveIncomeLoss": {
     "auth_ref": [
      "r703",
      "r707"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) recognized in other comprehensive income from derivative asset (liability) after deduction of derivative liability (asset), measured at fair value on recurring basis using unobservable input (level 3).",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Gain (Loss) Included in Other Comprehensive Income (Loss)",
        "terseLabel": "Included in other comprehensive income"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationGainLossIncludedInOtherComprehensiveIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationIssues": {
     "auth_ref": [
      "r704",
      "r707"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of issuances of financial instrument classified as a derivative asset (liability) after deduction of derivative liability (asset), measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Issues",
        "terseLabel": "Issuances"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationIssues",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationPurchases": {
     "auth_ref": [
      "r704",
      "r707"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of purchases of financial instrument classified as a derivative asset (liability) after deduction of derivative liability (asset), measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Purchases",
        "terseLabel": "Purchases"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationPurchases",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationSales": {
     "auth_ref": [
      "r704",
      "r707"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of sales of financial instrument classified as a derivative asset (liability) after deduction of derivative liability (asset), measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Sales",
        "negatedLabel": "Sales"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationSales",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationSettlements": {
     "auth_ref": [
      "r704",
      "r707"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of settlements of financial instrument classified as a derivative asset (liability) after deduction of derivative liability, measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Settlements",
        "negatedLabel": "Settlements"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationSettlements",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationTransfersNet": {
     "auth_ref": [
      "r707"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of transfers of financial instrument classified as a derivative asset (liability) after deduction of derivative liability (asset) into (out of) level 3 of the fair value hierarchy.",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Transfers, Net",
        "terseLabel": "Transfers in and/or out of Level 3",
        "totalLabel": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis, Unobservable Inputs Reconciliation, Transfers, Net, Total"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisUnobservableInputsReconciliationTransfersNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs": {
     "auth_ref": [
      "r695",
      "r707"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of financial instrument classified as derivative asset (liability) after deduction of derivative liability (asset), measured using unobservable inputs that reflect the entity's own assumption about the assumptions market participants would use in pricing.",
        "label": "Fair Value, Net Derivative Asset (Liability) Measured on Recurring Basis with Unobservable Inputs",
        "periodEndLabel": "Ending balance",
        "periodStartLabel": "Beginning balance"
       }
      }
     },
     "localname": "FairValueNetDerivativeAssetLiabilityMeasuredOnRecurringBasisWithUnobservableInputs",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails4"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FairValueOfFinancialInstrumentsPolicy": {
     "auth_ref": [
      "r711",
      "r714"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for determining the fair value of financial instruments.",
        "label": "Recurring Fair Value Measurements"
       }
      }
     },
     "localname": "FairValueOfFinancialInstrumentsPolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable": {
     "auth_ref": [
      "r662",
      "r668",
      "r678"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule that discloses the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position.",
        "label": "Fair Values Derivatives Balance Sheet Location By Derivative Contract Type By Hedging Designation [Table]"
       }
      }
     },
     "localname": "FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinanceLeaseInterestExpense": {
     "auth_ref": [
      "r752",
      "r757",
      "r765"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails1": {
       "order": 1.0,
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest expense on finance lease liability.",
        "label": "Finance Lease Interest Expense",
        "terseLabel": "Interest on lease liabilities, Interest expense, net"
       }
      }
     },
     "localname": "FinanceLeaseInterestExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseInterestPaymentOnLiability": {
     "auth_ref": [
      "r754",
      "r759"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest paid on finance lease liability.",
        "label": "Finance Lease Interest Payment On Liability",
        "terseLabel": "Finance leases - Operating cash flows"
       }
      }
     },
     "localname": "FinanceLeaseInterestPaymentOnLiability",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilitiesPaymentsDueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance Lease Liabilities Payments Due [Abstract]"
       }
      }
     },
     "localname": "FinanceLeaseLiabilitiesPaymentsDueAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinanceLeaseLiability": {
     "auth_ref": [
      "r750",
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from finance lease.",
        "label": "Finance Lease Liability",
        "terseLabel": "Finance lease liability",
        "totalLabel": "Finance lease liability"
       }
      }
     },
     "localname": "FinanceLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityCurrent": {
     "auth_ref": [
      "r750"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2": {
       "order": 0.0,
       "parentTag": "mgee_LeaseLiability",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from finance lease, classified as current.",
        "label": "Finance Lease Liability Current",
        "negatedLabel": "Less: current portion",
        "terseLabel": "Finance lease liabilities - current",
        "verboseLabel": "Less: current portion"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList": {
     "auth_ref": [
      "r751"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of financial position that includes current finance lease liability.",
        "label": "Finance Lease, Liability, Current, Statement of Financial Position [Extensible Enumeration]"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_FinanceLeaseLiabilityMaturityTableTextBlock": {
     "auth_ref": [
      "r764"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of undiscounted cash flows of finance lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to finance lease liability recognized in statement of financial position.",
        "label": "Finance Lease Liability Maturity [Table Text Block]",
        "terseLabel": "Lessee Finance Lease Liability Maturity"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityMaturityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_FinanceLeaseLiabilityNoncurrent": {
     "auth_ref": [
      "r750"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2": {
       "order": 1.0,
       "parentTag": "mgee_LeaseLiability",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from finance lease, classified as noncurrent.",
        "label": "Finance Lease Liability Noncurrent",
        "terseLabel": "Finance lease liabilities",
        "totalLabel": "Noncurrent lease liability",
        "verboseLabel": "Finance lease liabilities - long-term"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDue": {
     "auth_ref": [
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payments for finance lease.",
        "label": "Finance Lease Liability Payments Due",
        "terseLabel": "Undiscounted finance lease liability",
        "totalLabel": "Undiscounted finance lease liability"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive": {
     "auth_ref": [
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance lease to be paid after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Finance Lease Liability Payments Due After Year Five",
        "terseLabel": "Thereafter"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDueAfterYearFive",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "auth_ref": [
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance lease to be paid in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Finance Lease Liability Payments Due Next Twelve Months",
        "terseLabel": "2022"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDueNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive": {
     "auth_ref": [
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance lease to be paid in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Finance Lease Liability Payments Due Year Five",
        "terseLabel": "2026"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDueYearFive",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour": {
     "auth_ref": [
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance lease to be paid in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Finance Lease Liability Payments Due Year Four",
        "terseLabel": "2025"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDueYearFour",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree": {
     "auth_ref": [
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance lease to be paid in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Finance Lease Liability Payments Due Year Three",
        "terseLabel": "2024"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDueYearThree",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo": {
     "auth_ref": [
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for finance lease to be paid in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Finance Lease Liability Payments Due Year Two",
        "terseLabel": "2023"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityPaymentsDueYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount": {
     "auth_ref": [
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for finance lease.",
        "label": "Finance Lease Liability Undiscounted Excess Amount",
        "negatedLabel": "Less: Present value discount"
       }
      }
     },
     "localname": "FinanceLeaseLiabilityUndiscountedExcessAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeasePrincipalPayments": {
     "auth_ref": [
      "r753",
      "r759"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow for principal payment on finance lease.",
        "label": "Finance Lease Principal Payments",
        "terseLabel": "Finance leases - Financing cash flows"
       }
      }
     },
     "localname": "FinanceLeasePrincipalPayments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseRightOfUseAsset": {
     "auth_ref": [
      "r749"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2": {
       "order": 0.0,
       "parentTag": "mgee_LeaseRightOfUseAsset",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after accumulated amortization, of right-of-use asset from finance lease.",
        "label": "Finance Lease Right Of Use Asset",
        "terseLabel": "Finance lease assets, net",
        "totalLabel": "Finance Lease, Right-of-Use Asset, after Accumulated Amortization, Total",
        "verboseLabel": "Finance lease assets, net"
       }
      }
     },
     "localname": "FinanceLeaseRightOfUseAsset",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseRightOfUseAssetAmortization": {
     "auth_ref": [
      "r752",
      "r757",
      "r765"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails1": {
       "order": 0.0,
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of amortization expense attributable to right-of-use asset from finance lease.",
        "label": "Finance Lease Right Of Use Asset Amortization",
        "terseLabel": "Amortization of leased assets, Depreciation and amortization"
       }
      }
     },
     "localname": "FinanceLeaseRightOfUseAssetAmortization",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_FinanceLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList": {
     "auth_ref": [
      "r751"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of financial position that includes finance lease right-of-use asset.",
        "label": "Finance Lease, Right-of-Use Asset, Statement of Financial Position [Extensible Enumeration]"
       }
      }
     },
     "localname": "FinanceLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_FinanceLeaseWeightedAverageDiscountRatePercent": {
     "auth_ref": [
      "r762",
      "r765"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average discount rate for finance lease calculated at point in time.",
        "label": "Finance Lease Weighted Average Discount Rate Percent",
        "terseLabel": "Weighted average discount rate finance leases"
       }
      }
     },
     "localname": "FinanceLeaseWeightedAverageDiscountRatePercent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails4"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_FinanceLeaseWeightedAverageRemainingLeaseTerm1": {
     "auth_ref": [
      "r761",
      "r765"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average remaining lease term for finance lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Finance Lease Weighted Average Remaining Lease Term 1",
        "terseLabel": "Weighted average remaining lease term (years) finance leases"
       }
      }
     },
     "localname": "FinanceLeaseWeightedAverageRemainingLeaseTerm1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails4"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_FinancialInstrumentAxis": {
     "auth_ref": [
      "r284",
      "r285",
      "r288",
      "r289",
      "r290",
      "r307",
      "r312",
      "r313",
      "r314",
      "r315",
      "r316",
      "r317",
      "r318",
      "r319",
      "r393",
      "r420",
      "r680",
      "r786",
      "r787",
      "r788",
      "r789",
      "r790",
      "r791",
      "r792",
      "r793",
      "r794",
      "r795",
      "r796",
      "r797",
      "r798",
      "r800",
      "r801",
      "r803",
      "r804",
      "r805",
      "r806",
      "r807",
      "r808",
      "r809",
      "r810",
      "r811",
      "r812",
      "r813",
      "r814",
      "r815",
      "r816",
      "r817",
      "r963",
      "r964",
      "r965",
      "r966",
      "r967",
      "r968",
      "r969"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of financial instrument.",
        "label": "Financial Instrument [Axis]"
       }
      }
     },
     "localname": "FinancialInstrumentAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments Financial Assets Balance Sheet Groupings [Abstract]",
        "terseLabel": "Assets:"
       }
      }
     },
     "localname": "FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Instruments Financial Liabilities Balance Sheet Groupings [Abstract]",
        "terseLabel": "Liabilities:"
       }
      }
     },
     "localname": "FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_FixedIncomeSecuritiesMember": {
     "auth_ref": [
      "r485",
      "r535"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investment that provides a return in the form of fixed periodic payments and eventual return of principal at maturity.",
        "label": "Fixed Income Securities [Member]"
       }
      }
     },
     "localname": "FixedIncomeSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_GainLossOnSaleOfInvestments": {
     "auth_ref": [
      "r140"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net realized gain (loss) on investments sold during the period, not including gains (losses) on securities separately or otherwise categorized as trading, available-for-sale, or held-to-maturity, which, for cash flow reporting, is a component of proceeds from investing activities.",
        "label": "Gain on sale of investments",
        "negatedLabel": "Gain on sale of investments",
        "terseLabel": "Gain (loss) on sale of investments",
        "totalLabel": "Gain (Loss) on Sale of Investments, Total"
       }
      }
     },
     "localname": "GainLossOnSaleOfInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_GainLossOnSaleOfPropertyPlantEquipment": {
     "auth_ref": [
      "r140"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of gain (loss) on sale or disposal of property, plant and equipment assets, including oil and gas property and timber property.",
        "label": "Gain (Loss) on Sale of Property Plant Equipment",
        "negatedLabel": "Loss (gain) on sale of property",
        "totalLabel": "Gain (Loss) on Disposition of Property Plant Equipment, Total"
       }
      }
     },
     "localname": "GainLossOnSaleOfPropertyPlantEquipment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_HedgingRelationshipDomain": {
     "auth_ref": [
      "r660"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Nature or intent of a hedge.",
        "label": "Hedging Relationship [Domain]"
       }
      }
     },
     "localname": "HedgingRelationshipDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ImpairmentOfLongLivedAssetsHeldForUse": {
     "auth_ref": [
      "r140",
      "r331",
      "r335"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate amount of write-downs for impairments recognized during the period for long lived assets held for use (including those held for disposal by means other than sale).",
        "label": "Impairment of long-lived assets",
        "totalLabel": "Impairment, Long-Lived Asset, Held-for-Use, Total"
       }
      }
     },
     "localname": "ImpairmentOfLongLivedAssetsHeldForUse",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ImpairmentOrDisposalOfLongLivedAssetsPolicyTextBlock": {
     "auth_ref": [
      "r328",
      "r338"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for recognizing and measuring the impairment of long-lived assets. An entity also may disclose its accounting policy for long-lived assets to be sold. This policy excludes goodwill and intangible assets.",
        "label": "Impairment of Long-Lived Assets Policy",
        "terseLabel": "Impairment of Long-Lived Assets"
       }
      }
     },
     "localname": "ImpairmentOrDisposalOfLongLivedAssetsPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic": {
     "auth_ref": [
      "r160",
      "r623"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 0.0,
       "parentTag": "us-gaap_ProfitLoss",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The portion of earnings or loss from continuing operations before income taxes that is attributable to domestic operations.",
        "label": "Income before income taxes",
        "totalLabel": "Income before income taxes"
       }
      }
     },
     "localname": "IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeLossFromEquityMethodInvestments": {
     "auth_ref": [
      "r109",
      "r140",
      "r240",
      "r292",
      "r852",
      "r879"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income (loss) for proportionate share of equity method investee's income (loss).",
        "label": "Equity earnings in ATC",
        "negatedLabel": "Equity earnings in investments",
        "negatedTerseLabel": "Equity earnings in MGE Transco",
        "terseLabel": "Equity earnings in MGE Transco",
        "totalLabel": "Income (Loss) from Equity Method Investments, Total",
        "verboseLabel": "Equity earnings of investments"
       }
      }
     },
     "localname": "IncomeLossFromEquityMethodInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeStatementAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Statement [Abstract]",
        "terseLabel": "Equity method investment summarized income statement [Abstract]"
       }
      }
     },
     "localname": "IncomeStatementAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationAxis": {
     "auth_ref": [
      "r336",
      "r350"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by location in the income statement.",
        "label": "Income Statement Location [Axis]"
       }
      }
     },
     "localname": "IncomeStatementLocationAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeStatementLocationDomain": {
     "auth_ref": [
      "r350"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Location in the income statement.",
        "label": "Income Statement Location [Domain]"
       }
      }
     },
     "localname": "IncomeStatementLocationDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails5",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeTaxAuthorityAxis": {
     "auth_ref": [
      "r589"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by tax jurisdiction.",
        "label": "Income Tax Authority [Axis]"
       }
      }
     },
     "localname": "IncomeTaxAuthorityAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxAuthorityDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Agency, division or body classification that levies income taxes, examines tax returns for compliance, or grants exemptions from or makes other decisions pertaining to income taxes.",
        "label": "Income Tax Authority [Domain]"
       }
      }
     },
     "localname": "IncomeTaxAuthorityDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_IncomeTaxDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Tax Disclosure [Abstract]",
        "terseLabel": "Income Taxes"
       }
      }
     },
     "localname": "IncomeTaxDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxDisclosureTextBlock": {
     "auth_ref": [
      "r161",
      "r586",
      "r595",
      "r602",
      "r618",
      "r625",
      "r627",
      "r628",
      "r629"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for income taxes. Disclosures may include net deferred tax liability or asset recognized in an enterprise's statement of financial position, net change during the year in the total valuation allowance, approximate tax effect of each type of temporary difference and carryforward that gives rise to a significant portion of deferred tax liabilities and deferred tax assets, utilization of a tax carryback, and tax uncertainties information.",
        "label": "Income Taxes"
       }
      }
     },
     "localname": "IncomeTaxDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxes"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefit": {
     "auth_ref": [
      "r162",
      "r197",
      "r198",
      "r241",
      "r584",
      "r619",
      "r626",
      "r884"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_ProfitLoss",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations.",
        "label": "Income tax provision",
        "negatedLabel": "Income tax provision",
        "negatedTerseLabel": "Income tax (provision) benefit",
        "terseLabel": "Income tax provision",
        "totalLabel": "Total income tax provision"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncomeTaxExpenseBenefitContinuingOperationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income tax provision components [Abstract]"
       }
      }
     },
     "localname": "IncomeTaxExpenseBenefitContinuingOperationsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxPolicyTextBlock": {
     "auth_ref": [
      "r103",
      "r579",
      "r581",
      "r595",
      "r596",
      "r601",
      "r609"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for income taxes, which may include its accounting policies for recognizing and measuring deferred tax assets and liabilities and related valuation allowances, recognizing investment tax credits, operating loss carryforwards, tax credit carryforwards, and other carryforwards, methodologies for determining its effective income tax rate and the characterization of interest and penalties in the financial statements.",
        "label": "Income Taxes Policy",
        "terseLabel": "Income Taxes and Excise Taxes"
       }
      }
     },
     "localname": "IncomeTaxPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxUncertaintiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "IncomeTaxUncertaintiesAbstract",
        "terseLabel": "Unrecognized Tax Benefits"
       }
      }
     },
     "localname": "IncomeTaxUncertaintiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncomeTaxUncertaintiesPolicy": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for tax positions taken in the tax return filed or to be filed for which it is more likely than not that the tax position will not be sustained upon examination by taxing authorities and other types of contingencies related to income taxes.",
        "label": "Uncertainty in Income Taxes",
        "terseLabel": "Accounting for Uncertainty in Income Taxes"
       }
      }
     },
     "localname": "IncomeTaxUncertaintiesPolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IncomeTaxesPaid": {
     "auth_ref": [
      "r136",
      "r144"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of cash paid during the current period to foreign, federal, state, and local authorities as taxes on income.",
        "label": "Income taxes paid"
       }
      }
     },
     "localname": "IncomeTaxesPaid",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccountsAndOtherReceivables": {
     "auth_ref": [
      "r139"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the amount due from customers for the credit sale of goods and services; includes accounts receivable and other types of receivables.",
        "label": "Trade and other receivables (change)",
        "negatedLabel": "Accounts receivable and unbilled revenues (change)"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccountsAndOtherReceivables",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInAccountsPayable": {
     "auth_ref": [
      "r139"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 14.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the aggregate amount of liabilities incurred (and for which invoices have typically been received) and payable to vendors for goods and services received that are used in an entity's business.",
        "label": "Accounts payable (change)",
        "totalLabel": "Increase (Decrease) in Accounts Payable, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInAccountsPayable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInInventories": {
     "auth_ref": [
      "r139"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in the aggregate value of all inventory held by the reporting entity, associated with underlying transactions that are classified as operating activities.",
        "label": "Inventories (change)",
        "negatedLabel": "Inventories (change)",
        "totalLabel": "Increase (Decrease) in Inventories, Total"
       }
      }
     },
     "localname": "IncreaseDecreaseInInventories",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInMarginDepositsOutstanding": {
     "auth_ref": [
      "r139"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period in money or securities placed with a broker or counterparty as security for a trading or derivative position.",
        "label": "Receivable - margin account (change)",
        "negatedLabel": "Receivable - margin account (change)"
       }
      }
     },
     "localname": "IncreaseDecreaseInMarginDepositsOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOperatingCapitalAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Changes in working capital items:"
       }
      }
     },
     "localname": "IncreaseDecreaseInOperatingCapitalAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherCurrentAssets": {
     "auth_ref": [
      "r139"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 13.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 5.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in current assets classified as other.",
        "label": "Other current assets (change)",
        "negatedLabel": "Other current assets (change)"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherCurrentAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherCurrentLiabilities": {
     "auth_ref": [
      "r139"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 16.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in current liabilities classified as other.",
        "label": "Other current liabilities (change)",
        "terseLabel": "Other current liabilities (change)"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherCurrentLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInOtherNoncurrentAssetsAndLiabilitiesNet": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 20.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in noncurrent operating assets after deduction of noncurrent operating liabilities classified as other.",
        "label": "Increase (Decrease) in Other Noncurrent Assets and Liabilities, Net",
        "negatedLabel": "Other noncurrent items, net"
       }
      }
     },
     "localname": "IncreaseDecreaseInOtherNoncurrentAssetsAndLiabilitiesNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInPrepaidTaxes": {
     "auth_ref": [
      "r139"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 12.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) of consideration paid in advance for income and other taxes that provide economic benefits in future periods.",
        "label": "Prepaid taxes (change)",
        "negatedLabel": "Prepaid taxes (change)"
       }
      }
     },
     "localname": "IncreaseDecreaseInPrepaidTaxes",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_IncreaseDecreaseInStockholdersEquityRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Increase (Decrease) in Equity [Roll Forward]"
       }
      }
     },
     "localname": "IncreaseDecreaseInStockholdersEquityRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_IncreaseDecreaseInUnbilledReceivables": {
     "auth_ref": [
      "r139"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The increase (decrease) during the reporting period of the amount of revenue for work performed for which billing has not occurred, net of uncollectible accounts.",
        "label": "Unbilled revenues (change)",
        "negatedLabel": "Unbilled revenues (change)"
       }
      }
     },
     "localname": "IncreaseDecreaseInUnbilledReceivables",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestIncomeExpenseNet": {
     "auth_ref": [
      "r856"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net amount of operating interest income (expense).",
        "label": "Interest expense, net",
        "negatedTotalLabel": "Net Interest Expense",
        "terseLabel": "Interest (expense) income, net",
        "totalLabel": "Interest Income (Expense), Net, Total"
       }
      }
     },
     "localname": "InterestIncomeExpenseNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InterestPaidNet": {
     "auth_ref": [
      "r131",
      "r135",
      "r144"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash paid for interest, excluding capitalized interest, classified as operating activity. Includes, but is not limited to, payment to settle zero-coupon bond for accreted interest of debt discount and debt instrument with insignificant coupon interest rate in relation to effective interest rate of borrowing attributable to accreted interest of debt discount.",
        "label": "Interest paid"
       }
      }
     },
     "localname": "InterestPaidNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InternalUseSoftwarePolicy": {
     "auth_ref": [
      "r326",
      "r327"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for costs incurred when both (1) the software is acquired, internally developed, or modified solely to meet the entity's internal needs, and (2) during the software's development or modification, no substantive plan exists or is being developed to market the software externally.",
        "label": "Capitalized Software Costs"
       }
      }
     },
     "localname": "InternalUseSoftwarePolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_IntersegmentEliminationMember": {
     "auth_ref": [
      "r235",
      "r254",
      "r255",
      "r256",
      "r257",
      "r259",
      "r261",
      "r265"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Eliminating entries used in operating segment consolidation.",
        "label": "Consolidation/Elimination Entries [Member]",
        "terseLabel": "Consolidation Elimination Entries [Member]"
       }
      }
     },
     "localname": "IntersegmentEliminationMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_InventoryDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory Disclosure [Abstract]",
        "terseLabel": "Inventories"
       }
      }
     },
     "localname": "InventoryDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InventoryPolicyTextBlock": {
     "auth_ref": [
      "r17",
      "r77",
      "r152",
      "r215",
      "r320",
      "r321",
      "r322",
      "r819"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of inventory accounting policy for inventory classes, including, but not limited to, basis for determining inventory amounts, methods by which amounts are added and removed from inventory classes, loss recognition on impairment of inventories, and situations in which inventories are stated above cost.",
        "label": "Inventories"
       }
      }
     },
     "localname": "InventoryPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InvestmentPolicyTextBlock": {
     "auth_ref": [
      "r294",
      "r883"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for investment in financial asset.",
        "label": "Investments Policy",
        "terseLabel": "Investments"
       }
      }
     },
     "localname": "InvestmentPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_InvestmentTaxCredit": {
     "auth_ref": [
      "r141"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 4.0,
       "parentTag": "us-gaap_IncomeTaxExpenseBenefit",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount deducted from an entities' taxes, reflecting a percentage of an amount invested in certain assets spread over the useful life of those assets; includes deferred investment tax credits.",
        "label": "Investment Tax Credit",
        "negatedTerseLabel": "Amortized investment tax credits",
        "terseLabel": "Amortized investment tax credits"
       }
      }
     },
     "localname": "InvestmentTaxCredit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentTypeAxis": {
     "auth_ref": [
      "r904",
      "r905",
      "r906",
      "r907",
      "r908",
      "r909",
      "r910",
      "r911",
      "r912",
      "r913",
      "r914",
      "r918",
      "r919",
      "r920",
      "r921"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of investments.",
        "label": "Investment Type [Axis]"
       }
      }
     },
     "localname": "InvestmentTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentTypeCategorizationMember": {
     "auth_ref": [
      "r904",
      "r905",
      "r906",
      "r907",
      "r908",
      "r909",
      "r910",
      "r911",
      "r912",
      "r913",
      "r914",
      "r918",
      "r919",
      "r920",
      "r921"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Asset obtained to generate income or appreciate in value.",
        "label": "Investment Type Categorization [Domain]"
       }
      }
     },
     "localname": "InvestmentTypeCategorizationMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Investments": {
     "auth_ref": [
      "r877"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/DisclosureInvestmentsDetails12": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 7.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 1.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Sum of the carrying amounts as of the balance sheet date of all investments.",
        "label": "Investments",
        "totalLabel": "Total investments"
       }
      }
     },
     "localname": "Investments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_InvestmentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments [Abstract]",
        "terseLabel": "Investments:"
       }
      }
     },
     "localname": "InvestmentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_InvestmentsInAndAdvancesToAffiliatesAmountOfEquity": {
     "auth_ref": [
      "r915",
      "r916",
      "r917"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "order": 0.0,
       "parentTag": "us-gaap_Investments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Equity in net profit and loss for the period. Give totals for each group. If operations of any controlled companies are different in character from those of the company, group such affiliates (1) within divisions and (2) by type of activities.",
        "label": "Investments in affiliates"
       }
      }
     },
     "localname": "InvestmentsInAndAdvancesToAffiliatesAmountOfEquity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_JointlyOwnedUtilityPlantAxis": {
     "auth_ref": [
      "r940"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of jointly owned utility plant.",
        "label": "Jointly Owned Utility Plant [Axis]"
       }
      }
     },
     "localname": "JointlyOwnedUtilityPlantAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_JointlyOwnedUtilityPlantDomain": {
     "auth_ref": [
      "r939"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Types of a jointly owned utility plant.",
        "label": "Jointly Owned Utility Plant [Domain]"
       }
      }
     },
     "localname": "JointlyOwnedUtilityPlantDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_JointlyOwnedUtilityPlantGrossOwnershipAmountOfPlantInService": {
     "auth_ref": [
      "r940"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails": {
       "order": 0.0,
       "parentTag": "mgee_JointlyOwnedUtilityPlantNetOwnershipAmountBeforeConstructionWorkInProgress",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The period end amount owned by the reporting utility of a jointly owned utility plant in service.",
        "label": "Jointly Owned Utility Plant, Gross Ownership Amount of Plant in Service",
        "terseLabel": "Plant",
        "totalLabel": "Jointly Owned Utility Plant, Gross Ownership Amount of Plant in Service, Total"
       }
      }
     },
     "localname": "JointlyOwnedUtilityPlantGrossOwnershipAmountOfPlantInService",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_JointlyOwnedUtilityPlantInterestsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Jointly Owned Utility Plant Interests [Line Items]"
       }
      }
     },
     "localname": "JointlyOwnedUtilityPlantInterestsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_JointlyOwnedUtilityPlantInterestsTable": {
     "auth_ref": [
      "r940"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Detailed information about jointly owned utility plants.",
        "label": "Jointly Owned Utility Plant Interests [Table]"
       }
      }
     },
     "localname": "JointlyOwnedUtilityPlantInterestsTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_JointlyOwnedUtilityPlantNetOwnershipAmount": {
     "auth_ref": [
      "r940"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total period end amount of plant in service and construction in progress net of accumulated depreciation for the utility's share of jointly owned electricity generation plant.",
        "label": "Jointly Owned Utility Plant Net Ownership Amount",
        "totalLabel": "Total property, plant, and equipment"
       }
      }
     },
     "localname": "JointlyOwnedUtilityPlantNetOwnershipAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_JointlyOwnedUtilityPlantNetOwnershipAmountAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Jointly Owned Plants, Net Plant Ownership [Abstract]"
       }
      }
     },
     "localname": "JointlyOwnedUtilityPlantNetOwnershipAmountAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_JointlyOwnedUtilityPlantOwnershipAmountOfConstructionWorkInProgress": {
     "auth_ref": [
      "r940"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_JointlyOwnedUtilityPlantNetOwnershipAmount",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The period end amount of construction work in progress at a jointly owned electricity generation plant.",
        "label": "Jointly Owned Utility Plant, Ownership Amount of Construction Work in Progress",
        "terseLabel": "Construction work in progress",
        "totalLabel": "Jointly Owned Utility Plant, Ownership Amount of Construction Work in Progress, Total"
       }
      }
     },
     "localname": "JointlyOwnedUtilityPlantOwnershipAmountOfConstructionWorkInProgress",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_JointlyOwnedUtilityPlantOwnershipAmountOfPlantAccumulatedDepreciation": {
     "auth_ref": [
      "r940"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails": {
       "order": 2.0,
       "parentTag": "mgee_JointlyOwnedUtilityPlantNetOwnershipAmountBeforeConstructionWorkInProgress",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The period end amount of accumulated depreciation in a jointly owned electricity generation plant.",
        "label": "Jointly Owned Utility Plant, Ownership Amount of Plant Accumulated Depreciation",
        "negatedLabel": "Accumulated depreciation",
        "totalLabel": "Jointly Owned Utility Plant, Ownership Amount of Plant Accumulated Depreciation, Total"
       }
      }
     },
     "localname": "JointlyOwnedUtilityPlantOwnershipAmountOfPlantAccumulatedDepreciation",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_JointlyOwnedUtilityPlantProportionateOwnershipShare": {
     "auth_ref": [
      "r940"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The proportionate share of interest (percent) in a jointly owned utility plant.",
        "label": "Jointly Owned Utility Plant Proportionate Ownership Share",
        "terseLabel": "Jointly owned utility plant, ownership interest"
       }
      }
     },
     "localname": "JointlyOwnedUtilityPlantProportionateOwnershipShare",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_LeaseCost": {
     "auth_ref": [
      "r763",
      "r765"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails1": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lease cost recognized by lessee for lease contract.",
        "label": "Lease Cost",
        "totalLabel": "Total lease expense"
       }
      }
     },
     "localname": "LeaseCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LeaseCostAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease Cost [Abstract]"
       }
      }
     },
     "localname": "LeaseCostAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_LeaseCostTableTextBlock": {
     "auth_ref": [
      "r763"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of lessee's lease cost. Includes, but is not limited to, interest expense for finance lease, amortization of right-of-use asset for finance lease, operating lease cost, short-term lease cost, variable lease cost and sublease income.",
        "label": "Lease Cost [Table Text Block]",
        "terseLabel": "Lease Cost"
       }
      }
     },
     "localname": "LeaseCostTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LeasesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Leases [Abstract]"
       }
      }
     },
     "localname": "LeasesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LesseeDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lessee Disclosure [Abstract]"
       }
      }
     },
     "localname": "LesseeDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_LesseeLeasesPolicyTextBlock": {
     "auth_ref": [
      "r756"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for leasing arrangement entered into by lessee.",
        "label": "Lessee Leases [Policy Text Block]",
        "terseLabel": "Leases"
       }
      }
     },
     "localname": "LesseeLeasesPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityMaturityTableTextBlock": {
     "auth_ref": [
      "r764"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of undiscounted cash flows of lessee's operating lease liability. Includes, but is not limited to, reconciliation of undiscounted cash flows to operating lease liability recognized in statement of financial position.",
        "label": "LesseeOperatingLeaseLiabilityMaturity [Table Text Block]",
        "terseLabel": "Lessee Operating Lease Liability Maturity"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityMaturityTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue": {
     "auth_ref": [
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease.",
        "label": "Lessee Operating Lease Liability Payments Due",
        "terseLabel": "Undiscounted operating lease liability",
        "totalLabel": "Undiscounted operating lease liability"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive": {
     "auth_ref": [
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease due after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee Operating Lease Liability Payments Due After Year Five",
        "terseLabel": "Thereafter"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths": {
     "auth_ref": [
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee Operating Lease Liability Payments Due Next Twelve Months",
        "terseLabel": "2022"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive": {
     "auth_ref": [
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee Operating Lease Liability Payments Due Year Five",
        "terseLabel": "2026"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFive",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour": {
     "auth_ref": [
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee Operating Lease Liability Payments Due Year Four",
        "terseLabel": "2025"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearFour",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree": {
     "auth_ref": [
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee Operating Lease Liability Payments Due Year Three",
        "terseLabel": "2024"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearThree",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo": {
     "auth_ref": [
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payment for operating lease to be paid in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Lessee Operating Lease Liability Payments Due Year Two",
        "terseLabel": "2023"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityPaymentsDueYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount": {
     "auth_ref": [
      "r764"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's undiscounted obligation for lease payments in excess of discounted obligation for lease payments for operating lease.",
        "label": "Lessee Operating Lease Liability Undiscounted Excess Amount",
        "negatedLabel": "Less: Present value discount"
       }
      }
     },
     "localname": "LesseeOperatingLeaseLiabilityUndiscountedExcessAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LettersOfCreditOutstandingAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of the contingent obligation under letters of credit outstanding as of the reporting date.",
        "label": "Letters Of Credit Outstanding Amount",
        "terseLabel": "Letters of credit issued inside credit facilities"
       }
      }
     },
     "localname": "LettersOfCreditOutstandingAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquity": {
     "auth_ref": [
      "r49",
      "r158",
      "r296",
      "r720",
      "r781",
      "r849",
      "r873"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities and equity items, including the portion of equity attributable to noncontrolling interests, if any.",
        "label": "Total Liabilities and Capitalization",
        "totalLabel": "Total Liabilities and Capitalization"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesAndStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "LIABILITIES AND CAPITALIZATION",
        "terseLabel": "Equity method investment summarized liabilities and equity [Abstract]"
       }
      }
     },
     "localname": "LiabilitiesAndStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesCurrent": {
     "auth_ref": [
      "r63",
      "r158",
      "r296",
      "r361",
      "r362",
      "r363",
      "r366",
      "r367",
      "r368",
      "r370",
      "r372",
      "r374",
      "r375",
      "r636",
      "r644",
      "r645",
      "r720",
      "r779",
      "r780",
      "r781"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total obligations incurred as part of normal operations that are expected to be paid during the following twelve months or within one business cycle, if longer.",
        "label": "Total Current Liabilities",
        "totalLabel": "Total Current Liabilities"
       }
      }
     },
     "localname": "LiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesCurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Liabilities:"
       }
      }
     },
     "localname": "LiabilitiesCurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesFairValueDisclosure": {
     "auth_ref": [
      "r695"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of financial and nonfinancial obligations.",
        "label": "Liabilities Fair Value Disclosure",
        "terseLabel": "Total Liabilities",
        "totalLabel": "Total Liabilities"
       }
      }
     },
     "localname": "LiabilitiesFairValueDisclosure",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesFairValueDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities Fair Value Disclosure [Abstract]",
        "terseLabel": "Liabilities:"
       }
      }
     },
     "localname": "LiabilitiesFairValueDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LiabilitiesNoncurrent": {
     "auth_ref": [
      "r18",
      "r19",
      "r20",
      "r37",
      "r38",
      "r158",
      "r296",
      "r361",
      "r362",
      "r363",
      "r366",
      "r367",
      "r368",
      "r370",
      "r372",
      "r374",
      "r375",
      "r636",
      "r644",
      "r645",
      "r720",
      "r779",
      "r780"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of obligation due after one year or beyond the normal operating cycle, if longer.",
        "label": "Total Other Credits",
        "totalLabel": "Total Other Credits"
       }
      }
     },
     "localname": "LiabilitiesNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LiabilitiesNoncurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Credits:"
       }
      }
     },
     "localname": "LiabilitiesNoncurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LineOfCredit": {
     "auth_ref": [
      "r37",
      "r847",
      "r863"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The carrying value as of the balance sheet date of the current and noncurrent portions of long-term obligations drawn from a line of credit, which is a bank's commitment to make loans up to a specific amount. Examples of items that might be included in the application of this element may consist of letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to a maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line. Includes short-term obligations that would normally be classified as current liabilities but for which (a) postbalance sheet date issuance of a long term obligation to refinance the short term obligation on a long term basis, or (b) the enterprise has entered into a financing agreement that clearly permits the enterprise to refinance the short-term obligation on a long term basis and the following conditions are met (1) the agreement does not expire within 1 year and is not cancelable by the lender except for violation of an objectively determinable provision, (2) no violation exists at the BS date, and (3) the lender has entered into the financing agreement is expected to be financially capable of honoring the agreement.",
        "label": "Line of credit, borrowings outstanding",
        "totalLabel": "Long-term Line of Credit, Total"
       }
      }
     },
     "localname": "LineOfCredit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity": {
     "auth_ref": [
      "r59"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current borrowing capacity under the credit facility considering any current restrictions on the amount that could be borrowed (for example, borrowings may be limited by the amount of current assets), but without considering any amounts currently outstanding under the facility.",
        "label": "Line Of Credit Facility Current Borrowing Capacity",
        "terseLabel": "Available capacity under line of credit"
       }
      }
     },
     "localname": "LineOfCreditFacilityCurrentBorrowingCapacity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LineOfCreditFacilityLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Credit facilities [Line Items]"
       }
      }
     },
     "localname": "LineOfCreditFacilityLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity": {
     "auth_ref": [
      "r59"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility.",
        "label": "Line Of Credit Facility Maximum Borrowing Capacity",
        "terseLabel": "Line of credit"
       }
      }
     },
     "localname": "LineOfCreditFacilityMaximumBorrowingCapacity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LineOfCreditFacilityTable": {
     "auth_ref": [
      "r59",
      "r157"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table or schedule providing information pertaining to short-term or long-term contractual arrangements with lenders, including letters of credit, standby letters of credit, and revolving credit arrangements, under which borrowings can be made up to maximum amount as of any point in time conditional on satisfaction of specified terms before, as of and after the date of drawdowns on the line.",
        "label": "Line of Credit Facility [Table]"
       }
      }
     },
     "localname": "LineOfCreditFacilityTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LineOfCreditMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A contractual arrangement with a lender under which borrowings can be made up to a specific amount at any point in time, and under which borrowings outstanding may be either short-term or long-term, depending upon the particulars.",
        "label": "Line of Credit [Member]"
       }
      }
     },
     "localname": "LineOfCreditMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LongTermDebt": {
     "auth_ref": [
      "r37",
      "r384",
      "r396",
      "r397",
      "r398",
      "r847",
      "r870"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations.",
        "label": "Long-term Debt",
        "terseLabel": "Long-term debt",
        "totalLabel": "Total",
        "verboseLabel": "Total Long-Term Debt"
       }
      }
     },
     "localname": "LongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtCurrent": {
     "auth_ref": [
      "r61"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1": {
       "order": 1.0,
       "parentTag": "us-gaap_LongTermDebtNoncurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 7.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt, classified as current. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations.",
        "label": "Long-term debt due within one year",
        "negatedLabel": "Long-term debt due within one year",
        "totalLabel": "Long-term Debt, Current Maturities, Total"
       }
      }
     },
     "localname": "LongTermDebtCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtFairValue": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The fair value amount of long-term debt whether such amount is presented as a separate caption or as a parenthetical disclosure. Additionally, this element may be used in connection with the fair value disclosures required in the footnote disclosures to the financial statements. The element may be used in both the balance sheet and disclosure in the same submission.",
        "label": "Long-Term debt"
       }
      }
     },
     "localname": "LongTermDebtFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive": {
     "auth_ref": [
      "r168",
      "r358",
      "r388"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long term debt maturities in future years",
        "terseLabel": "Long term debt maturities in future years"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths": {
     "auth_ref": [
      "r168",
      "r358",
      "r388"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long term debt maturities in 2021",
        "terseLabel": "Long term debt maturities in 2022"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive": {
     "auth_ref": [
      "r168",
      "r358",
      "r388"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long term debt maturities in 2025",
        "terseLabel": "Long term debt maturities in 2026"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour": {
     "auth_ref": [
      "r168",
      "r358",
      "r388"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long term debt maturities in 2024",
        "terseLabel": "Long term debt maturities in 2025"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree": {
     "auth_ref": [
      "r168",
      "r358",
      "r388"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long term debt maturities in 2023",
        "terseLabel": "Long term debt maturities in 2024"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo": {
     "auth_ref": [
      "r168",
      "r358",
      "r388"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of long-term debt payable, sinking fund requirement, and other securities issued that are redeemable by holder at fixed or determinable price and date, maturing in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Long term debt maturities in 2022",
        "terseLabel": "Long term debt maturities in 2023"
       }
      }
     },
     "localname": "LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtNoncurrent": {
     "auth_ref": [
      "r66"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_CapitalizationLongtermDebtAndEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 0.0,
       "parentTag": "us-gaap_CapitalizationLongtermDebtAndEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after unamortized (discount) premium and debt issuance costs of long-term debt classified as noncurrent and excluding amounts to be repaid within one year or the normal operating cycle, if longer. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations.",
        "label": "Long-term debt",
        "terseLabel": "Total Long-Term Debt",
        "totalLabel": "Total Long-Term Debt"
       }
      }
     },
     "localname": "LongTermDebtNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermDebtTextBlock": {
     "auth_ref": [
      "r401"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for long-term debt.",
        "label": "Long-term Debt [Text Block]",
        "terseLabel": "Long-Term Debt"
       }
      }
     },
     "localname": "LongTermDebtTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebt"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_LongTermPurchaseCommitmentAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The minimum amount the entity agreed to spend under the long-term purchase commitment.",
        "label": "Long Term Purchase Commitment",
        "terseLabel": "Minimum future capital commitments"
       }
      }
     },
     "localname": "LongTermPurchaseCommitmentAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by category of items purchased under a long-term purchase commitment.",
        "label": "Long Term Purchase Commitment By Category Of Item Purchased [Axis]"
       }
      }
     },
     "localname": "LongTermPurchaseCommitmentByCategoryOfItemPurchasedAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "General description of the goods or services to be purchased from the counterparty to the long-term purchase commitment.",
        "label": "Long Term Purchase Commitment Category Of Item Purchased [Domain]"
       }
      }
     },
     "localname": "LongTermPurchaseCommitmentCategoryOfItemPurchasedDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_LongTermPurchaseCommitmentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Long-term purchase commitments [Line Items]"
       }
      }
     },
     "localname": "LongTermPurchaseCommitmentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LongTermPurchaseCommitmentTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule setting forth key provisions of an arrangement under which the entity has agreed to purchase goods or services over a period of time greater than one year or the normal operating cycle, if longer, including the item for which expenditures will be made, minimum quantities, milestones, time period and committed amount.",
        "label": "Long Term Purchase Commitment [Table]"
       }
      }
     },
     "localname": "LongTermPurchaseCommitmentTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LongtermDebtTypeAxis": {
     "auth_ref": [
      "r66"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of long-term debt.",
        "label": "Long-term Debt, Type [Axis]"
       }
      }
     },
     "localname": "LongtermDebtTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_LongtermDebtTypeDomain": {
     "auth_ref": [
      "r66",
      "r359"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of long-term debt arrangement, such as notes, line of credit, commercial paper, asset-based financing, project financing, letter of credit financing. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the company, if longer.",
        "label": "Long-term Debt, Type [Domain]"
       }
      }
     },
     "localname": "LongtermDebtTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes2"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MarginDepositAssets": {
     "auth_ref": [
      "r79"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2": {
       "order": 2.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of cash or securities placed with a broker or counterparty as security for a trading or derivatives securities position which was partially obtained with funds provided by the broker dealer.",
        "label": "Receivable - margin account",
        "terseLabel": "Receivable, margin account balance, net of collateral posted against derivative positions"
       }
      }
     },
     "localname": "MarginDepositAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MaturitiesOfLongTermDebtAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Long-Term Debt Maturities [Abstract]"
       }
      }
     },
     "localname": "MaturitiesOfLongTermDebtAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_MediumTermNotesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Debt instruments with maturities ranging from five to ten years.",
        "label": "Medium-Term Notes [Member]",
        "terseLabel": "5.26%, due 2017 [Member]"
       }
      }
     },
     "localname": "MediumTermNotesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_MinorityInterest": {
     "auth_ref": [
      "r74",
      "r158",
      "r296",
      "r361",
      "r366",
      "r367",
      "r368",
      "r374",
      "r375",
      "r720",
      "r848",
      "r872"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 0.0,
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total of all stockholders' equity (deficit) items, net of receivables from officers, directors, owners, and affiliates of the entity which is directly or indirectly attributable to that ownership interest in subsidiary equity which is not attributable to the parent (that is, noncontrolling interest, previously referred to as minority interest).",
        "label": "Noncontrolling interest",
        "periodEndLabel": "Stockholders' Equity Attributable to Noncontrolling Interest, Ending Balance",
        "periodStartLabel": "Stockholders' Equity Attributable to Noncontrolling Interest, Beginning Balance",
        "terseLabel": "Noncontrolling interest on balance sheet",
        "totalLabel": "Stockholders' Equity Attributable to Noncontrolling Interest, Total"
       }
      }
     },
     "localname": "MinorityInterest",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders": {
     "auth_ref": [
      "r429"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Decrease in noncontrolling interest balance from payment of dividends or other distributions by the non-wholly owned subsidiary or partially owned entity, included in the consolidation of the parent entity, to the noncontrolling interest holders.",
        "label": "Distributions to Parent from Noncontrolling Interest",
        "negatedLabel": "Distributions to parent from noncontrolling interest"
       }
      }
     },
     "localname": "MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_MinorityInterestDisclosureTextBlock": {
     "auth_ref": [
      "r654"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for noncontrolling interest in consolidated subsidiaries, which could include the name of the subsidiary, the ownership percentage held by the parent, the ownership percentage held by the noncontrolling owners, the amount of the noncontrolling interest, the location of this amount on the balance sheet (when not reported separately), an explanation of the increase or decrease in the amount of the noncontrolling interest, the noncontrolling interest share of the net Income or Loss of the subsidiary, the location of this amount on the income statement (when not reported separately), the nature of the noncontrolling interest such as background information and terms, the amount of the noncontrolling interest represented by preferred stock, a description of the preferred stock, and the dividend requirements of the preferred stock.",
        "label": "Noncontrolling Interest"
       }
      }
     },
     "localname": "MinorityInterestDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterest"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_MinorityInterestLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Noncontrolling Interest [Line Items]"
       }
      }
     },
     "localname": "MinorityInterestLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterest",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_MinorityInterestOwnershipPercentageByParent": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The parent entity's interest in net assets of the subsidiary, expressed as a percentage.",
        "label": "Noncontrolling Interest, Ownership Percentage by Parent",
        "terseLabel": "Ownership percentage by parent"
       }
      }
     },
     "localname": "MinorityInterestOwnershipPercentageByParent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_MinorityInterestTable": {
     "auth_ref": [
      "r74",
      "r114",
      "r632",
      "r643"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of noncontrolling interest disclosure which includes the name of the subsidiary, the ownership percentage held by the parent, the ownership percentage held by the noncontrolling owners, the amount of the noncontrolling interest, the location of this amount on the balance sheet (when not reported separately), an explanation of the increase or decrease in the amount of the noncontrolling interest, the noncontrolling interest share of the net Income or Loss of the subsidiary, the location of this amount on the income statement (when not reported separately), the nature of the noncontrolling interest such as background information and terms, the amount of the noncontrolling interest represented by preferred stock, a description of the preferred stock, and the dividend requirements of the preferred stock.",
        "label": "Noncontrolling Interest [Table]"
       }
      }
     },
     "localname": "MinorityInterestTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterest",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_MovementInValuationAllowancesAndReservesRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "SEC Schedule, 12-09, Movement in Valuation Allowances and Reserves [Roll Forward]"
       }
      }
     },
     "localname": "MovementInValuationAllowancesAndReservesRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivities": {
     "auth_ref": [
      "r134"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 0.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from financing activities, including discontinued operations. Financing activity cash flows include obtaining resources from owners and providing them with a return on, and a return of, their investment; borrowing money and repaying amounts borrowed, or settling the obligation; and obtaining and paying for other resources obtained from creditors on long-term credit.",
        "label": "Cash Used for Financing Activities",
        "totalLabel": "Cash Provided by (Used for) Financing Activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financing Activities:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInFinancingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivities": {
     "auth_ref": [
      "r134"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 1.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from investing activities, including discontinued operations. Investing activity cash flows include making and collecting loans and acquiring and disposing of debt or equity instruments and property, plant, and equipment and other productive assets.",
        "label": "Cash Used for Investing Activities",
        "terseLabel": "Cash used for investing activities",
        "totalLabel": "Cash Used for Investing Activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investing Activities:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInInvestingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivities": {
     "auth_ref": [
      "r134",
      "r138",
      "r141"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 2.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect",
       "weight": 1.0
      }
     },
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from operating activities, including discontinued operations. Operating activity cash flows include transactions, adjustments, and changes in value not defined as investing or financing activities.",
        "label": "Cash Provided by Operating Activities",
        "terseLabel": "Cash provided by operating activities",
        "totalLabel": "Cash Provided by Operating Activities"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Activities:"
       }
      }
     },
     "localname": "NetCashProvidedByUsedInOperatingActivitiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NetIncomeLoss": {
     "auth_ref": [
      "r8",
      "r99",
      "r101",
      "r106",
      "r110",
      "r141",
      "r158",
      "r183",
      "r189",
      "r190",
      "r192",
      "r193",
      "r197",
      "r198",
      "r206",
      "r243",
      "r255",
      "r259",
      "r262",
      "r265",
      "r296",
      "r361",
      "r362",
      "r363",
      "r366",
      "r367",
      "r368",
      "r370",
      "r372",
      "r374",
      "r375",
      "r692",
      "r720",
      "r853",
      "r880"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": null,
       "parentTag": null,
       "root": true,
       "weight": null
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The portion of profit or loss for the period, net of income taxes, which is attributable to the parent.",
        "label": "Net Income",
        "totalLabel": "Net Income"
       }
      }
     },
     "localname": "NetIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NetIncomeLossAttributableToNoncontrollingInterest": {
     "auth_ref": [
      "r99",
      "r101",
      "r106",
      "r197",
      "r198",
      "r639",
      "r652"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of Net Income (Loss) attributable to noncontrolling interest.",
        "label": "Less Net Income Attributable to Noncontrolling Interest, net of tax",
        "negatedLabel": "Less Net Income Attributable to Noncontrolling Interest, net of tax",
        "terseLabel": "Net income attributable to noncontrolling interest, net of tax",
        "totalLabel": "Net Income (Loss) Attributable to Noncontrolling Interest, Total"
       }
      }
     },
     "localname": "NetIncomeLossAttributableToNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NoncontrollingInterestDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NewAccountingPronouncementsAndChangesInAccountingPrinciplesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "New Accounting Pronouncements and Changes in Accounting Principles [Abstract]",
        "terseLabel": "Adoption of Accounting Principles and Recently Issued Accounting Pronouncements"
       }
      }
     },
     "localname": "NewAccountingPronouncementsAndChangesInAccountingPrinciplesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock": {
     "auth_ref": [
      "r5",
      "r181",
      "r182",
      "r185",
      "r186",
      "r199",
      "r200",
      "r201",
      "r282",
      "r283",
      "r302",
      "r303",
      "r451",
      "r452",
      "r453",
      "r454",
      "r574",
      "r615",
      "r616",
      "r617",
      "r688",
      "r728",
      "r729",
      "r730",
      "r767",
      "r824",
      "r825",
      "r826",
      "r895",
      "r896",
      "r897",
      "r898",
      "r900",
      "r995"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for change in accounting principle. Includes, but is not limited to, nature, reason, and method of adopting amendment to accounting standards or other change in accounting principle.",
        "label": "Adoption of Accounting Principles and Recently Issued Accounting Pronouncements",
        "terseLabel": "New Accounting Pronouncements"
       }
      }
     },
     "localname": "NewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandards"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "New Accounting Pronouncements or Change in Accounting Principle [Line Items]"
       }
      }
     },
     "localname": "NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable": {
     "auth_ref": [
      "r0",
      "r1",
      "r2",
      "r3",
      "r4",
      "r180",
      "r183",
      "r184",
      "r185",
      "r187",
      "r188",
      "r192",
      "r199",
      "r211",
      "r280",
      "r281",
      "r298",
      "r299",
      "r300",
      "r301",
      "r304",
      "r305",
      "r360",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r575",
      "r611",
      "r612",
      "r613",
      "r614",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r689",
      "r690",
      "r691",
      "r692",
      "r722",
      "r723",
      "r724",
      "r725",
      "r726",
      "r727",
      "r731",
      "r732",
      "r766",
      "r821",
      "r822",
      "r823",
      "r889",
      "r890",
      "r891",
      "r892",
      "r893",
      "r894",
      "r895",
      "r896",
      "r897",
      "r898",
      "r899",
      "r900",
      "r990",
      "r991",
      "r992",
      "r993",
      "r994"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summarization of the changes in an accounting principle or a new accounting pronouncement, including the line items affected by the change and the financial effects of the change on those particular line items.",
        "label": "New Accounting Pronouncements or Change in Accounting Principle [Table]"
       }
      }
     },
     "localname": "NewAccountingPronouncementsOrChangeInAccountingPrincipleTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_NewAccountingPronouncementsPolicyPolicyTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy pertaining to new accounting pronouncements that may impact the entity's financial reporting. Includes, but is not limited to, quantification of the expected or actual impact.",
        "label": "New Accounting Pronouncements",
        "terseLabel": "New Accounting Standards"
       }
      }
     },
     "localname": "NewAccountingPronouncementsPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_NoncontrollingInterestAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncontrolling Interest [Abstract]"
       }
      }
     },
     "localname": "NoncontrollingInterestAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_NoncontrollingInterestDecreaseFromDeconsolidation": {
     "auth_ref": [
      "r430",
      "r641"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the reduction or elimination during the period of a noncontrolling interest resulting from the parent's loss of control and deconsolidation of the entity in which one or more outside parties had a noncontrolling interest.",
        "label": "Noncontrolling Interest, Decrease from Deconsolidation",
        "negatedLabel": "Deconsolidation of noncontrolling interest"
       }
      }
     },
     "localname": "NoncontrollingInterestDecreaseFromDeconsolidation",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance": {
     "auth_ref": [
      "r430",
      "r634",
      "r641"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in noncontrolling interest from subsidiary issuance of equity interests to noncontrolling interest holders.",
        "label": "Equity Contribution Received by Noncontrolling Interest",
        "terseLabel": "Equity contribution received by noncontrolling interest"
       }
      }
     },
     "localname": "NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NoncontrollingInterestMember": {
     "auth_ref": [
      "r177",
      "r178",
      "r179",
      "r429",
      "r631"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents that portion of equity (net assets) in a subsidiary not attributable, directly or indirectly, to the parent. A noncontrolling interest is sometimes called a minority interest.",
        "label": "Noncontrolling Interest [Member]"
       }
      }
     },
     "localname": "NoncontrollingInterestMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NonoperatingIncomeExpense": {
     "auth_ref": [
      "r117"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The aggregate amount of income or expense from ancillary business-related activities (that is to say, excluding major activities considered part of the normal operations of the business).",
        "label": "Nonoperating Income Expense",
        "terseLabel": "Other income, net",
        "totalLabel": "Total Other Income and Deductions",
        "verboseLabel": "Other (deductions) income, net"
       }
      }
     },
     "localname": "NonoperatingIncomeExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NontaxableMunicipalBondsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Long-term debt securities issued by state, city or local governments or the agencies operated by state, city or local governments that are not taxable.",
        "label": "Tax Exempt Debt [Member]"
       }
      }
     },
     "localname": "NontaxableMunicipalBondsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_NotesAndLoansReceivableNetNoncurrent": {
     "auth_ref": [
      "r44"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance for credit loss, of financing receivable, classified as noncurrent.",
        "label": "Other long-term receivables",
        "totalLabel": "Financing Receivable, after Allowance for Credit Loss, Noncurrent, Total"
       }
      }
     },
     "localname": "NotesAndLoansReceivableNetNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_NotionalAmountOfDerivativesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gross Notional Volume of Open Derivatives"
       }
      }
     },
     "localname": "NotionalAmountOfDerivativesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OffsettingAssetsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Offsetting Assets [Line Items]"
       }
      }
     },
     "localname": "OffsettingAssetsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OffsettingAssetsTable": {
     "auth_ref": [
      "r85",
      "r86"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about derivative and financial assets that are subject to offsetting, including enforceable master netting arrangements.",
        "label": "Offsetting Assets [Table]"
       }
      }
     },
     "localname": "OffsettingAssetsTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OffsettingAssetsTableTextBlock": {
     "auth_ref": [
      "r85",
      "r86"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of derivative and other financial assets that are subject to offsetting, including master netting arrangements.",
        "label": "Offsetting Assets [Table Text Block]",
        "terseLabel": "Offsetting Assets"
       }
      }
     },
     "localname": "OffsettingAssetsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OffsettingLiabilitiesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Offsetting Liabilities [Line Items]"
       }
      }
     },
     "localname": "OffsettingLiabilitiesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OffsettingLiabilitiesTable": {
     "auth_ref": [
      "r85",
      "r86"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about derivative and financial liabilities that are subject to offsetting, including enforceable master netting arrangements.",
        "label": "Offsetting Liabilities [Table]"
       }
      }
     },
     "localname": "OffsettingLiabilitiesTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OffsettingLiabilitiesTableTextBlock": {
     "auth_ref": [
      "r85",
      "r86"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of derivative and other financial liabilities that are subject to offsetting, including master netting arrangements.",
        "label": "Offsetting Liabilities [Table Text Block]",
        "terseLabel": "Offsetting Liabilities"
       }
      }
     },
     "localname": "OffsettingLiabilitiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OperatingIncomeLoss": {
     "auth_ref": [
      "r243",
      "r255",
      "r259",
      "r262",
      "r265"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 0.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement": {
       "order": 0.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net result for the period of deducting operating expenses from operating revenues.",
        "label": "Operating income",
        "terseLabel": "Operating Income (Loss)",
        "totalLabel": "Operating Income"
       }
      }
     },
     "localname": "OperatingIncomeLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseCost": {
     "auth_ref": [
      "r758",
      "r765"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails1": {
       "order": 2.0,
       "parentTag": "us-gaap_LeaseCost",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of single lease cost, calculated by allocation of remaining cost of lease over remaining lease term. Includes, but is not limited to, single lease cost, after impairment of right-of-use asset, calculated by amortization of remaining right-of-use asset and accretion of lease liability.",
        "label": "Operating Lease Cost",
        "terseLabel": "Operating lease expense, Other operations and maintenance"
       }
      }
     },
     "localname": "OperatingLeaseCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiabilitiesPaymentsDueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Lease Liabilities Payments Due [Abstract]"
       }
      }
     },
     "localname": "OperatingLeaseLiabilitiesPaymentsDueAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OperatingLeaseLiabilityCurrent": {
     "auth_ref": [
      "r750"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2": {
       "order": 2.0,
       "parentTag": "mgee_LeaseLiability",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease, classified as current.",
        "label": "Operating Lease Liability Current",
        "negatedLabel": "Less: current portion",
        "terseLabel": "Operating lease liabilities - current"
       }
      }
     },
     "localname": "OperatingLeaseLiabilityCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList": {
     "auth_ref": [
      "r751"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of financial position that includes current operating lease liability.",
        "label": "Operating Lease, Liability, Current, Statement of Financial Position [Extensible Enumeration]",
        "terseLabel": "Other current liabilities"
       }
      }
     },
     "localname": "OperatingLeaseLiabilityCurrentStatementOfFinancialPositionExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_OperatingLeaseLiabilityNoncurrent": {
     "auth_ref": [
      "r750"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2": {
       "order": 3.0,
       "parentTag": "mgee_LeaseLiability",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Present value of lessee's discounted obligation for lease payments from operating lease, classified as noncurrent.",
        "label": "Operating Lease Liability Noncurrent",
        "terseLabel": "Operating lease liabilities - long-term"
       }
      }
     },
     "localname": "OperatingLeaseLiabilityNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails5"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseLiabilityNoncurrentStatementOfFinancialPositionExtensibleList": {
     "auth_ref": [
      "r751"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of financial position that includes noncurrent operating lease liability.",
        "label": "Operating Lease, Liability, Noncurrent, Statement of Financial Position [Extensible Enumeration]"
       }
      }
     },
     "localname": "OperatingLeaseLiabilityNoncurrentStatementOfFinancialPositionExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_OperatingLeasePayments": {
     "auth_ref": [
      "r755",
      "r759"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use.",
        "label": "Operating Lease Payments",
        "terseLabel": "Operating leases - operating cash flows"
       }
      }
     },
     "localname": "OperatingLeasePayments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseRightOfUseAsset": {
     "auth_ref": [
      "r749"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2": {
       "order": 1.0,
       "parentTag": "mgee_LeaseRightOfUseAsset",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of lessee's right to use underlying asset under operating lease.",
        "label": "Operating Lease Right Of Use Asset",
        "terseLabel": "Operating lease assets"
       }
      }
     },
     "localname": "OperatingLeaseRightOfUseAsset",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList": {
     "auth_ref": [
      "r751"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indicates line item in statement of financial position that includes operating lease right-of-use asset.",
        "label": "Operating Lease, Right-of-Use Asset, Statement of Financial Position [Extensible Enumeration]"
       }
      }
     },
     "localname": "OperatingLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "xbrltype": "enumerationSetItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent": {
     "auth_ref": [
      "r762",
      "r765"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average discount rate for operating lease calculated at point in time.",
        "label": "Operating Lease Weighted Average Discount Rate Percent",
        "terseLabel": "Weighted average discount rate operating leases"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageDiscountRatePercent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails4"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1": {
     "auth_ref": [
      "r761",
      "r765"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days.",
        "label": "Operating Lease Weighted Average Remaining Lease Term 1",
        "terseLabel": "Weighted average remaining lease term (years) operating leases"
       }
      }
     },
     "localname": "OperatingLeaseWeightedAverageRemainingLeaseTerm1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails4"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_OperatingLossCarryforwards": {
     "auth_ref": [
      "r603"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating loss carryforward, before tax effects, available to reduce future taxable income under enacted tax laws.",
        "label": "Operating loss carryforward",
        "terseLabel": "State net operating losses",
        "totalLabel": "Operating Loss Carryforwards, Total"
       }
      }
     },
     "localname": "OperatingLossCarryforwards",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingLossCarryforwardsValuationAllowance": {
     "auth_ref": [
      "r599"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The portion of the valuation allowance pertaining to the deferred tax asset representing potential future taxable deductions from net operating loss carryforwards for which it is more likely than not that a tax benefit will not be realized.",
        "label": "Operating Loss Carryforwards Valuation Allowance",
        "negatedLabel": "Valuation allowances for state net operating losses",
        "totalLabel": "Operating Loss Carryforwards, Valuation Allowance, Total"
       }
      }
     },
     "localname": "OperatingLossCarryforwardsValuationAllowance",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OperatingSegmentsMember": {
     "auth_ref": [
      "r254",
      "r255",
      "r256",
      "r257",
      "r259",
      "r265"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identifies components of an entity that engage in business activities from which they may earn revenue and incur expenses, including transactions with other components of the same entity.",
        "label": "Operating Segments [Member]"
       }
      }
     },
     "localname": "OperatingSegmentsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Organization, Consolidation and Presentation of Financial Statements [Abstract]",
        "terseLabel": "Principles of Consolidation"
       }
      }
     },
     "localname": "OrganizationConsolidationAndPresentationOfFinancialStatementsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherAssetsCurrent": {
     "auth_ref": [
      "r78",
      "r781"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 11.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 0.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of current assets classified as other.",
        "label": "Other current assets"
       }
      }
     },
     "localname": "OtherAssetsCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherAssetsNoncurrent": {
     "auth_ref": [
      "r56"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 3.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of noncurrent assets classified as other.",
        "label": "Other deferred assets and other",
        "totalLabel": "Other Assets, Noncurrent, Total"
       }
      }
     },
     "localname": "OtherAssetsNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherAssetsNoncurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Assets Noncurrent [Abstract]",
        "terseLabel": "Other deferred assets and other"
       }
      }
     },
     "localname": "OtherAssetsNoncurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherCommitment": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Minimum amount of other commitment not otherwise specified in the taxonomy. Excludes commitments explicitly modeled in the taxonomy, including but not limited to, long-term and short-term purchase commitments, recorded and unrecorded purchase obligations, supply commitments, registration payment arrangements, leases, debt, product warranties, guarantees, environmental remediation obligations, and pensions.",
        "label": "Other commitments, total as of balance sheet date",
        "terseLabel": "Contractual commitments",
        "totalLabel": "Other Commitment, Total"
       }
      }
     },
     "localname": "OtherCommitment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherCommitmentDueAfterFifthYear": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of commitment classified as other to be paid after fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Other commitment, due thereafter",
        "terseLabel": "Thereafter"
       }
      }
     },
     "localname": "OtherCommitmentDueAfterFifthYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherCommitmentDueInFifthYear": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of commitment classified as other to be paid in fifth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Other commitments, due in 2025",
        "terseLabel": "2026"
       }
      }
     },
     "localname": "OtherCommitmentDueInFifthYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherCommitmentDueInFourthYear": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of commitment classified as other to be paid in fourth fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Other commitments, due in 2024",
        "terseLabel": "2025"
       }
      }
     },
     "localname": "OtherCommitmentDueInFourthYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherCommitmentDueInNextTwelveMonths": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of commitment classified as other to be paid in next fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Other commitments, due in 2021",
        "terseLabel": "2022"
       }
      }
     },
     "localname": "OtherCommitmentDueInNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherCommitmentDueInSecondYear": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of commitment classified as other to be paid in second fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Other commitments, due in 2022",
        "terseLabel": "2023"
       }
      }
     },
     "localname": "OtherCommitmentDueInSecondYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherCommitmentDueInThirdYear": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of commitment classified as other to be paid in third fiscal year following current fiscal year. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Other commitments, due in 2023",
        "terseLabel": "2024"
       }
      }
     },
     "localname": "OtherCommitmentDueInThirdYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherCommitmentsAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of other commitment.",
        "label": "Other Commitments [Axis]"
       }
      }
     },
     "localname": "OtherCommitmentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherCommitmentsDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Other future obligation.",
        "label": "Other Commitments [Domain]"
       }
      }
     },
     "localname": "OtherCommitmentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherCommitmentsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Other Commitments [Line Items]"
       }
      }
     },
     "localname": "OtherCommitmentsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherCommitmentsTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about obligations resulting from other commitments.",
        "label": "Other Commitments [Table]"
       }
      }
     },
     "localname": "OtherCommitmentsTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_OtherCommitmentsTableTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of information about obligations resulting from other commitments.",
        "label": "Other Commitments [Table Text Block]",
        "terseLabel": "Other Commitments"
       }
      }
     },
     "localname": "OtherCommitmentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossNetOfTax": {
     "auth_ref": [
      "r100",
      "r102",
      "r104",
      "r105",
      "r107",
      "r111",
      "r422",
      "r734",
      "r739",
      "r740",
      "r854",
      "r881"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after tax and reclassification adjustments of other comprehensive income (loss).",
        "label": "Other comprehensive income (loss)",
        "totalLabel": "Total comprehensive income"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossNetOfTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax": {
     "auth_ref": [
      "r97",
      "r286"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of tax expense (benefit) of reclassification adjustment from accumulated other comprehensive income for unrealized gain (loss) realized upon the sale of available-for-sale securities.",
        "label": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Tax",
        "terseLabel": "Reclassification of realized gain on available-for-sale securities, taxes",
        "totalLabel": "Other Comprehensive Income (Loss), Reclassification Adjustment from AOCI for Sale of Securities, Tax, Total"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatementParentheticals"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax": {
     "auth_ref": [
      "r95",
      "r97"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before adjustment, of tax expense (benefit) for unrealized holding gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). Excludes tax expense (benefit) for unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale.",
        "label": "Net unrealized gain (loss) on investments, taxes",
        "terseLabel": "Unrealized gain (loss) on available-for-sale securities, taxes expense (benefit)"
       }
      }
     },
     "localname": "OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatementParentheticals"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherCurrentAssetsMember": {
     "auth_ref": [
      "r662",
      "r678"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other current assets.",
        "label": "Other Current Assets [Member]",
        "terseLabel": "Current assets [Member]"
       }
      }
     },
     "localname": "OtherCurrentAssetsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherCurrentLiabilitiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other current liabilities.",
        "label": "Other Current Liabilities [Member]"
       }
      }
     },
     "localname": "OtherCurrentLiabilitiesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherInventorySupplies": {
     "auth_ref": [
      "r75"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 5.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount before valuation and LIFO reserves of other supplies used within the manufacturing or production process expected to be consumed within one year or operating cycle, if longer.",
        "label": "Materials and supplies, at average cost"
       }
      }
     },
     "localname": "OtherInventorySupplies",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherInvestments": {
     "auth_ref": [
      "r53",
      "r876"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1": {
       "order": 3.0,
       "parentTag": "us-gaap_Investments",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "order": 1.0,
       "parentTag": "us-gaap_Investments",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of investments classified as other.",
        "label": "Other Investments",
        "terseLabel": "Other investments",
        "totalLabel": "Other Investments, Total"
       }
      }
     },
     "localname": "OtherInvestments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLiabilitiesCurrent": {
     "auth_ref": [
      "r15",
      "r16",
      "r62",
      "r781"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 8.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities classified as other, due within one year or the normal operating cycle, if longer.",
        "label": "Other current liabilities",
        "totalLabel": "Other Liabilities, Current, Total"
       }
      }
     },
     "localname": "OtherLiabilitiesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherLiabilitiesMember": {
     "auth_ref": [
      "r662",
      "r678"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other liabilities.",
        "label": "Other Liabilities [Member]"
       }
      }
     },
     "localname": "OtherLiabilitiesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherLiabilitiesNoncurrent": {
     "auth_ref": [
      "r67"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 6.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 0.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liabilities classified as other, due after one year or the normal operating cycle, if longer.",
        "label": "Other deferred liabilities and other",
        "totalLabel": "Other Liabilities, Noncurrent, Total"
       }
      }
     },
     "localname": "OtherLiabilitiesNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherNoncashIncomeExpense": {
     "auth_ref": [
      "r141"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income (expense) included in net income that results in no cash inflow (outflow), classified as other.",
        "label": "Other Noncash Income (Expense)",
        "negatedLabel": "Other items",
        "totalLabel": "Other Noncash Income (Expense), Total"
       }
      }
     },
     "localname": "OtherNoncashIncomeExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherNoncurrentAssetsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other noncurrent assets.",
        "label": "Other Noncurrent Assets [Member]",
        "terseLabel": "Other Deferred Charges [Member]",
        "verboseLabel": "Other deferred assets and other [Member]"
       }
      }
     },
     "localname": "OtherNoncurrentAssetsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherNoncurrentLiabilitiesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Primary financial statement caption encompassing other noncurrent liabilities.",
        "label": "Other deferred liabilities and other [Member]",
        "terseLabel": "Long-term Debt [Member]"
       }
      }
     },
     "localname": "OtherNoncurrentLiabilitiesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherNonoperatingIncomeExpense": {
     "auth_ref": [
      "r118"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement": {
       "order": 2.0,
       "parentTag": "us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesDomestic",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of income (expense) related to nonoperating activities, classified as other.",
        "label": "Other Nonoperating Income Expense",
        "terseLabel": "Other income (deductions), net",
        "totalLabel": "Other Nonoperating Income (Expense), Total",
        "verboseLabel": "Other income/(loss), net"
       }
      }
     },
     "localname": "OtherNonoperatingIncomeExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_OtherPostretirementBenefitPlansDefinedBenefitMember": {
     "auth_ref": [
      "r457",
      "r458",
      "r461",
      "r462",
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r484",
      "r485",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r501",
      "r502",
      "r503",
      "r504",
      "r505",
      "r507",
      "r509",
      "r510",
      "r513",
      "r516",
      "r520",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan designed to provide other postretirement benefits. Includes, but is not limited to, defined benefit and defined contribution plans. Excludes pension benefits.",
        "label": "Postretirement Benefits [Member]"
       }
      }
     },
     "localname": "OtherPostretirementBenefitPlansDefinedBenefitMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_OtherReceivablesNetCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 7.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, after allowance, of receivables classified as other, due within one year or the operating cycle, if longer.",
        "label": "Other accounts receivables, less reserves",
        "totalLabel": "Other Receivables, Net, Current, Total"
       }
      }
     },
     "localname": "OtherReceivablesNetCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsForProceedsFromOtherInvestingActivities": {
     "auth_ref": [
      "r120",
      "r123"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash (inflow) outflow from investing activities classified as other.",
        "label": "Other",
        "negatedLabel": "Other"
       }
      }
     },
     "localname": "PaymentsForProceedsFromOtherInvestingActivities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDebtExtinguishmentCosts": {
     "auth_ref": [
      "r129"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 19.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow for cost from early extinguishment and prepayment of debt. Includes, but is not limited to, third-party cost, premium paid, and other fee paid to lender directly for debt extinguishment or debt prepayment. Excludes accrued interest.",
        "label": "Debt make-whole premium",
        "negatedLabel": "Debt make-whole premium"
       }
      }
     },
     "localname": "PaymentsOfDebtExtinguishmentCosts",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDistributionsToAffiliates": {
     "auth_ref": [
      "r127"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The distributions of earnings to an entity that is affiliated with the reporting entity by means of direct or indirect ownership.",
        "label": "Cash dividends paid to parent by MGE",
        "negatedLabel": "Cash dividends paid to parent by MGE",
        "terseLabel": "Dividends from affiliates"
       }
      }
     },
     "localname": "PaymentsOfDistributionsToAffiliates",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsOfDividendsCommonStock": {
     "auth_ref": [
      "r127"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow in the form of ordinary dividends to common shareholders of the parent entity.",
        "label": "Cash dividends paid on common stock",
        "negatedLabel": "Cash dividends paid on common stock"
       }
      }
     },
     "localname": "PaymentsOfDividendsCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquireInterestInSubsidiariesAndAffiliates": {
     "auth_ref": [
      "r121"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with the acquisition of or advances to an entity that is related to it but not strictly controlled (for example, an unconsolidated subsidiary, affiliate, and joint venture or equity method investment) or the acquisition of an additional interest in a subsidiary (controlled entity).",
        "label": "Contributions to ATC",
        "negatedLabel": "Capital contributions to investments",
        "negatedTerseLabel": "Capital contributions to investments",
        "terseLabel": "Capital contributions to investments",
        "totalLabel": "Payments to Acquire Interest in Subsidiaries and Affiliates, Total"
       }
      }
     },
     "localname": "PaymentsToAcquireInterestInSubsidiariesAndAffiliates",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PaymentsToAcquirePropertyPlantAndEquipment": {
     "auth_ref": [
      "r122"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow associated with the acquisition of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale; includes cash outflows to pay for construction of self-constructed assets.",
        "label": "Capital expenditures",
        "negatedLabel": "Capital expenditures",
        "totalLabel": "Payments to Acquire Property, Plant, and Equipment, Total"
       }
      }
     },
     "localname": "PaymentsToAcquirePropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PensionAndOtherPostretirementBenefitContributions": {
     "auth_ref": [
      "r137"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 18.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash outflow for pension and other postretirement benefits. Includes, but is not limited to, employer contribution to fund plan asset and payment to retiree.",
        "label": "Cash contributions to pension and other postretirement plans",
        "negatedLabel": "Cash contributions to pension and other postretirement plans",
        "totalLabel": "Payment for Pension and Other Postretirement Benefits, Total"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementBenefitContributions",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PensionAndOtherPostretirementBenefitExpense": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cost (reversal of cost) for pension and other postretirement benefits.",
        "label": "Employee benefit plan (credit) cost",
        "totalLabel": "Pension and Other Postretirement Benefits Cost (Reversal of Cost), Total"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementBenefitExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PensionAndOtherPostretirementBenefitsDisclosureTextBlock": {
     "auth_ref": [
      "r484",
      "r486",
      "r492",
      "r511",
      "r514",
      "r515",
      "r516",
      "r517",
      "r518",
      "r535",
      "r537",
      "r538",
      "r540",
      "r553"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for retirement benefits.",
        "label": "Pension Plans and Other Postretirement Benefits"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementBenefitsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefits"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities": {
     "auth_ref": [
      "r36",
      "r458",
      "r459",
      "r482",
      "r535"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1": {
       "order": 1.0,
       "parentTag": "us-gaap_DefinedBenefitPlanFundedStatusOfPlan",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liability, recognized in statement of financial position, for defined benefit pension and other postretirement plans, classified as current.",
        "label": "Pension and Other Postretirement Defined Benefit Plans, Current Liabilities",
        "negatedTerseLabel": "Current liability"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansCurrentLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent": {
     "auth_ref": [
      "r39",
      "r458",
      "r459",
      "r482",
      "r535"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1": {
       "order": 2.0,
       "parentTag": "us-gaap_DefinedBenefitPlanFundedStatusOfPlan",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of liability, recognized in statement of financial position, for defined benefit pension and other postretirement plans, classified as noncurrent.",
        "label": "Accrued pension and other postretirement benefits",
        "negatedTerseLabel": "Long-term liability",
        "totalLabel": "Liability, Defined Benefit Plan, Noncurrent, Total"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementDefinedBenefitPlansLiabilitiesNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PensionAndOtherPostretirementPlansCostsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Rate action of a regulator resulting in capitalization or accrual of pension and other postretirement costs.",
        "label": "Pension and Other Postretirement Plans Costs [Member]",
        "terseLabel": "Pension and OPRB Costs [Member]"
       }
      }
     },
     "localname": "PensionAndOtherPostretirementPlansCostsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PensionPlansDefinedBenefitMember": {
     "auth_ref": [
      "r456",
      "r458",
      "r461",
      "r462",
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r484",
      "r485",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r501",
      "r502",
      "r503",
      "r504",
      "r505",
      "r507",
      "r509",
      "r510",
      "r513",
      "r516",
      "r520",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r540",
      "r541",
      "r548",
      "r549",
      "r550",
      "r551"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan designed to provide participant with pension benefits. Includes, but is not limited to, defined benefit and defined contribution plans. Excludes other postretirement benefits.",
        "label": "Pension Plan [Member]",
        "terseLabel": "Pension Benefits [Member]",
        "verboseLabel": "Pension Benefits [Member]"
       }
      }
     },
     "localname": "PensionPlansDefinedBenefitMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PerformanceSharesMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share-based payment arrangement awarded for meeting performance target.",
        "label": "Performance Units [Member]"
       }
      }
     },
     "localname": "PerformanceSharesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PlanAssetCategoriesDomain": {
     "auth_ref": [
      "r484",
      "r485",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r513",
      "r535"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Defined benefit plan asset investment.",
        "label": "Plan Asset Categories [Domain]"
       }
      }
     },
     "localname": "PlanAssetCategoriesDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PlanNameAxis": {
     "auth_ref": [
      "r556",
      "r566"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by plan name for share-based payment arrangement.",
        "label": "Plan Name [Axis]"
       }
      }
     },
     "localname": "PlanNameAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PlanNameDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan name for share-based payment arrangement.",
        "label": "Plan Name [Domain]"
       }
      }
     },
     "localname": "PlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PortionAtFairValueFairValueDisclosureMember": {
     "auth_ref": [
      "r713"
     ],
     "lang": {
      "en-us": {
       "role": {
        "axisDefault": "Portion at Fair Value Measurement [Member] [Default]",
        "documentation": "Measured at fair value for financial reporting purposes.",
        "label": "Portion at Fair Value Measurement [Member]"
       }
      }
     },
     "localname": "PortionAtFairValueFairValueDisclosureMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PrepaidTaxes": {
     "auth_ref": [
      "r11",
      "r13",
      "r323",
      "r324"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 8.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 1.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of asset related to consideration paid in advance for income and other taxes that provide economic benefits within a future period of one year or the normal operating cycle, if longer.",
        "label": "Prepaid taxes",
        "terseLabel": "Prepaid taxes and other"
       }
      }
     },
     "localname": "PrepaidTaxes",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrescriptionDrugSubsidyReceiptsAfterYearFive": {
     "auth_ref": [
      "r494",
      "r539"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of prescription drug subsidy receipt expected after fifth fiscal year following current fiscal year.",
        "label": "Prescription Drug Subsidy Receipts After Year Five",
        "negatedLabel": "Expected Medicare Part D Subsidies, 2027-2031"
       }
      }
     },
     "localname": "PrescriptionDrugSubsidyReceiptsAfterYearFive",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrescriptionDrugSubsidyReceiptsNextTwelveMonths": {
     "auth_ref": [
      "r494",
      "r539"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of prescription drug subsidy receipt expected in next fiscal year following current fiscal year.",
        "label": "Prescription Drug Subsidy Receipts Next Twelve Months",
        "negatedLabel": "Expected Medicare Part D Subsidies, 2022"
       }
      }
     },
     "localname": "PrescriptionDrugSubsidyReceiptsNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrescriptionDrugSubsidyReceiptsYearFive1": {
     "auth_ref": [
      "r494",
      "r539"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of prescription drug subsidy receipt expected in fifth fiscal year following current fiscal year.",
        "label": "Prescription Drug Subsidy Receipts Year Five 1",
        "negatedLabel": "Expected Medicare Part D Subsidies, 2026"
       }
      }
     },
     "localname": "PrescriptionDrugSubsidyReceiptsYearFive1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrescriptionDrugSubsidyReceiptsYearFour1": {
     "auth_ref": [
      "r494",
      "r539"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of prescription drug subsidy receipt expected in fourth fiscal year following current fiscal year.",
        "label": "Prescription Drug Subsidy Receipts Year Four 1",
        "negatedLabel": "Expected Medicare Part D Subsidies, 2025"
       }
      }
     },
     "localname": "PrescriptionDrugSubsidyReceiptsYearFour1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrescriptionDrugSubsidyReceiptsYearThree1": {
     "auth_ref": [
      "r494",
      "r539"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of prescription drug subsidy receipt expected in third fiscal year following current fiscal year.",
        "label": "Prescription Drug Subsidy Receipts Year Three 1",
        "negatedLabel": "Expected Medicare Part D Subsidies, 2024"
       }
      }
     },
     "localname": "PrescriptionDrugSubsidyReceiptsYearThree1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PrescriptionDrugSubsidyReceiptsYearTwo1": {
     "auth_ref": [
      "r494",
      "r539"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of prescription drug subsidy receipt expected in second fiscal year following current fiscal year.",
        "label": "Prescription Drug Subsidy Receipts Year Two 1",
        "negatedLabel": "Expected Medicare Part D Subsidies, 2023"
       }
      }
     },
     "localname": "PrescriptionDrugSubsidyReceiptsYearTwo1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromContributionsFromParent": {
     "auth_ref": [
      "r126"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 6.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 4.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from parent as a source of financing that is recorded as additional paid in capital.",
        "label": "Proceeds From Contributions From Parent",
        "terseLabel": "Capital contributions from parent"
       }
      }
     },
     "localname": "ProceedsFromContributionsFromParent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromDebtNetOfIssuanceCosts": {
     "auth_ref": [
      "r125"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from additional borrowings, net of cash paid to third parties in connection with debt origination.",
        "label": "Proceeds from Debt, Net of Issuance Costs"
       }
      }
     },
     "localname": "ProceedsFromDebtNetOfIssuanceCosts",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIncomeTaxRefunds": {
     "auth_ref": [
      "r138",
      "r144"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of cash received during the period as refunds for the overpayment of taxes.",
        "label": "Income taxes received",
        "negatedLabel": "Income taxes received"
       }
      }
     },
     "localname": "ProceedsFromIncomeTaxRefunds",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfCommonStock": {
     "auth_ref": [
      "r124"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from the additional capital contribution to the entity.",
        "label": "Proceeds From Issuance Of Common Stock",
        "terseLabel": "Issuance of common stock, net"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfCommonStock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromIssuanceOfLongTermDebt": {
     "auth_ref": [
      "r125"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 9.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow from a debt initially having maturity due after one year or beyond the operating cycle, if longer.",
        "label": "Issuance of long-term debt",
        "totalLabel": "Proceeds from Issuance of Long-term Debt, Total"
       }
      }
     },
     "localname": "ProceedsFromIssuanceOfLongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromMinorityShareholders": {
     "auth_ref": [
      "r126"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 7.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow from a noncontrolling interest. Includes, but is not limited to, purchase of additional shares or other increase in noncontrolling interest ownership.",
        "label": "Equity contribution received by noncontrolling interest"
       }
      }
     },
     "localname": "ProceedsFromMinorityShareholders",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromPaymentsForOtherFinancingActivities": {
     "auth_ref": [
      "r126",
      "r130"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 11.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow (outflow) from financing activities classified as other.",
        "label": "Proceeds From Payments For Other Financing Activities",
        "terseLabel": "Other"
       }
      }
     },
     "localname": "ProceedsFromPaymentsForOtherFinancingActivities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsCashFlowStatement"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromRepaymentsOfShortTermDebt": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 10.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net cash inflow or outflow for borrowing having initial term of repayment within one year or the normal operating cycle, if longer.",
        "label": "Proceeds from (Repayments of) short-term debt",
        "terseLabel": "Change in short-term debt",
        "totalLabel": "Proceeds from (Repayments of) Short-term Debt, Total"
       }
      }
     },
     "localname": "ProceedsFromRepaymentsOfShortTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleAndMaturityOfMarketableSecurities": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash inflow associated with the aggregate amount received by the entity through sale or maturity of marketable securities  (held-to-maturity or available-for-sale) during the period.",
        "label": "Proceeds from sale of investments",
        "totalLabel": "Proceeds from Sale and Maturity of Marketable Securities, Total"
       }
      }
     },
     "localname": "ProceedsFromSaleAndMaturityOfMarketableSecurities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestmentsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Results of Investment Liquidation [Abstract]"
       }
      }
     },
     "localname": "ProceedsFromSaleMaturityAndCollectionsOfInvestmentsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ProceedsFromSaleOfOtherPropertyPlantAndEquipment": {
     "auth_ref": [
      "r119"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 2.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInInvestingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash inflow for the sale of long-lived, physical assets used to produce goods and services and not intended for resale, classified as other.",
        "label": "Proceeds from sale of property"
       }
      }
     },
     "localname": "ProceedsFromSaleOfOtherPropertyPlantAndEquipment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ProductConcentrationRiskMember": {
     "auth_ref": [
      "r225"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reflects the percentage that revenues during the period from a specified product are to a specified benchmark, such as total net revenues, segment revenues or product line revenues. May also reflect the percentage contribution the product made to operating results. Risk is materially adverse effects of a loss of sales of a significant product or line of products, which could occur upon loss of rights to sell, distribute or license others; loss of patent or copyright protection; or technological obsolescence.",
        "label": "Product Concentration Risk [Member]"
       }
      }
     },
     "localname": "ProductConcentrationRiskMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ProfitLoss": {
     "auth_ref": [
      "r8",
      "r99",
      "r101",
      "r106",
      "r132",
      "r158",
      "r183",
      "r197",
      "r198",
      "r243",
      "r255",
      "r259",
      "r262",
      "r265",
      "r296",
      "r361",
      "r362",
      "r363",
      "r366",
      "r367",
      "r368",
      "r370",
      "r372",
      "r374",
      "r375",
      "r633",
      "r638",
      "r640",
      "r652",
      "r653",
      "r692",
      "r720",
      "r857"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 0.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 0.0,
       "parentTag": "us-gaap_NetIncomeLoss",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 15.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The consolidated profit or loss for the period, net of income taxes, including the portion attributable to the noncontrolling interest.",
        "label": "Net Income Including Noncontrolling Interest",
        "terseLabel": "Net Income",
        "totalLabel": "Net Income Including Noncontrolling Interest"
       }
      }
     },
     "localname": "ProfitLoss",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant and Equipment [Abstract]",
        "terseLabel": "Property, Plant, and Equiptment"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentByTypeAxis": {
     "auth_ref": [
      "r55",
      "r334"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of long-lived, physical assets used to produce goods and services and not intended for resale.",
        "label": "Property, Plant and Equipment, Type [Axis]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentByTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentDisclosureTextBlock": {
     "auth_ref": [
      "r339",
      "r923",
      "r924",
      "r925"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for long-lived, physical asset used in normal conduct of business and not intended for resale. Includes, but is not limited to, work of art, historical treasure, and similar asset classified as collections.",
        "label": "Property, Plant and Equipment Disclosure [Text Block]",
        "terseLabel": "Property, Plant and Equipment"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipment"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Property, Plant and Equipment [Line Items]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentNet": {
     "auth_ref": [
      "r26",
      "r27",
      "r334",
      "r781",
      "r859",
      "r874"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 6.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 2.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount after accumulated depreciation, depletion and amortization of physical assets used in the normal conduct of business to produce goods and services and not intended for resale. Examples include, but are not limited to, land, buildings, machinery and equipment, office equipment, and furniture and fixtures.",
        "label": "Property, plant, and equipment, net",
        "periodEndLabel": "Property, Plant and Equipment, Net, Ending Balance",
        "periodStartLabel": "Property, Plant and Equipment, Net, Beginning Balance",
        "terseLabel": "Net plant in service, nonregulated",
        "totalLabel": "Total Property, Plant, and Equipment",
        "verboseLabel": "Total property, plant, and equipment"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentNet",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentNetAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, Plant, and Equipment:"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentNetAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentPlannedMajorMaintenanceActivitiesPolicy": {
     "auth_ref": [
      "r330"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for planned major maintenance activities.",
        "label": "Repairs and Maintenance Expense"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentPlannedMajorMaintenanceActivitiesPolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentPolicyTextBlock": {
     "auth_ref": [
      "r54",
      "r334",
      "r923",
      "r924"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for long-lived, physical asset used in normal conduct of business and not intended for resale. Includes, but is not limited to, work of art, historical treasure, and similar asset classified as collections.",
        "label": "Property, Plant, and Equipment"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentTextBlock": {
     "auth_ref": [
      "r26",
      "r334"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of physical assets used in the normal conduct of business and not intended for resale. Includes, but is not limited to, balances by class of assets, depreciation and depletion expense and method used, including composite depreciation, and accumulated deprecation.",
        "label": "Schedule of Property, Plant, and Equipment"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentTypeDomain": {
     "auth_ref": [
      "r26",
      "r332"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Listing of long-lived, physical assets that are used in the normal conduct of business to produce goods and services and not intended for resale. Examples include land, buildings, machinery and equipment, and other types of furniture and equipment including, but not limited to, office equipment, furniture and fixtures, and computer equipment and software.",
        "label": "Property, Plant and Equipment, Type [Domain]"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PropertyPlantAndEquipmentUsefulLife": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Useful life of long lived, physical assets used in the normal conduct of business and not intended for resale, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. Examples include, but not limited to, land, buildings, machinery and equipment, office equipment, furniture and fixtures, and computer equipment.",
        "label": "Property, plant, and equipment, useful life"
       }
      }
     },
     "localname": "PropertyPlantAndEquipmentUsefulLife",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ProvisionForDoubtfulAccounts": {
     "auth_ref": [
      "r113",
      "r309"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 12.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of expense (reversal of expense) for expected credit loss on accounts receivable.",
        "label": "Provision for doubtful receivables"
       }
      }
     },
     "localname": "ProvisionForDoubtfulAccounts",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PublicUtilitiesAllowanceForFundsUsedDuringConstructionAdditions": {
     "auth_ref": [
      "r140",
      "r935",
      "r936"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total increase in earnings in the period representing the cost of equity (based on assumed rate of return) and/or borrowed funds (based on interest rate) used to finance construction of regulated assets, which is expected to be recovered through rate adjustments.",
        "label": "AFUDC - borrowed funds",
        "negatedLabel": "AFUDC - borrowed funds"
       }
      }
     },
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionAdditions",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PublicUtilitiesAllowanceForFundsUsedDuringConstructionCapitalizedCostOfEquity": {
     "auth_ref": [
      "r948",
      "r949"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The component of the allowance for funds used during construction during the period based on an assumed rate of return on equity funds used in financing the construction of regulated assets.",
        "label": "AFUDC equity recognized",
        "negatedLabel": "AFUDC - equity funds",
        "terseLabel": "AFUDC - equity funds"
       }
      }
     },
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionCapitalizedCostOfEquity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PublicUtilitiesAllowanceForFundsUsedDuringConstructionNetIncreaseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Allowance for Funds Used During Construction"
       }
      }
     },
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionNetIncreaseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PublicUtilitiesAllowanceForFundsUsedDuringConstructionRate": {
     "auth_ref": [
      "r948",
      "r949"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Effective rate, including composite rate, of cost of financing additions to qualifying regulated assets, commonly called allowance for funds used during construction.",
        "label": "Authorized AFUDC rate"
       }
      }
     },
     "localname": "PublicUtilitiesAllowanceForFundsUsedDuringConstructionRate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_PublicUtilitiesApprovedEquityCapitalStructurePercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of public utility's approved equity to capital, including debt and equity.",
        "label": "Public Utilities, Approved Equity Capital Structure, Percentage",
        "terseLabel": "Approved equity capital structure, percentage"
       }
      }
     },
     "localname": "PublicUtilitiesApprovedEquityCapitalStructurePercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_PublicUtilitiesApprovedRateIncreaseDecreaseAmount": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of public utility's approved rate increase (decrease) by regulatory agency.",
        "label": "Public Utilities, Approved Rate Increase (Decrease), Amount",
        "terseLabel": "Authorized rate increase (decrease), amount"
       }
      }
     },
     "localname": "PublicUtilitiesApprovedRateIncreaseDecreaseAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PublicUtilitiesApprovedRateIncreaseDecreasePercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of public utility's approved rate increase (decrease) by regulatory agency.",
        "label": "Public Utilities, Approved Rate Increase (Decrease), Percentage",
        "terseLabel": "Authorized rate increase (decrease), percentage"
       }
      }
     },
     "localname": "PublicUtilitiesApprovedRateIncreaseDecreasePercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_PublicUtilitiesApprovedReturnOnEquityPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of public utility's approved return on equity.",
        "label": "Public Utilities, Approved Return on Equity, Percentage",
        "terseLabel": "Authorized return on equity, percentage"
       }
      }
     },
     "localname": "PublicUtilitiesApprovedReturnOnEquityPercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_PublicUtilitiesDisclosureTextBlock": {
     "auth_ref": [
      "r950"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for public utilities.",
        "label": "Rate Matters"
       }
      }
     },
     "localname": "PublicUtilitiesDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMatters"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PublicUtilitiesGeneralDisclosuresLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Public Utilities, General Disclosures [Line Items]"
       }
      }
     },
     "localname": "PublicUtilitiesGeneralDisclosuresLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PublicUtilitiesGeneralDisclosuresTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about regulation for public utility entities, including, but not limited to, rate requests, decommissioning costs and the amount of allowance for earnings on equity capitalized for rate making purposes.",
        "label": "Public Utilities General Disclosures [Table]"
       }
      }
     },
     "localname": "PublicUtilitiesGeneralDisclosuresTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PublicUtilitiesInventoryCoalMember": {
     "auth_ref": [
      "r51",
      "r444"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Combustible mineral substance consisting of carbonized vegetable matter used as fuel and in production of coal gas, water gas, and coal-tar compound.",
        "label": "Coal [Member]"
       }
      }
     },
     "localname": "PublicUtilitiesInventoryCoalMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PublicUtilitiesPolicyTextBlock": {
     "auth_ref": [
      "r929"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for public utilities. Examples include a discussion about the scope criteria and appropriateness for and extent of the application of generally accepted accounting principles related to accounting for the effects of certain types of regulation (may include identification of specific business units). Other examples of the disclosures may include: descriptions of the form and economic effects of regulation (for example, but not limited to, recording of regulatory assets and liabilities to the rate setting process); statement about periodic assessments of periodic assessments of generally accepted accounting principles related to accounting for the effects of certain types of regulation; information regarding amortization of and return on regulatory assets and liabilities, including the remaining amounts and recovery or settlement periods; accounting for changes to recovery estimates; AFUDC, plant abandonment's and plant disallowances.",
        "label": "Regulatory Assets and Liabilities Policy",
        "terseLabel": "Regulatory Assets and Liabilities"
       }
      }
     },
     "localname": "PublicUtilitiesPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_PublicUtilitiesPropertyPlantAndEquipmentAmountOfLossRecoveryOnPlantAbandonment": {
     "auth_ref": [
      "r938",
      "r941"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of loss (recovery of loss) related to a plant abandonment.",
        "label": "Public Utilities, Property, Plant and Equipment, Amount of Loss (Recovery) on Plant Abandonment",
        "terseLabel": "Impairment of long-lived assets"
       }
      }
     },
     "localname": "PublicUtilitiesPropertyPlantAndEquipmentAmountOfLossRecoveryOnPlantAbandonment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PublicUtilitiesPropertyPlantAndEquipmentConstructionWorkInProgress": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period end amount of construction work in progress in public utility.",
        "label": "Public Utilities Property Plant And Equipment Construction Work In Progress",
        "terseLabel": "Saratoga Wind Project Costs"
       }
      }
     },
     "localname": "PublicUtilitiesPropertyPlantAndEquipmentConstructionWorkInProgress",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PublicUtilitiesPropertyPlantAndEquipmentDisclosureOfCompositeDepreciationRateForPlantsInService": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Composite depreciation rate for public utility plants in service.",
        "label": "Composite straight-line depreciation rates"
       }
      }
     },
     "localname": "PublicUtilitiesPropertyPlantAndEquipmentDisclosureOfCompositeDepreciationRateForPlantsInService",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_PublicUtilitiesPropertyPlantAndEquipmentPlantInService": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails": {
       "order": 0.0,
       "parentTag": "mgee_PropertyPlantAndEquipmentNetBeforeConstructionInProgress",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period end amount of total gross PPE.",
        "label": "Public Utilities Property Plant And Equipment Plant In Service",
        "terseLabel": "In-service utility plant, gross",
        "totalLabel": "Public Utilities, Property, Plant and Equipment, Plant in Service, Total"
       }
      }
     },
     "localname": "PublicUtilitiesPropertyPlantAndEquipmentPlantInService",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PublicUtilitiesPropertyPlantAndEquipmentPresentValueOfRegulatedAssetForPlantAbandonment": {
     "auth_ref": [
      "r937"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails": {
       "order": 1.0,
       "parentTag": "mgee_JointlyOwnedUtilityPlantNetOwnershipAmountBeforeConstructionWorkInProgress",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The present value amount of future cost recoveries that are probable and estimable related to plant abandonment's for regulated industries.",
        "label": "Public Utilities, Property, Plant and Equipment, Present Value of Regulated Asset for Plant Abandonment",
        "terseLabel": "Plant anticipated to be retired early"
       }
      }
     },
     "localname": "PublicUtilitiesPropertyPlantAndEquipmentPresentValueOfRegulatedAssetForPlantAbandonment",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PublicUtilitiesRateMattersAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public Utilities, Rate Matters [Abstract]",
        "terseLabel": "Rate Proceedings [Abstract]"
       }
      }
     },
     "localname": "PublicUtilitiesRateMattersAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PublicUtilitiesRegulatoryProceedingAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of regulatory proceeding.",
        "label": "Public Utilities, Regulatory Proceeding [Axis]"
       }
      }
     },
     "localname": "PublicUtilitiesRegulatoryProceedingAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PublicUtilitiesRegulatoryProceedingDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Proceeding with public utility's regulatory body.",
        "label": "Public Utilities, Regulatory Proceeding [Domain]"
       }
      }
     },
     "localname": "PublicUtilitiesRegulatoryProceedingDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_PublicUtilitiesRequestedEquityCapitalStructurePercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of public utility's requested equity to capital, including debt and equity.",
        "label": "Public Utilities, Requested Equity Capital Structure, Percentage",
        "terseLabel": "Proposed equity capital structure, percentage"
       }
      }
     },
     "localname": "PublicUtilitiesRequestedEquityCapitalStructurePercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_PublicUtilitiesRequestedRateIncreaseDecreasePercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of public utility's requested rate increase (decrease) with regulatory agency.",
        "label": "Public Utilities, Requested Rate Increase (Decrease), Percentage",
        "terseLabel": "Proposed rate increase (decrease), percentage"
       }
      }
     },
     "localname": "PublicUtilitiesRequestedRateIncreaseDecreasePercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_PublicUtilitiesRequestedReturnOnEquityPercentage": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of public utility's requested return on equity.",
        "label": "Public Utilities, Requested Return on Equity, Percentage",
        "terseLabel": "Proposed return on equity, percentage"
       }
      }
     },
     "localname": "PublicUtilitiesRequestedReturnOnEquityPercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_PublicUtilityRegulatedOrUnregulatedStatusAxis": {
     "auth_ref": [
      "r25",
      "r931"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by status (regulated or unregulated) of the public utility.",
        "label": "Regulation Status [Axis]"
       }
      }
     },
     "localname": "PublicUtilityRegulatedOrUnregulatedStatusAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_PurchaseObligationDueAfterFifthYear": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of purchase arrangement to be paid after fifth fiscal year following current fiscal year. Includes, but is not limited to, recorded and unrecorded purchase obligations, long-term purchase commitment, and short-term purchase commitment. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Purchase Obligation, Due after Fifth Year",
        "terseLabel": "Purchase obligation due thereafter"
       }
      }
     },
     "localname": "PurchaseObligationDueAfterFifthYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PurchaseObligationDueInFifthYear": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of purchase arrangement to be paid in fifth fiscal year following current fiscal year. Includes, but is not limited to, recorded and unrecorded purchase obligations, long-term purchase commitment, and short-term purchase commitment. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Purchase obligation due in fifth year"
       }
      }
     },
     "localname": "PurchaseObligationDueInFifthYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PurchaseObligationDueInFourthYear": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of purchase arrangement to be paid in fourth fiscal year following current fiscal year. Includes, but is not limited to, recorded and unrecorded purchase obligations, long-term purchase commitment, and short-term purchase commitment. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Purchase obligation due in fourth year"
       }
      }
     },
     "localname": "PurchaseObligationDueInFourthYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PurchaseObligationDueInNextTwelveMonths": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of purchase arrangement to be paid in next fiscal year following current fiscal year. Includes, but is not limited to, recorded and unrecorded purchase obligations, long-term purchase commitment, and short-term purchase commitment. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Purchase obligation due in next twelve months"
       }
      }
     },
     "localname": "PurchaseObligationDueInNextTwelveMonths",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PurchaseObligationDueInSecondYear": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of purchase arrangement to be paid in second fiscal year following current fiscal year. Includes, but is not limited to, recorded and unrecorded purchase obligations, long-term purchase commitment, and short-term purchase commitment. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Purchase obligation due in second year"
       }
      }
     },
     "localname": "PurchaseObligationDueInSecondYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PurchaseObligationDueInThirdYear": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of purchase arrangement to be paid in third fiscal year following current fiscal year. Includes, but is not limited to, recorded and unrecorded purchase obligations, long-term purchase commitment, and short-term purchase commitment. Excludes interim and annual periods when interim periods are reported from current statement of financial position date (rolling approach).",
        "label": "Purchase obligation due in third year"
       }
      }
     },
     "localname": "PurchaseObligationDueInThirdYear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_PurchaseObligationFiscalYearMaturityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase Obligation, Fiscal Year Maturity [Abstract]"
       }
      }
     },
     "localname": "PurchaseObligationFiscalYearMaturityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_QuarterlyFinancialInformationDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Quarterly Financial Information Disclosure [Abstract]"
       }
      }
     },
     "localname": "QuarterlyFinancialInformationDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_QuarterlyFinancialInformationTextBlock": {
     "auth_ref": [
      "r216",
      "r217"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for quarterly financial data. Includes, but is not limited to, tabular presentation of financial information for fiscal quarters, effect of year-end adjustments, and an explanation of matters or transactions that affect comparability of the information.",
        "label": "Quarterly Summary of Operations"
       }
      }
     },
     "localname": "QuarterlyFinancialInformationTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DisclosureQuarterlySummaryOfOperations"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RatioOfIndebtednessToNetCapital1": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Indebtedness divided by net capital.",
        "label": "Debt to total capitalization ratio"
       }
      }
     },
     "localname": "RatioOfIndebtednessToNetCapital1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_RealEstateMember": {
     "auth_ref": [
      "r444"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Property consisting of land, land improvement and buildings.",
        "label": "Real Estate [Member]"
       }
      }
     },
     "localname": "RealEstateMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ReceivablesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivables [Abstract]",
        "terseLabel": "Trade Receivables, Allowance for Doubtful Accounts, and Concentration Risk"
       }
      }
     },
     "localname": "ReceivablesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReceivablesNetCurrentAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivables, Net"
       }
      }
     },
     "localname": "ReceivablesNetCurrentAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ReceivablesPolicyTextBlock": {
     "auth_ref": [
      "r274",
      "r277",
      "r278",
      "r279"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for receivable. Includes, but is not limited to, accounts receivable and financing receivable.",
        "label": "Trade Receivables, Allowance for Doubtful Accounts, and Concentration Risk"
       }
      }
     },
     "localname": "ReceivablesPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ReconciliationOfUnrecognizedTaxBenefitsExcludingAmountsPertainingToExaminedTaxReturnsRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Unrecognized tax benefits [Roll Forward]"
       }
      }
     },
     "localname": "ReconciliationOfUnrecognizedTaxBenefitsExcludingAmountsPertainingToExaminedTaxReturnsRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RegulatedAndUnregulatedOperatingRevenue": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 0.0,
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The total amount of operating revenues recognized during the period.",
        "label": "Total Operating Revenues",
        "terseLabel": "Operating revenues",
        "totalLabel": "Total Operating Revenues"
       }
      }
     },
     "localname": "RegulatedAndUnregulatedOperatingRevenue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RegulatedAndUnregulatedOperatingRevenueAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Revenues:"
       }
      }
     },
     "localname": "RegulatedAndUnregulatedOperatingRevenueAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RegulatedAndUnregulatedOperationDomain": {
     "auth_ref": [
      "r931"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operations of companies, both regulated and unregulated.",
        "label": "Regulated and Unregulated Operation [Domain]"
       }
      }
     },
     "localname": "RegulatedAndUnregulatedOperationDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RegulatedOperatingRevenueElectricNonNuclear": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 0.0,
       "parentTag": "us-gaap_RegulatedAndUnregulatedOperatingRevenue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of regulated power revenues recognized during the period.",
        "label": "Electric revenues",
        "totalLabel": "Regulated Operating Revenue, Electric, Non-Nuclear, Total"
       }
      }
     },
     "localname": "RegulatedOperatingRevenueElectricNonNuclear",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RegulatedOperatingRevenueGas": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_RegulatedAndUnregulatedOperatingRevenue",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of regulated gas operating revenues recognized during the period.",
        "label": "Gas revenues"
       }
      }
     },
     "localname": "RegulatedOperatingRevenueGas",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RegulatedOperationMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operation of entities that are regulated by governmental organizations for example, but not limited to, local, state, county, country, or other regulatory organizations.",
        "label": "Regulated [Member]"
       }
      }
     },
     "localname": "RegulatedOperationMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RegulatedOperationsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulated Operations [Abstract]"
       }
      }
     },
     "localname": "RegulatedOperationsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RegulatoryAgencyAxis": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by name of regulatory agency.",
        "label": "Regulatory Agency [Axis]"
       }
      }
     },
     "localname": "RegulatoryAgencyAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RegulatoryAgencyDomain": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Organization that establishes and ensures compliance with rules or regulations.",
        "label": "Regulatory Agency [Domain]"
       }
      }
     },
     "localname": "RegulatoryAgencyDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RegulatoryAssetAxis": {
     "auth_ref": [
      "r933",
      "r934",
      "r945"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of regulatory asset.",
        "label": "Regulatory Asset [Axis]"
       }
      }
     },
     "localname": "RegulatoryAssetAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RegulatoryAssetDomain": {
     "auth_ref": [
      "r933"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Rate action of a regulator resulting in capitalization of costs incurred.",
        "label": "Regulatory Asset [Domain]"
       }
      }
     },
     "localname": "RegulatoryAssetDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RegulatoryAssetLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Regulatory Assets [Line Items]"
       }
      }
     },
     "localname": "RegulatoryAssetLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RegulatoryAssets": {
     "auth_ref": [
      "r933"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount for the individual regulatory asset as itemized in a table of regulatory assets as of the end of the period.",
        "label": "Regulatory Assets",
        "terseLabel": "Regulatory assets",
        "totalLabel": "Regulatory Assets, Total"
       }
      }
     },
     "localname": "RegulatoryAssets",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RegulatoryAssetsAndLiabilitiesDisclosureAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regulatory Assets and Liabilities Disclosure [Abstract]"
       }
      }
     },
     "localname": "RegulatoryAssetsAndLiabilitiesDisclosureAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RegulatoryAssetsCurrent": {
     "auth_ref": [
      "r933"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 9.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 2.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of capitalized costs of regulated entities that are expected to be recovered through revenue sources within one year or the normal operating cycle, if longer. Such costs are capitalized if they meet both of the following criteria: a. It is probable that future revenue in an amount at least equal to the capitalized cost will result from inclusion of that cost in allowable costs for rate-making purposes. b. Based on available evidence, the future revenue will be provided to permit recovery of the previously incurred cost rather than to provide for expected levels of similar future costs. If the revenue will be provided through an automatic rate-adjustment clause, this criterion requires that the regulator's intent clearly be to permit recovery of the previously incurred cost.",
        "label": "Regulatory assets - current"
       }
      }
     },
     "localname": "RegulatoryAssetsCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RegulatoryAssetsNoncurrent": {
     "auth_ref": [
      "r933"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 3.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 4.0,
       "parentTag": "us-gaap_Assets",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Carrying amount as of the balance sheet date of capitalized costs of regulated entities that are not expected to be recovered through revenue sources within one year or the normal operating cycle if longer.",
        "label": "Regulatory assets"
       }
      }
     },
     "localname": "RegulatoryAssetsNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RegulatoryLiabilities": {
     "auth_ref": [
      "r942"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount for the individual regulatory liability as itemized in a table of regulatory liabilities as of the end of the period.",
        "label": "Regulatory Liabilities",
        "terseLabel": "Increase in Regulatory Liability Tax Cuts and Jobs Act",
        "totalLabel": "Regulatory Liabilities, Total"
       }
      }
     },
     "localname": "RegulatoryLiabilities",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RegulatoryLiabilitiesLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Regulatory Liabilities [Line Items]"
       }
      }
     },
     "localname": "RegulatoryLiabilitiesLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RegulatoryLiabilityAxis": {
     "auth_ref": [
      "r942"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of regulatory liability.",
        "label": "Regulatory Liability [Axis]"
       }
      }
     },
     "localname": "RegulatoryLiabilityAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RegulatoryLiabilityCurrent": {
     "auth_ref": [
      "r942"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 5.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount for the individual regulatory current liability as itemized in a table of regulatory current liabilities as of the end of the period.",
        "label": "Regulatory liabilities - current",
        "totalLabel": "Regulatory Liability, Current, Total"
       }
      }
     },
     "localname": "RegulatoryLiabilityCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RegulatoryLiabilityDomain": {
     "auth_ref": [
      "r942"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Rate action of a regulator resulting in accrual of costs or expenses.",
        "label": "Regulatory Liability [Domain]"
       }
      }
     },
     "localname": "RegulatoryLiabilityDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RegulatoryLiabilityNoncurrent": {
     "auth_ref": [
      "r67"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 4.0,
       "parentTag": "us-gaap_LiabilitiesNoncurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount for the individual regulatory noncurrent liability as itemized in a table of regulatory noncurrent liabilities as of the end of the period.",
        "label": "Regulatory liabilities",
        "totalLabel": "Regulatory Liability, Noncurrent, Total"
       }
      }
     },
     "localname": "RegulatoryLiabilityNoncurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RelatedPartyDomain": {
     "auth_ref": [
      "r513",
      "r770",
      "r771"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Related parties include affiliates; other entities for which investments are accounted for by the equity method by the entity; trusts for benefit of employees; and principal owners, management, and members of immediate families. It also may include other parties with which the entity may control or can significantly influence the management or operating policies of the other to an extent that one of the transacting parties might be prevented from fully pursuing its own separate interests.",
        "label": "Related Party [Domain]"
       }
      }
     },
     "localname": "RelatedPartyDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails4"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty": {
     "auth_ref": [
      "r770"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Expenses recognized resulting from transactions (excluding transactions that are eliminated in consolidated or combined financial statements) with related party.",
        "label": "Related party expenses"
       }
      }
     },
     "localname": "RelatedPartyTransactionExpensesFromTransactionsWithRelatedParty",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails4"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RelatedPartyTransactionLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Related party transaction [Line Items]"
       }
      }
     },
     "localname": "RelatedPartyTransactionLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails4"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Related Party Transactions [Abstract]"
       }
      }
     },
     "localname": "RelatedPartyTransactionsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionsByRelatedPartyAxis": {
     "auth_ref": [
      "r513",
      "r770",
      "r774",
      "r827",
      "r828",
      "r829",
      "r830",
      "r831",
      "r832",
      "r833",
      "r834",
      "r835",
      "r836",
      "r837",
      "r838"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of related party. Related parties include, but not limited to, affiliates; other entities for which investments are accounted for by the equity method by the entity; trusts for benefit of employees; and principal owners, management, and members of immediate families. It also may include other parties with which the entity may control or can significantly influence the management or operating policies of the other to an extent that one of the transacting parties might be prevented from fully pursuing its own separate interests.",
        "label": "Related Party Transactions, by Related Party [Axis]"
       }
      }
     },
     "localname": "RelatedPartyTransactionsByRelatedPartyAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails4"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RelatedPartyTransactionsDisclosureTextBlock": {
     "auth_ref": [
      "r768",
      "r769",
      "r771",
      "r775",
      "r776"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for related party transactions. Examples of related party transactions include transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners; and (d) affiliates.",
        "label": "Related Party Transactions"
       }
      }
     },
     "localname": "RelatedPartyTransactionsDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DisclosureRelatedPartyTransactions"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RepaymentsOfLongTermDebt": {
     "auth_ref": [
      "r128"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 8.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 3.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInFinancingActivities",
       "weight": -1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cash outflow for debt initially having maturity due after one year or beyond the normal operating cycle, if longer.",
        "label": "Repayment of long-term debt",
        "negatedLabel": "Repayment of long-term debt",
        "totalLabel": "Repayments of Long-term Debt, Total"
       }
      }
     },
     "localname": "RepaymentsOfLongTermDebt",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RepurchaseAgreementsMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Investments represented by an agreement between the entity and another party for the sale and repurchase of identical or substantially the same securities at a date certain for a specified price. Such agreements are generally short-term in nature.",
        "label": "Chattel Paper Agreements [Member]"
       }
      }
     },
     "localname": "RepurchaseAgreementsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RestrictedCashAndCashEquivalentsAtCarryingValue": {
     "auth_ref": [
      "r9",
      "r21",
      "r142",
      "r148"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2": {
       "order": 1.0,
       "parentTag": "us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsIncludingDisposalGroupAndDiscontinuedOperations",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash and cash equivalents restricted as to withdrawal or usage, classified as current. Cash includes, but is not limited to, currency on hand, demand deposits with banks or financial institutions, and other accounts with general characteristics of demand deposits. Cash equivalents include, but are not limited to, short-term, highly liquid investments that are both readily convertible to known amounts of cash and so near their maturity that they present insignificant risk of changes in value because of changes in interest rates.",
        "label": "Restricted Cash And Cash Equivalents At Carrying Value",
        "terseLabel": "Restricted cash",
        "totalLabel": "Restricted Cash and Cash Equivalents, Current, Total"
       }
      }
     },
     "localname": "RestrictedCashAndCashEquivalentsAtCarryingValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails2"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RestrictedStockUnitsRSUMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Share instrument which is convertible to stock or an equivalent amount of cash, after a specified period of time or when specified performance conditions are met.",
        "label": "Restricted Stock Units RSU [Member]",
        "terseLabel": "Restricted Stock Units [Member]"
       }
      }
     },
     "localname": "RestrictedStockUnitsRSUMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetainedEarningsAccumulatedDeficit": {
     "auth_ref": [
      "r46",
      "r429",
      "r575",
      "r781",
      "r871",
      "r895",
      "r900"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 2.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "order": 1.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 0.0,
       "parentTag": "us-gaap_StockholdersEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained earnings",
        "periodEndLabel": "Retained Earnings (Accumulated Deficit), Ending Balance",
        "periodStartLabel": "Retained Earnings (Accumulated Deficit), Beginning Balance",
        "terseLabel": "Retained earnings",
        "totalLabel": "Retained Earnings (Accumulated Deficit), Total"
       }
      }
     },
     "localname": "RetainedEarningsAccumulatedDeficit",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RetainedEarningsMember": {
     "auth_ref": [
      "r2",
      "r177",
      "r178",
      "r179",
      "r184",
      "r195",
      "r198",
      "r301",
      "r571",
      "r572",
      "r573",
      "r613",
      "r614",
      "r690",
      "r891",
      "r893"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The cumulative amount of the reporting entity's undistributed earnings or deficit.",
        "label": "Retained Earnings [Member]"
       }
      }
     },
     "localname": "RetainedEarningsMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RetirementPlanTypeAxis": {
     "auth_ref": [
      "r456",
      "r457",
      "r458",
      "r461",
      "r462",
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r484",
      "r485",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r501",
      "r502",
      "r503",
      "r504",
      "r505",
      "r507",
      "r509",
      "r510",
      "r513",
      "r516",
      "r520",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r548",
      "r549",
      "r550",
      "r551"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of retirement benefit plan. Includes, but is not limited to, retirement benefit arrangement for defined benefit pension and other postretirement plans, retirement benefit arrangement for defined contribution pension and other postretirement plans, and special and contractual termination benefits payable upon retirement.",
        "label": "Defined Benefit Plans Disclosures Defined Benefit Plans [Axis]"
       }
      }
     },
     "localname": "RetirementPlanTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_RetirementPlanTypeDomain": {
     "auth_ref": [
      "r456",
      "r457",
      "r458",
      "r461",
      "r462",
      "r463",
      "r464",
      "r465",
      "r466",
      "r467",
      "r468",
      "r469",
      "r470",
      "r471",
      "r473",
      "r474",
      "r475",
      "r476",
      "r477",
      "r478",
      "r479",
      "r480",
      "r481",
      "r482",
      "r484",
      "r485",
      "r487",
      "r488",
      "r489",
      "r490",
      "r491",
      "r492",
      "r493",
      "r494",
      "r495",
      "r496",
      "r497",
      "r498",
      "r499",
      "r500",
      "r501",
      "r502",
      "r503",
      "r504",
      "r505",
      "r507",
      "r509",
      "r510",
      "r513",
      "r516",
      "r520",
      "r525",
      "r526",
      "r527",
      "r528",
      "r529",
      "r530",
      "r531",
      "r532",
      "r533",
      "r534",
      "r535",
      "r536",
      "r540",
      "r541",
      "r542",
      "r543",
      "r544",
      "r545",
      "r548",
      "r549",
      "r550",
      "r551"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of plan designed to provide participants with retirement benefits. Includes, but is not limited to, retirement benefit arrangement for defined benefit pension and other postretirement plans, retirement benefit arrangement for defined contribution pension and other postretirement plans, and special and contractual termination benefits payable upon retirement.",
        "label": "Defined Benefit Plans [Domain]"
       }
      }
     },
     "localname": "RetirementPlanTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from Contract with Customer [Abstract]"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax": {
     "auth_ref": [
      "r234",
      "r235",
      "r254",
      "r260",
      "r261",
      "r267",
      "r268",
      "r270",
      "r441",
      "r442",
      "r820"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, including tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer. Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value-added and excise.",
        "label": "Revenue From Contract With Customer Including Assessed Tax",
        "terseLabel": "Revenues recognized from contracts with customers"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerIncludingAssessedTax",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RevenueFromContractWithCustomerTextBlock": {
     "auth_ref": [
      "r433",
      "r434",
      "r435",
      "r436",
      "r437",
      "r438",
      "r439",
      "r440",
      "r443",
      "r455"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure of revenue from contract with customer to transfer good or service and to transfer nonfinancial asset. Includes, but is not limited to, disaggregation of revenue, credit loss recognized from contract with customer, judgment and change in judgment related to contract with customer, and asset recognized from cost incurred to obtain or fulfill contract with customer. Excludes insurance and lease contracts.",
        "label": "Revenue from Contract with Customer [Text Block]",
        "terseLabel": "Revenue from Contract with Customer"
       }
      }
     },
     "localname": "RevenueFromContractWithCustomerTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_Revenue"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RevenueRecognitionPolicyTextBlock": {
     "auth_ref": [
      "r153",
      "r154"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for revenue. Includes revenue from contract with customer and from other sources.",
        "label": "Revenue Recognition"
       }
      }
     },
     "localname": "RevenueRecognitionPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_RevenueSubjectToRefundMember": {
     "auth_ref": [
      "r944"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Rate action of a regulator resulting in capitalization or accrual of revenue subject to refund.",
        "label": "Customer Fuel Credit [Member]",
        "terseLabel": "Revenue Subject to Refund [Member]"
       }
      }
     },
     "localname": "RevenueSubjectToRefundMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_Revenues": {
     "auth_ref": [
      "r108",
      "r158",
      "r234",
      "r235",
      "r254",
      "r260",
      "r261",
      "r267",
      "r268",
      "r270",
      "r296",
      "r361",
      "r362",
      "r363",
      "r366",
      "r367",
      "r368",
      "r370",
      "r372",
      "r374",
      "r375",
      "r720",
      "r857"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "order": 0.0,
       "parentTag": "mgee_EquityMethodInvestmentSummarizedFinancialInformationNetIncomeLossBeforeTaxes",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of revenue recognized from goods sold, services rendered, insurance premiums, or other activities that constitute an earning process. Includes, but is not limited to, investment and interest income before deduction of interest expense when recognized as a component of revenue, and sales and trading gain (loss).",
        "label": "Revenues",
        "terseLabel": "Operating revenues",
        "totalLabel": "Revenues, Total"
       }
      }
     },
     "localname": "Revenues",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability": {
     "auth_ref": [
      "r760",
      "r765"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in right-of-use asset obtained in exchange for finance lease liability.",
        "label": "Right Of Use Asset Obtained In Exchange For Finance Lease Liability",
        "terseLabel": "Lease assets obtained in exchange for lease liabilities - finance leases"
       }
      }
     },
     "localname": "RightOfUseAssetObtainedInExchangeForFinanceLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability": {
     "auth_ref": [
      "r760",
      "r765"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in right-of-use asset obtained in exchange for operating lease liability.",
        "label": "Right Of Use Asset Obtained In Exchange For Operating Lease Liability",
        "terseLabel": "Lease assets obtained in exchange for lease liabilities - operating leases"
       }
      }
     },
     "localname": "RightOfUseAssetObtainedInExchangeForOperatingLeaseLiability",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails3"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_RisksAndUncertaintiesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Concentration of Credit Risk [Abstract]"
       }
      }
     },
     "localname": "RisksAndUncertaintiesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfAccumulatedBenefitObligationsInExcessOfFairValueOfPlanAssetsTableTextBlock": {
     "auth_ref": [
      "r521",
      "r522",
      "r535"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of benefit obligation and plan assets of defined benefit plan with accumulated benefit obligation in excess of plan assets.",
        "label": "Schedule of Accumulated Benefit Obligations in Excess of Plan Assets"
       }
      }
     },
     "localname": "ScheduleOfAccumulatedBenefitObligationsInExcessOfFairValueOfPlanAssetsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfAllocationOfPlanAssetsTableTextBlock": {
     "auth_ref": [
      "r483"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the major categories of plan assets of pension plans and/or other employee benefit plans.  This information may include, but is not limited to, the target allocation of plan assets, the fair value of each major category of plan assets, and the level within the fair value hierarchy in which the fair value measurements fall.",
        "label": "Fair Value of Plan Assets by Asset Category"
       }
      }
     },
     "localname": "ScheduleOfAllocationOfPlanAssetsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfAmountsRecognizedInBalanceSheetTableTextBlock": {
     "auth_ref": [
      "r482"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the amounts that are recognized in the balance sheet (or statement of financial position) for pension plans and/or other employee benefit plans, showing separately the assets and current and noncurrent liabilities (if applicable) recognized.",
        "label": "Schedule of Amounts Recognized in the Consolidated Balance Sheet"
       }
      }
     },
     "localname": "ScheduleOfAmountsRecognizedInBalanceSheetTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfAssumptionsUsedTableTextBlock": {
     "auth_ref": [
      "r506"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of assumption used to determine benefit obligation and net periodic benefit cost of defined benefit plan. Includes, but is not limited to, discount rate, rate of compensation increase, expected long-term rate of return on plan assets and interest crediting rate.",
        "label": "Plan Assumptions"
       }
      }
     },
     "localname": "ScheduleOfAssumptionsUsedTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfBenefitObligationsInExcessOfFairValueOfPlanAssetsTableTextBlock": {
     "auth_ref": [
      "r521",
      "r535"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of benefit obligation and plan assets for defined benefit pension plan with projected benefit obligation in excess of plan assets.",
        "label": "Schedule of Projected Benefit Obligations in Excess of Plan Assets"
       }
      }
     },
     "localname": "ScheduleOfBenefitObligationsInExcessOfFairValueOfPlanAssetsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfChangeInAssetRetirementObligationTableTextBlock": {
     "auth_ref": [
      "r349"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the changes in carrying amount of a liability for asset retirement obligations, for changes such as new obligations, changes in estimates of existing obligations, spending on existing obligations, property dispositions, and foreign currency translation.",
        "label": "Change in Asset Retirement Obligations"
       }
      }
     },
     "localname": "ScheduleOfChangeInAssetRetirementObligationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock": {
     "auth_ref": [
      "r609"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of income tax expense attributable to continuing operations for each year presented including, but not limited to: current tax expense (benefit), deferred tax expense (benefit), investment tax credits, government grants, the benefits of operating loss carryforwards, tax expense that results from allocating certain tax benefits either directly to contributed capital or to reduce goodwill or other noncurrent intangible assets of an acquired entity, adjustments of a deferred tax liability or asset for enacted changes in tax laws or rates or a change in the tax status of the entity, and adjustments of the beginning-of-the-year balances of a valuation allowance because of a change in circumstances that causes a change in judgment about the realizability of the related deferred tax asset in future years.",
        "label": "Income Tax Provision"
       }
      }
     },
     "localname": "ScheduleOfComponentsOfIncomeTaxExpenseBenefitTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDebtInstrumentsTextBlock": {
     "auth_ref": [
      "r66",
      "r168",
      "r397",
      "r399",
      "r423",
      "r426",
      "r427",
      "r428",
      "r742",
      "r743",
      "r746",
      "r861"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of long-debt instruments or arrangements, including identification, terms, features, collateral requirements and other information necessary to a fair presentation. These are debt arrangements that originally required repayment more than twelve months after issuance or greater than the normal operating cycle of the entity, if longer.",
        "label": "Schedule of Long-Term Debt"
       }
      }
     },
     "localname": "ScheduleOfDebtInstrumentsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock": {
     "auth_ref": [
      "r600"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of net deferred tax asset or liability recognized in an entity's statement of financial position, including the following: the total of all deferred tax liabilities, the total of all deferred tax assets, the total valuation allowance recognized for deferred tax assets.",
        "label": "Deferred Tax Liabilities (Assets)"
       }
      }
     },
     "localname": "ScheduleOfDeferredTaxAssetsAndLiabilitiesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDefinedBenefitPlansDisclosuresTable": {
     "auth_ref": [
      "r519",
      "r520",
      "r523",
      "r524",
      "r535"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosures about an individual defined benefit pension plan or an other postretirement defined benefit plan. It may be appropriate to group certain similar plans.  Also includes schedule for fair value of plan assets by major categories of plan assets by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets or liabilities (Level 1), Significant other observable inputs (Level 2), and significant unobservable inputs (Level 3).",
        "label": "Schedule Of Defined Benefit Plans Disclosures [Table]"
       }
      }
     },
     "localname": "ScheduleOfDefinedBenefitPlansDisclosuresTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails4",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails5",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails6"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock": {
     "auth_ref": [
      "r663",
      "r669",
      "r672"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the location and amount of derivative instruments and nonderivative instruments designated as hedging instruments reported before netting adjustments, and the amount of gain (loss) on derivative instruments and nonderivative instruments designated and qualified as hedging instruments.",
        "label": "Schedule Of Derivative Instruments Gain Loss In Statement Of Financial Performance [Text Block]",
        "terseLabel": "Derivative Gains and Losses in Income Statement"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock": {
     "auth_ref": [
      "r668"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the location and fair value amounts of derivative instruments (and nonderivative instruments that are designated and qualify as hedging instruments) reported in the statement of financial position.",
        "label": "Schedule Of Derivative Instruments In Statement Of Financial Position Fair Value [Text Block]",
        "terseLabel": "Fair Value of Derivative Instruments on the Balance Sheet"
       }
      }
     },
     "localname": "ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEffectOfOnePercentagePointChangeInAssumedHealthCareCostTrendRatesTableTextBlock": {
     "auth_ref": [
      "r512"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the effect of a one-percentage-point increase and the effect of a one-percentage-point decrease in the assumed health care cost trend rates on the aggregate of the service and interest cost components of net periodic postretirement health care benefit costs and the accumulated postretirement benefit obligation for health care benefits.",
        "label": "Effect of 1% Increase or Decrease in Health Care Costs"
       }
      }
     },
     "localname": "ScheduleOfEffectOfOnePercentagePointChangeInAssumedHealthCareCostTrendRatesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock": {
     "auth_ref": [
      "r585"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the reconciliation using percentage or dollar amounts of the reported amount of income tax expense attributable to continuing operations for the year to the amount of income tax expense that would result from applying domestic federal statutory tax rates to pretax income from continuing operations.",
        "label": "Effective Tax Rate Reconciliation"
       }
      }
     },
     "localname": "ScheduleOfEffectiveIncomeTaxRateReconciliationTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfEquityMethodInvestmentsLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Schedule Of Equity Method Investments [Line Items]",
        "terseLabel": "Equity method investments [Line Items]"
       }
      }
     },
     "localname": "ScheduleOfEquityMethodInvestmentsLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfEquityMethodInvestmentsTable": {
     "auth_ref": [
      "r8",
      "r158",
      "r295",
      "r296",
      "r720"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Summarization of information required and determined to be disclosed concerning equity method investments in common stock. The summarized information includes: (a) the name of each investee or group of investees for which combined disclosure is appropriate, (2) the percentage ownership of common stock, (3) the difference, if any, between the carrying amount of an investment and the value of the underlying equity in the net assets and the accounting treatment of difference, if any, and (4) the aggregate value of each identified investment based on its quoted market price, if available.",
        "label": "Schedule of Equity Method Investments [Table]"
       }
      }
     },
     "localname": "ScheduleOfEquityMethodInvestmentsTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfExpectedBenefitPaymentsTableTextBlock": {
     "auth_ref": [
      "r494"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of benefits expected to be paid by pension plans and/or other employee benefit plans in each of the next five fiscal years and in the aggregate for the five fiscal years thereafter.",
        "label": "Benefit Payments, Fiscal Year Maturity"
       }
      }
     },
     "localname": "ScheduleOfExpectedBenefitPaymentsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock": {
     "auth_ref": [
      "r695",
      "r696"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of assets and liabilities, including [financial] instruments measured at fair value that are classified in stockholders' equity, if any, that are measured at fair value on a recurring basis. The disclosures contemplated herein include the fair value measurements at the reporting date by the level within the fair value hierarchy in which the fair value measurements in their entirety fall, segregating fair value measurements using quoted prices in active markets for identical assets (Level 1), significant other observable inputs (Level 2), and significant unobservable inputs (Level 3).",
        "label": "Schedule Of Fair Value Assets And Liabilities Measured On Recurring Basis [Table Text Block]",
        "terseLabel": "Assets and Liabilities Measured at Fair Value on a Recurring Basis"
       }
      }
     },
     "localname": "ScheduleOfFairValueAssetsAndLiabilitiesMeasuredOnRecurringBasisTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesTableTextBlock": {
     "auth_ref": [
      "r747"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of future minimum payments required in the aggregate and for each of the five succeeding fiscal years for operating leases having initial or remaining noncancelable lease terms in excess of one year and the total minimum rentals to be received in the future under noncancelable subleases as of the balance sheet date.",
        "label": "Schedule Of Future Minimum Rental Payments For Operating Leases [Table Text Block]",
        "terseLabel": "Operating Leases, Future Minimum Rental Payments"
       }
      }
     },
     "localname": "ScheduleOfFutureMinimumRentalPaymentsForOperatingLeasesTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfJointlyOwnedUtilityPlantsTextBlock": {
     "auth_ref": [
      "r940"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of proportionate interests in jointly owned utility plants. Includes the amount of plants in service, the accumulated provision for depreciation (if available), the amount of plants under construction, and the proportionate share. The amounts presented may be further subdivided to show amounts applicable to plant subcategories (for example, production, transmission, distribution). Includes statements that the amounts represent the utility's share in each joint plant and that it must provide its own financing. Information concerning two or more generating plants on the same site may be combined. States that the utility's share of direct expenses of the joint plants is included in the corresponding operating expenses on its income statement (for example, fuel, maintenance of plant, other operating expense). If the share of direct expenses is charged to purchased power, then disclose the amount so charged and the proportionate amounts charged to specific operating expenses on the records maintained for the joint plants.",
        "label": "Schedule of Joint Plant Ownership"
       }
      }
     },
     "localname": "ScheduleOfJointlyOwnedUtilityPlantsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfMaturitiesOfLongTermDebtTableTextBlock": {
     "auth_ref": [
      "r358"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of maturity and sinking fund requirement for long-term debt.",
        "label": "Schedule of Long-Term Debt Maturities"
       }
      }
     },
     "localname": "ScheduleOfMaturitiesOfLongTermDebtTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfNetBenefitCostsTableTextBlock": {
     "auth_ref": [
      "r496"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the components of net benefit costs for pension plans and/or other employee benefit plans including service cost, interest cost, expected return on plan assets, gain (loss), prior service cost or credit, transition asset or obligation, and gain (loss) recognized due to settlements or curtailments.",
        "label": "Net Periodic Benefit Costs"
       }
      }
     },
     "localname": "ScheduleOfNetBenefitCostsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfNewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock": {
     "auth_ref": [
      "r188",
      "r192",
      "r213",
      "r214"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of changes in accounting principles, including adoption of new accounting pronouncements, that describes the new methods, amount and effects on financial statement line items.",
        "label": "Schedule Of New Accounting Pronouncements And Changes In Accounting Principles [Text Block]",
        "terseLabel": "Retrospective Adjustments to Cash Flows"
       }
      }
     },
     "localname": "ScheduleOfNewAccountingPronouncementsAndChangesInAccountingPrinciplesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock": {
     "auth_ref": [
      "r657"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the notional amounts of outstanding derivative positions.",
        "label": "Schedule Of Notional Amounts Of Outstanding Derivative Positions [Table Text Block]",
        "terseLabel": "Gross Notional Volume of Open Derivatives"
       }
      }
     },
     "localname": "ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfPropertyPlantAndEquipmentTable": {
     "auth_ref": [
      "r55",
      "r334"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about physical assets used in the normal conduct of business and not intended for resale. Includes, but is not limited to, balances by class of assets, depreciation and depletion expense and method used, including composite depreciation, and accumulated deprecation.",
        "label": "Schedule of Property, Plant and Equipment [Table]"
       }
      }
     },
     "localname": "ScheduleOfPropertyPlantAndEquipmentTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for detailed information about regulatory assets and liabilities, including current and noncurrent assets created when regulatory agencies permit the deferral of costs to the balance sheet that would otherwise be required to appear on the company's income statement and would be charged against current expenses or revenues, as well as current and noncurrent liabilities created when regulatory agencies permit.",
        "label": "Regulatory Assets and Liabilities"
       }
      }
     },
     "localname": "ScheduleOfRegulatoryAssetsAndLiabilitiesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RegulatoryAssetsAndLiabilities"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfRegulatoryAssetsTable": {
     "auth_ref": [
      "r933",
      "r934",
      "r945"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table of assets that are created when regulatory agencies permit public utilities to defer certain costs that are included in rate-setting to the balance sheet.",
        "label": "Schedule of Regulatory Assets [Table]"
       }
      }
     },
     "localname": "ScheduleOfRegulatoryAssetsTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryAssetsDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfRegulatoryLiabilitiesTable": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table of liabilities that are created when regulatory agencies permit public utilities to defer recognition of certain revenues included in rate-setting.",
        "label": "Schedule of Regulatory Liabilities [Table]"
       }
      }
     },
     "localname": "ScheduleOfRegulatoryLiabilitiesTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureRegulatoryAssetsAndLiabilitiesRegulatoryLiabilitiesDetails2"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfRelatedPartyTransactionsByRelatedPartyTable": {
     "auth_ref": [
      "r772",
      "r774"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule of quantitative and qualitative information pertaining to related party transactions. Examples of related party transactions include transactions between (a) a parent company and its subsidiary; (b) subsidiaries of a common parent; (c) and entity and its principal owners; and (d) affiliates.",
        "label": "Schedule of Related Party Transactions, by Related Party [Table]"
       }
      }
     },
     "localname": "ScheduleOfRelatedPartyTransactionsByRelatedPartyTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails4"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable": {
     "auth_ref": [
      "r243",
      "r246",
      "r258",
      "r325"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table disclosing the profit or loss and total assets for each reportable segment of the entity. An entity discloses certain information on each reportable segment if the amounts (a) are included in the measure of segment profit or loss reviewed by the chief operating decision maker or (b) are otherwise regularly provided to the chief operating decision maker, even if not included in that measure of segment profit or loss.",
        "label": "Schedule Of Segment Reporting Information By Segment [Table]"
       }
      }
     },
     "localname": "ScheduleOfSegmentReportingInformationBySegmentTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfSegmentReportingInformationBySegmentTextBlock": {
     "auth_ref": [
      "r243",
      "r246",
      "r258",
      "r325"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the profit or loss and total assets for each reportable segment. An entity discloses certain information on each reportable segment if the amounts (a) are included in the measure of segment profit or loss reviewed by the chief operating decision maker or (b) are otherwise regularly provided to the chief operating decision maker, even if not included in that measure of segment profit or loss.",
        "label": "Schedule Of Segment Reporting Information By Segment [Text Block]",
        "terseLabel": "Segment Information"
       }
      }
     },
     "localname": "ScheduleOfSegmentReportingInformationBySegmentTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable": {
     "auth_ref": [
      "r556",
      "r566"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of information about share-based payment arrangement.",
        "label": "Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]"
       }
      }
     },
     "localname": "ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfShortTermDebtTable": {
     "auth_ref": [
      "r60"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A table or schedule providing information pertaining to borrowings under which repayment was required in less than twelve months (or normal operating cycle, if longer) after its issuance. It may include: (1) description of the short-term debt arrangement; (2) identification of the lender or type of lender; (3) repayment terms; (4) weighted average interest rate; (5) carrying amount of funds borrowed under the specified short-term debt arrangement as of the balance sheet date and measures of the maximum and average amount outstanding during the period; (6) description of the refinancing of a short-term obligation when that obligation is excluded from current liabilities in the balance sheet; and (7) amount of a short-term obligation that has been excluded from current liabilities in the balance sheet because of a refinancing of the obligation.",
        "label": "Schedule of Short-term Debt [Table]"
       }
      }
     },
     "localname": "ScheduleOfShortTermDebtTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfShortTermDebtTextBlock": {
     "auth_ref": [
      "r60"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of short-term debt arrangements (having initial terms of repayment within one year or the normal operating cycle, if longer) including: (1) description of the short-term debt arrangement; (2) identification of the lender or type of lender; (3) repayment terms; (4) weighted average interest rate; (5) carrying amount of funds borrowed under the specified short-term debt arrangement as of the balance sheet date; (6) description of the refinancing of a short-term obligation when that obligation is excluded from current liabilities in the balance sheet; and (7) amount of a short-term obligation that has been excluded from current liabilities in the balance sheet because of a refinancing of the obligation.",
        "label": "Schedule of Short-Term Borrowings"
       }
      }
     },
     "localname": "ScheduleOfShortTermDebtTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ScheduleOfStockByClassTable": {
     "auth_ref": [
      "r70",
      "r155",
      "r219",
      "r220",
      "r402",
      "r403",
      "r405",
      "r406",
      "r407",
      "r408",
      "r409",
      "r411",
      "r415",
      "r420",
      "r423",
      "r424",
      "r425",
      "r426",
      "r427",
      "r428",
      "r429"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule detailing information related to equity by class of stock. Class of stock includes common, convertible, and preferred stocks which are not redeemable or redeemable solely at the option of the issuer. It also includes preferred stock with redemption features that are solely within the control of the issuer and mandatorily redeemable stock if redemption is required to occur only upon liquidation or termination of the reporting entity.",
        "label": "Schedule of Stock by Class [Table]"
       }
      }
     },
     "localname": "ScheduleOfStockByClassTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfVariableInterestEntitiesTable": {
     "auth_ref": [
      "r635",
      "r636",
      "r644",
      "r645",
      "r646",
      "r647",
      "r648",
      "r649",
      "r650"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of qualitative and quantitative information related to variable interests the entity holds, whether or not such variable interest entity (VIE) is included in the reporting entity's consolidated financial statements. Includes, but is not limited to, description of the significant judgments and assumptions made in determining whether a variable interest (as defined) held by the entity requires the variable interest entity (VIE) (as defined) to be consolidated and (or) disclose information about its involvement with the VIE, individually or in aggregate (as applicable); the nature of restrictions, if any, on the consolidated VIE's assets and on the settlement of its liabilities reported by an entity in its statement of financial position, including the carrying amounts of such assets and liabilities; the nature of, and changes in, the risks associated with involvement in the VIE; how involvement with the VIE affects the entity's financial position, financial performance, and cash flows; the lack of recourse if creditors (or beneficial interest holders) of the consolidated VIE have no recourse to the general credit of the primary beneficiary (if applicable); the terms of arrangements, giving consideration to both explicit arrangements and implicit variable interests, if any, that could require the entity to provide financial support to the VIE, including events or circumstances that could expose the entity to a loss; the methodology used by the entity for determining whether or not it is the primary beneficiary of the variable interest entity; the significant factors considered and judgments made in determining that the power to direct the activities of a VIE that most significantly impact the VIE's economic performance are shared (as defined); the carrying amounts and classification of assets and liabilities of the VIE included in the statement of financial position; the entity's maximum exposure to loss, if any, as a result of its involvement with the VIE, including how the maximum exposure is determined and significant sources of the entity's exposure to the VIE; a tabular comparison of the carrying amounts of the assets and liabilities and the entity's maximum exposure to loss; information about any liquidity arrangements, guarantees, and (or) other commitments by third parties that may affect the fair value or risk of the entity's variable interest in the VIE; whether or not the entity has provided financial support or other support (explicitly or implicitly) to the VIE that it was not previously contractually required to provide or whether the entity intends to provide that support, including the type and amount of the support and the primary reasons for providing the support; and supplemental information the entity determines necessary to provide.",
        "label": "Schedule of Variable Interest Entities [Table]"
       }
      }
     },
     "localname": "ScheduleOfVariableInterestEntitiesTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ScheduleOfVariableInterestEntitiesTextBlock": {
     "auth_ref": [
      "r646",
      "r647",
      "r648",
      "r649",
      "r650"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the significant judgments and assumptions made in determining whether a variable interest (as defined) held by the entity requires the variable interest entity (VIE) (as defined) to be consolidated and (or) disclose information about its involvement with the VIE, individually or in aggregate (as applicable); the nature of restrictions, if any, on the consolidated VIE's assets and on the settlement of its liabilities reported by an entity in its statement of financial position, including the carrying amounts of such assets and liabilities; the nature of, and changes in, the risks associated with involvement in the VIE; how involvement with the VIE affects the entity's financial position, financial performance, and cash flows; the lack of recourse if creditors (or beneficial interest holders) of the consolidated VIE have no recourse to the general credit of the primary beneficiary (if applicable); the terms of arrangements, giving consideration to both explicit arrangements and implicit variable interests, if any, that could require the entity to provide financial support to the VIE, including events or circumstances that could expose the entity to a loss; the methodology used by the entity for determining whether or not it is the primary beneficiary of the variable interest entity; the significant factors considered and judgments made in determining that the power to direct the activities of a VIE that most significantly impact the VIE's economic performance are shared (as defined); the carrying amounts and classification of assets and liabilities of the VIE included in the statement of financial position; the entity's maximum exposure to loss, if any, as a result of its involvement with the VIE, including how the maximum exposure is determined and significant sources of the entity's exposure to the VIE; a comparison of the carrying amounts of the assets and liabilities and the entity's maximum exposure to loss; information about any liquidity arrangements, guarantees, and (or) other commitments by third parties that may affect the fair value or risk of the entity's variable interest in the VIE; whether or not the entity has provided financial support or other support (explicitly or implicitly) to the VIE that it was not previously contractually required to provide or whether the entity intends to provide that support, including the type and amount of the support and the primary reasons for providing the support; and supplemental information the entity determines necessary to provide.",
        "label": "Variable interest entities significant balance sheet accounts"
       }
      }
     },
     "localname": "ScheduleOfVariableInterestEntitiesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SecuritiesSoldUnderAgreementsToRepurchaseGrossIncludingNotSubjectToMasterNettingArrangement": {
     "auth_ref": [
      "r81"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount, before effects of master netting arrangements, of funds outstanding borrowed in the form of a security repurchase agreement between the entity and another party for the sale and repurchase of identical or substantially the same securities at a date certain for a specified price. Includes liabilities not subject to a master netting arrangement and elected not to be offset.",
        "label": "Repurchase-to-Maturity Transactions, loans due",
        "totalLabel": "Securities Sold under Agreements to Repurchase, Gross Including Not Subject to Master Netting Arrangement, Total"
       }
      }
     },
     "localname": "SecuritiesSoldUnderAgreementsToRepurchaseGrossIncludingNotSubjectToMasterNettingArrangement",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SegmentDomain": {
     "auth_ref": [
      "r231",
      "r234",
      "r235",
      "r236",
      "r237",
      "r238",
      "r239",
      "r240",
      "r241",
      "r242",
      "r243",
      "r244",
      "r245",
      "r254",
      "r255",
      "r256",
      "r257",
      "r259",
      "r260",
      "r261",
      "r262",
      "r263",
      "r265",
      "r270",
      "r351",
      "r352",
      "r885"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Components of an entity that engage in business activities from which they may earn revenue and incur expenses, including transactions with other components of the same entity.",
        "label": "Segment [Domain]"
       }
      }
     },
     "localname": "SegmentDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SegmentReportingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment Reporting [Abstract]",
        "terseLabel": "Segment Information"
       }
      }
     },
     "localname": "SegmentReportingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentReportingDisclosureTextBlock": {
     "auth_ref": [
      "r231",
      "r232",
      "r233",
      "r243",
      "r247",
      "r259",
      "r263",
      "r264",
      "r265",
      "r266",
      "r267",
      "r269",
      "r270",
      "r271"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for reporting segments including data and tables. Reportable segments include those that meet any of the following quantitative thresholds a) it's reported revenue, including sales to external customers and intersegment sales or transfers is 10 percent or more of the combined revenue, internal and external, of all operating segments b) the absolute amount of its reported profit or loss is 10 percent or more of the greater, in absolute amount of 1) the combined reported profit of all operating segments that did not report a loss or 2) the combined reported loss of all operating segments that did report a loss c) its assets are 10 percent or more of the combined assets of all operating segments.",
        "label": "Segment Information"
       }
      }
     },
     "localname": "SegmentReportingDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DisclosureSegmentInformation"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SegmentReportingInformationLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Segment Reporting Information [Line Items]"
       }
      }
     },
     "localname": "SegmentReportingInformationLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SegmentReportingPolicyPolicyTextBlock": {
     "auth_ref": [
      "r248",
      "r249",
      "r250",
      "r251",
      "r252",
      "r253",
      "r268"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for segment reporting.",
        "label": "Segment Information Policy",
        "terseLabel": "Segment Information"
       }
      }
     },
     "localname": "SegmentReportingPolicyPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAcceleratedCompensationCost": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of additional cost recognized for award under share-based payment arrangement from occurrence of event accelerating recognition of cost.",
        "label": "Accelerated compensation cost due to amendment changes"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAcceleratedCompensationCost",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1": {
     "auth_ref": [
      "r557"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Period over which grantee's right to exercise award under share-based payment arrangement is no longer contingent on satisfaction of service or performance condition, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Includes, but is not limited to, combination of market, performance or service condition.",
        "label": "Award vesting period"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "durationItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod": {
     "auth_ref": [
      "r560"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that were forfeited during the reporting period.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Forfeited In Period",
        "negatedLabel": "Forfeited"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod": {
     "auth_ref": [
      "r562"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of grants made during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
        "label": "Awards granted (in units)",
        "terseLabel": "Granted"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r562"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The weighted average fair value at grant date for nonvested equity-based awards issued during the period on other than stock (or unit) option plans (for example, phantom stock or unit plan, stock or unit appreciation rights plan, performance target plan).",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Grants in Period, Weighted Average Grant Date Fair Value",
        "terseLabel": "Granted, weighted average grant date fair value"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber": {
     "auth_ref": [
      "r561"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of non-vested equity-based payment instruments, excluding stock (or unit) options, that validly exist and are outstanding as of the balance sheet date.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Nonvested Number",
        "periodEndLabel": "Nonvested awards December 31,",
        "periodStartLabel": "Nonvested awards January 1,"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Nonvested [Roll Forward]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedRollForward",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue": {
     "auth_ref": [
      "r561"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Per share or unit weighted-average fair value of nonvested award under share-based payment arrangement. Excludes share and unit options.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value",
        "periodEndLabel": "Unvested, weighted average grant date fair value per share, ending balance",
        "periodStartLabel": "Share-based Compensation Arrangement by Share-based Payment Award, Equity Instruments Other than Options, Nonvested, Weighted Average Grant Date Fair Value, Beginning Balance"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsShareBasedLiabilitiesPaid": {
     "auth_ref": [
      "r564"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of cash paid to settle liability for award under share-based payment arrangement.",
        "label": "Cash payments distributed related to awards previously granted and now payable"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsShareBasedLiabilitiesPaid",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod": {
     "auth_ref": [
      "r563"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The number of equity-based payment instruments, excluding stock (or unit) options, that vested during the reporting period.",
        "label": "Share Based Compensation Arrangement By Share Based Payment Award Equity Instruments Other Than Options Vested In Period",
        "negatedLabel": "Vested"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue": {
     "auth_ref": [
      "r564"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Fair value of share-based awards for which the grantee gained the right by satisfying service and performance requirements, to receive or retain shares or units, other instruments, or cash.",
        "label": "Outstanding awards vested during period"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodTotalFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award [Line Items]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures": {
     "auth_ref": [
      "r560"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares under non-option equity instrument agreements that were cancelled as a result of occurrence of a terminating event.",
        "label": "Awards forfeited during period, units"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementByShareBasedPaymentAwardNonOptionEquityInstrumentsForfeitures",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "auth_ref": [
      "r554",
      "r558"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Award under share-based payment arrangement.",
        "label": "Award Type [Domain]"
       }
      }
     },
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ShareBasedCompensationTables"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShareBasedCompensationOptionAndIncentivePlansPolicy": {
     "auth_ref": [
      "r556",
      "r559"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for award under share-based payment arrangement. Includes, but is not limited to, methodology and assumption used in measuring cost.",
        "label": "Share-based Compensation"
       }
      }
     },
     "localname": "ShareBasedCompensationOptionAndIncentivePlansPolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage": {
     "auth_ref": [
      "r557"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Percentage of vesting of award under share-based payment arrangement.",
        "label": "Performance Units To Be Paid As Percentage Of Target Units",
        "terseLabel": "Awards to be granted as percentage of target units"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValue": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average grant-date fair value of non-vested options outstanding.",
        "label": "Share-based Compensation Arrangement by Share-based Payment Award, Option, Nonvested, Weighted Average Exercise Price",
        "periodEndLabel": "Share-based Compensation Arrangement by Share-based Payment Award, Option, Nonvested, Weighted Average Exercise Price, Ending Balance",
        "periodStartLabel": "Share-based Compensation Arrangement by Share-based Payment Award, Option, Nonvested, Weighted Average Exercise Price, Beginning Balance",
        "terseLabel": "Weighted average fair Value of each nonvested award"
       }
      }
     },
     "localname": "SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedWeightedAverageGrantDateFairValue",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails"
     ],
     "xbrltype": "perShareItemType"
    },
    "us-gaap_SharesIssued": {
     "auth_ref": [
      "r422"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of shares of stock issued as of the balance sheet date, including shares that had been issued and were previously outstanding but which are now held in the treasury.",
        "label": "Shares Issued",
        "periodEndLabel": "Ending balance, shares",
        "periodStartLabel": "Beginning balance, shares"
       }
      }
     },
     "localname": "SharesIssued",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_ShortTermBorrowings": {
     "auth_ref": [
      "r33",
      "r781",
      "r844",
      "r869"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 1.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 6.0,
       "parentTag": "us-gaap_LiabilitiesCurrent",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Reflects the total carrying amount as of the balance sheet date of debt having initial terms less than one year or the normal operating cycle, if longer.",
        "label": "Short-term debt",
        "terseLabel": "Short-term debt outstanding",
        "totalLabel": "Short-term Debt, Total"
       }
      }
     },
     "localname": "ShortTermBorrowings",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShortTermDebtLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Short-term Debt [Line Items]"
       }
      }
     },
     "localname": "ShortTermDebtLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShortTermDebtTextBlock": {
     "auth_ref": [
      "r401"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for short-term debt.",
        "label": "Notes Payable to Banks, Commercial Paper, and Lines of Credit"
       }
      }
     },
     "localname": "ShortTermDebtTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCredit"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ShortTermDebtTypeAxis": {
     "auth_ref": [
      "r60"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by type of short-term debt arrangement.",
        "label": "Short-term Debt, Type [Axis]"
       }
      }
     },
     "localname": "ShortTermDebtTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_ShortTermDebtTypeDomain": {
     "auth_ref": [
      "r57"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Type of short-term debt arrangement, such as notes, line of credit, commercial paper, asset-based financing, project financing, letter of credit financing.",
        "label": "Short-term Debt, Type [Domain]"
       }
      }
     },
     "localname": "ShortTermDebtTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsNotes1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_ShortTermDebtWeightedAverageInterestRate": {
     "auth_ref": [
      "r58"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Weighted average interest rate of short-term debt outstanding calculated at point in time.",
        "label": "Weighted-average interest rate"
       }
      }
     },
     "localname": "ShortTermDebtWeightedAverageInterestRate",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "xbrltype": "percentItemType"
    },
    "us-gaap_ShorttermDebtAverageOutstandingAmount": {
     "auth_ref": [
      "r963",
      "r964"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For the form of debt having an initial term of less than one year or less than the normal operating cycle, if longer, average borrowings during the period.",
        "label": "Average short-term borrowings"
       }
      }
     },
     "localname": "ShorttermDebtAverageOutstandingAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ShorttermDebtMaximumAmountOutstandingDuringPeriod": {
     "auth_ref": [],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "For the form of debt having an initial term of less than one year or less than the normal operating cycle, if longer, the maximum amount borrowed at any time during the period.",
        "label": "Maximum short-term borrowings"
       }
      }
     },
     "localname": "ShorttermDebtMaximumAmountOutstandingDuringPeriod",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NotesPayableToBanksCommercialPaperAndLinesOfCreditDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_SignificantAccountingPoliciesTextBlock": {
     "auth_ref": [
      "r150",
      "r176"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for all significant accounting policies of the reporting entity.",
        "label": "Summary of Significant Accounting Policies"
       }
      }
     },
     "localname": "SignificantAccountingPoliciesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_StateAndLocalJurisdictionMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Designated tax department of a state or local government entitled to levy and collect income taxes from the entity.",
        "label": "State [Member]"
       }
      }
     },
     "localname": "StateAndLocalJurisdictionMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_StatementBusinessSegmentsAxis": {
     "auth_ref": [
      "r7",
      "r231",
      "r234",
      "r235",
      "r236",
      "r237",
      "r238",
      "r239",
      "r240",
      "r241",
      "r242",
      "r243",
      "r244",
      "r245",
      "r254",
      "r255",
      "r256",
      "r257",
      "r259",
      "r260",
      "r261",
      "r262",
      "r263",
      "r265",
      "r270",
      "r325",
      "r337",
      "r351",
      "r352",
      "r885"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by business segments.",
        "label": "Statement Business Segments [Axis]"
       }
      }
     },
     "localname": "StatementBusinessSegmentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RevenueDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementEquityComponentsAxis": {
     "auth_ref": [
      "r2",
      "r72",
      "r104",
      "r105",
      "r106",
      "r177",
      "r178",
      "r179",
      "r184",
      "r195",
      "r198",
      "r218",
      "r301",
      "r422",
      "r429",
      "r571",
      "r572",
      "r573",
      "r613",
      "r614",
      "r690",
      "r734",
      "r735",
      "r736",
      "r737",
      "r738",
      "r740",
      "r891",
      "r892",
      "r893",
      "r994"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by component of equity.",
        "label": "Statement Equity Components [Axis]"
       }
      }
     },
     "localname": "StatementEquityComponentsAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Statement [Line Items]"
       }
      }
     },
     "localname": "StatementLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_AssetRetirementObligationsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity",
      "http://www.mge.com/20211231/taxonomy/role/StatementMgeEnergyIncConsolidatedStatementsOfCommonEquityParentheticals"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfCashFlowsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Cash Flows [Abstract]"
       }
      }
     },
     "localname": "StatementOfCashFlowsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfFinancialPositionAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of Financial Position [Abstract]"
       }
      }
     },
     "localname": "StatementOfFinancialPositionAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementOfStockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated Statements of Equity [Abstract]"
       }
      }
     },
     "localname": "StatementOfStockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_StatementTable": {
     "auth_ref": [
      "r177",
      "r178",
      "r179",
      "r218",
      "r820"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Schedule reflecting a Statement of Income, Statement of Cash Flows, Statement of Financial Position, Statement of Shareholders' Equity and Other Comprehensive Income, or other statement as needed.",
        "label": "Statement [Table]"
       }
      }
     },
     "localname": "StatementTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheetsParentheticals",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LeasesDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity",
      "http://www.mge.com/20211231/taxonomy/role/StatementMgeEnergyIncConsolidatedStatementsOfCommonEquityParentheticals"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockIssuedDuringPeriodSharesNewIssues": {
     "auth_ref": [
      "r42",
      "r43",
      "r422",
      "r429"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of new stock issued during the period.",
        "label": "Common stock issued during period"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodSharesNewIssues",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_StockIssuedDuringPeriodValueNewIssues": {
     "auth_ref": [
      "r42",
      "r43",
      "r422",
      "r429"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Equity impact of the value of new stock issued during the period. Includes shares issued in an initial public offering or a secondary public offering.",
        "label": "Common stock issued, net value"
       }
      }
     },
     "localname": "StockIssuedDuringPeriodValueNewIssues",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquity": {
     "auth_ref": [
      "r43",
      "r47",
      "r48",
      "r158",
      "r276",
      "r296",
      "r720",
      "r781"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet": {
       "order": 2.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 1.0,
       "parentTag": "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Total of all stockholders' equity (deficit) items, net of receivables from officers, directors, owners, and affiliates of the entity which are attributable to the parent. The amount of the economic entity's stockholders' equity attributable to the parent excludes the amount of stockholders' equity which is allocable to that ownership interest in subsidiary equity which is not attributable to the parent (noncontrolling interest, minority interest). This excludes temporary equity and is sometimes called permanent equity.",
        "label": "Common shareholders equity",
        "periodEndLabel": "Ending balance, value",
        "periodStartLabel": "Beginning balance, value",
        "totalLabel": "Total Common Shareholders' Equity"
       }
      }
     },
     "localname": "StockholdersEquity",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Common shareholders' equity:",
        "terseLabel": "Shareholders' Equity:"
       }
      }
     },
     "localname": "StockholdersEquityAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsBalanceSheet"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest": {
     "auth_ref": [
      "r2",
      "r3",
      "r105",
      "r158",
      "r177",
      "r178",
      "r179",
      "r184",
      "r195",
      "r296",
      "r301",
      "r429",
      "r571",
      "r572",
      "r573",
      "r613",
      "r614",
      "r631",
      "r632",
      "r651",
      "r690",
      "r720",
      "r734",
      "r735",
      "r740",
      "r892",
      "r893",
      "r994"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 0.0,
       "parentTag": "us-gaap_CapitalizationLongtermDebtAndEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3": {
       "order": 3.0,
       "parentTag": "us-gaap_LiabilitiesAndStockholdersEquity",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 1.0,
       "parentTag": "us-gaap_CapitalizationLongtermDebtAndEquity",
       "weight": 1.0
      }
     },
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of stockholders' equity (deficit), net of receivables from officers, directors, owners, and affiliates of the entity, attributable to both the parent and noncontrolling interests. Amount excludes temporary equity. Alternate caption for the concept is permanent equity.",
        "label": "Total Equity",
        "periodEndLabel": "Ending balance, value",
        "periodStartLabel": "Beginning balance, value",
        "terseLabel": "Cumulative Effect Of New Accounting Principle In Period Of Adoption",
        "totalLabel": "Total Equity"
       }
      }
     },
     "localname": "StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails3",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MadisonGasAndElectricCompanyConsolidatedStatementsOfEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityNoteDisclosureTextBlock": {
     "auth_ref": [
      "r156",
      "r407",
      "r410",
      "r411",
      "r412",
      "r413",
      "r414",
      "r415",
      "r416",
      "r417",
      "r418",
      "r419",
      "r421",
      "r429",
      "r432"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for shareholders' equity comprised of portions attributable to the parent entity and noncontrolling interest, including other comprehensive income. Includes, but is not limited to, balances of common stock, preferred stock, additional paid-in capital, other capital and retained earnings, accumulated balance for each classification of other comprehensive income and amount of comprehensive income.",
        "label": "Common Equity"
       }
      }
     },
     "localname": "StockholdersEquityNoteDisclosureTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquity"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_StockholdersEquityNoteStockSplitConversionRatio1": {
     "auth_ref": [
      "r431"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Ratio applied to the conversion of stock split, for example but not limited to, one share converted to two or two shares converted to one.",
        "label": "Stockholders' Equity Note, Stock Split, Conversion Ratio1",
        "terseLabel": "Stock split declared December 20, 2013, ratio (3:2)"
       }
      }
     },
     "localname": "StockholdersEquityNoteStockSplitConversionRatio1",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommonEquityDetails"
     ],
     "xbrltype": "pureItemType"
    },
    "us-gaap_StockholdersEquityOther": {
     "auth_ref": [],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This element represents movements included in the statement of changes in stockholders' equity which are not separately disclosed or provided for elsewhere in the taxonomy.",
        "label": "Stockholders' Equity, Other",
        "terseLabel": "Equity-based compensation plans and other"
       }
      }
     },
     "localname": "StockholdersEquityOther",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_MGEEnergyIncConsolidatedStatementsOfCommonEquity"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_StockholdersEquityPolicyTextBlock": {
     "auth_ref": [
      "r404"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for its capital stock transactions, including dividends and accumulated other comprehensive income.",
        "label": "Comprehensive Income Policy",
        "terseLabel": "Common Stock"
       }
      }
     },
     "localname": "StockholdersEquityPolicyTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SubsequentEventLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Detail information of subsequent event by type. User is expected to use existing line items from elsewhere in the taxonomy as the primary line items for this disclosure, which is further associated with dimension and member elements pertaining to a subsequent event.",
        "label": "Subsequent Events [Line Items]"
       }
      }
     },
     "localname": "SubsequentEventLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SubsequentEventsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventMember": {
     "auth_ref": [
      "r741",
      "r783"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Identifies event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event [Member]"
       }
      }
     },
     "localname": "SubsequentEventMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SubsequentEventsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventTable": {
     "auth_ref": [
      "r741",
      "r783"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Discloses pertinent information about one or more significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued.",
        "label": "Subsequent Event [Table]"
       }
      }
     },
     "localname": "SubsequentEventTable",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SubsequentEventsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventTypeAxis": {
     "auth_ref": [
      "r741",
      "r783"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Information by event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event Type [Axis]"
       }
      }
     },
     "localname": "SubsequentEventTypeAxis",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SubsequentEventsDetails"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventTypeDomain": {
     "auth_ref": [
      "r741",
      "r783"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Event that occurred after the balance sheet date but before financial statements are issued or available to be issued.",
        "label": "Subsequent Event Type [Domain]"
       }
      }
     },
     "localname": "SubsequentEventTypeDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/DisclosureSharebasedCompensationDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_CommitmentsAndContingenciesDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_InvestmentsDetails2",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_JointPlantOwnershipDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_LongTermDebtDetails1",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_RateMattersDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SubsequentEventsDetails"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_SubsequentEventsAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsequent Events [Abstract]"
       }
      }
     },
     "localname": "SubsequentEventsAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "xbrltype": "stringItemType"
    },
    "us-gaap_SubsequentEventsTextBlock": {
     "auth_ref": [
      "r782",
      "r785"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The entire disclosure for significant events or transactions that occurred after the balance sheet date through the date the financial statements were issued or the date the financial statements were available to be issued. Examples include: the sale of a capital stock issue, purchase of a business, settlement of litigation, catastrophic loss, significant foreign exchange rate changes, loans to insiders or affiliates, and transactions not in the ordinary course of business.",
        "label": "Subsequent Events"
       }
      }
     },
     "localname": "SubsequentEventsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DisclosureSubsequentEvents"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SummaryOfIncomeTaxContingenciesTextBlock": {
     "auth_ref": [
      "r588",
      "r594",
      "r596"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure for tax positions taken in the tax returns filed or to be filed for which it is more likely than not that the tax position will not be sustained upon examination by taxing authorities and other income tax contingencies. Includes, but is not limited to, interest and penalties, reconciliation of unrecognized tax benefits, unrecognized tax benefits that would affect the effective tax rate, tax years that remain subject to examination by tax jurisdictions, and information about positions for which it is reasonably possible that amounts unrecognized will significantly change within 12 months.",
        "label": "Unrecognized Tax Benefits and Interest"
       }
      }
     },
     "localname": "SummaryOfIncomeTaxContingenciesTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SummaryOfIncomeTaxExaminationsTextBlock": {
     "auth_ref": [
      "r590",
      "r610"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of income tax examinations that an enterprise is currently subject to or that have been completed in the current period typically including a description of the examination, the jurisdiction conducting the examination, the tax year(s) under examination, the likelihood of an unfavorable settlement, the range of possible losses, the liability recorded, the increase or decrease in the liability from the prior period, and any penalties and interest that have been recorded.",
        "label": "Tax Years that Remain Subject to Examination"
       }
      }
     },
     "localname": "SummaryOfIncomeTaxExaminationsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SummaryOfTaxCreditCarryforwardsTextBlock": {
     "auth_ref": [
      "r604"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of tax credit carryforwards available to reduce future taxable income, including amounts, expiration dates, limitations on use and the related deferred tax assets and valuation allowances.",
        "label": "Summary Of Tax Credit Carryforwards"
       }
      }
     },
     "localname": "SummaryOfTaxCreditCarryforwardsTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_SupplementalCashFlowInformationAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Supplemental disclosures of cash flow information:"
       }
      }
     },
     "localname": "SupplementalCashFlowInformationAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_SupplementalEmployeeRetirementPlanDefinedBenefitMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Plan designed to provide limited group of employees with supplemental retirement benefits, in addition to other pension benefits. Includes, but is not limited to, defined benefit and defined contribution plans.",
        "label": "Supplemental Employee Retirement Plan [Member]",
        "terseLabel": "Employee Benefit Plan [Member]"
       }
      }
     },
     "localname": "SupplementalEmployeeRetirementPlanDefinedBenefitMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PensionPlansAndOtherPostretirementBenefitsDetails2"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TangibleAssetImpairmentChargesAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment of Long-Lived Assets"
       }
      }
     },
     "localname": "TangibleAssetImpairmentChargesAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TaxCreditCarryforwardAmount": {
     "auth_ref": [
      "r603"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails": {
       "order": 1.0,
       "parentTag": "us-gaap_DeferredTaxAssetsGross",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The amount of the tax credit carryforward, before tax effects, available to reduce future taxable income under enacted tax laws.",
        "label": "Tax credit carryforward, amount",
        "terseLabel": "Federal tax credits"
       }
      }
     },
     "localname": "TaxCreditCarryforwardAmount",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsTableTextBlock": {
     "auth_ref": [
      "r801"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Tabular disclosure of the nature and risks of short-term collateralized financing obtained through repurchase agreements, securities lending transactions and repurchase-to-maturity transactions, accounted for as secured borrowings.",
        "label": "Transfer of Certain Financial Assets Accounted for as Secured Borrowings [Table Text Block]",
        "terseLabel": "Schedule of Remaining Contractual Maturities for Chattel Paper Agreements"
       }
      }
     },
     "localname": "TransferOfCertainFinancialAssetsAccountedForAsSecuredBorrowingsTableTextBlock",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesTables"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_TransfersAndServicingAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transfers and Servicing [Abstract]",
        "terseLabel": "Transfers and Servicing"
       }
      }
     },
     "localname": "TransfersAndServicingAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain": {
     "auth_ref": [
      "r284",
      "r285",
      "r288",
      "r289",
      "r290",
      "r393",
      "r420",
      "r680",
      "r786",
      "r787",
      "r788",
      "r789",
      "r790",
      "r791",
      "r792",
      "r793",
      "r794",
      "r795",
      "r796",
      "r797",
      "r798",
      "r800",
      "r801",
      "r803",
      "r804",
      "r805",
      "r806",
      "r807",
      "r808",
      "r809",
      "r810",
      "r811",
      "r812",
      "r813",
      "r814",
      "r815",
      "r816",
      "r817",
      "r963",
      "r964",
      "r965",
      "r966",
      "r967",
      "r968",
      "r969"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Instrument or contract that imposes a contractual obligation to deliver cash or another financial instrument or to exchange other financial instruments on potentially unfavorable terms and conveys a contractual right to receive cash or another financial instrument or to exchange other financial instruments on potentially favorable terms.",
        "label": "Financial Instruments [Domain]"
       }
      }
     },
     "localname": "TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_TypeOfAdoptionMember": {
     "auth_ref": [
      "r0",
      "r1",
      "r2",
      "r3",
      "r4",
      "r183",
      "r184",
      "r185",
      "r187",
      "r199",
      "r280",
      "r281",
      "r298",
      "r299",
      "r300",
      "r301",
      "r304",
      "r305",
      "r360",
      "r567",
      "r568",
      "r569",
      "r570",
      "r571",
      "r572",
      "r573",
      "r575",
      "r611",
      "r612",
      "r613",
      "r614",
      "r681",
      "r682",
      "r683",
      "r684",
      "r685",
      "r686",
      "r687",
      "r689",
      "r690",
      "r691",
      "r692",
      "r722",
      "r723",
      "r724",
      "r725",
      "r726",
      "r727",
      "r731",
      "r732",
      "r766",
      "r821",
      "r822",
      "r823",
      "r889",
      "r890",
      "r891",
      "r892",
      "r893",
      "r894",
      "r895",
      "r896",
      "r897",
      "r898",
      "r899",
      "r900",
      "r990",
      "r991",
      "r992",
      "r993",
      "r994"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amendment to accounting standards.",
        "label": "Type of Adoption"
       }
      }
     },
     "localname": "TypeOfAdoptionMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_NewAccountingStandardsDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_USTreasuryBillSecuritiesMember": {
     "auth_ref": [
      "r858"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "This category includes information about negotiable debt securities issued by the United States Department of the Treasury which generally have maturities of one year or less, are interest bearing, and are backed by the full faith and credit of the United States government.",
        "label": "US Treasury Bills [Member]"
       }
      }
     },
     "localname": "USTreasuryBillSecuritiesMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_FairValueOfFinancialInstrumentsDetails3"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UnbilledReceivablesCurrent": {
     "auth_ref": [],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets": {
       "order": 4.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedBalanceSheets2": {
       "order": 6.0,
       "parentTag": "us-gaap_AssetsCurrent",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount received for services rendered and products shipped, but not yet billed, for non-contractual agreements due within one year or the normal operating cycle, if longer.",
        "label": "Unbilled revenues"
       }
      }
     },
     "localname": "UnbilledReceivablesCurrent",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedBalanceSheets"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrealizedGainLossOnDerivatives": {
     "auth_ref": [
      "r140"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The net change in the difference between the fair value and the carrying value, or in the comparative fair values, of derivative instruments, including options, swaps, futures, and forward contracts, held at each balance sheet date, that was included in earnings for the period.",
        "label": "Unrealized Gain Loss On Derivatives",
        "negatedLabel": "Unrealized gain",
        "terseLabel": "Unrealized loss (gain)"
       }
      }
     },
     "localname": "UnrealizedGainLossOnDerivatives",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_DerivativeAndHedgingInstrumentsDetails4"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrecognizedTaxBenefits": {
     "auth_ref": [
      "r578",
      "r591"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of unrecognized tax benefits.",
        "label": "Unrecognized tax benefits",
        "periodEndLabel": "Unrecognized tax benefits, ending balance",
        "periodStartLabel": "Unrecognized tax benefits, beginning balance"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefits",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrecognizedTaxBenefitsDecreasesResultingFromCurrentPeriodTaxPositions": {
     "auth_ref": [
      "r593"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of decrease in unrecognized tax benefits resulting from tax positions that have been or will be taken in current period tax return.",
        "label": "Unrecognized Tax Benefits, Decreases Resulting from Current Period Tax Positions",
        "negatedLabel": "Reductions based on tax positions related to the current year"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefitsDecreasesResultingFromCurrentPeriodTaxPositions",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrecognizedTaxBenefitsDecreasesResultingFromPriorPeriodTaxPositions": {
     "auth_ref": [
      "r592"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of decrease in unrecognized tax benefits resulting from tax positions taken in prior period tax returns.",
        "label": "Unrecognized Tax Benefits, Decreases Resulting from Prior Period Tax Positions",
        "negatedLabel": "Reductions based on tax positions related to prior years"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefitsDecreasesResultingFromPriorPeriodTaxPositions",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions": {
     "auth_ref": [
      "r593"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in unrecognized tax benefits resulting from tax positions that have been or will be taken in current period tax return.",
        "label": "Additions based on tax positions related to current year"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefitsIncreasesResultingFromCurrentPeriodTaxPositions",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrecognizedTaxBenefitsIncreasesResultingFromPriorPeriodTaxPositions": {
     "auth_ref": [
      "r592"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in unrecognized tax benefits resulting from tax positions taken in prior period tax returns.",
        "label": "Additions based on tax positions related to prior year"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefitsIncreasesResultingFromPriorPeriodTaxPositions",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrecognizedTaxBenefitsInterestOnIncomeTaxesAccrued": {
     "auth_ref": [
      "r587"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest expense accrued for an underpayment of income taxes.",
        "label": "Unrecognized Tax Benefits, Interest on Income Taxes Accrued",
        "periodEndLabel": "Accrued interest on unrecognized tax benefits, ending balance",
        "periodStartLabel": "Accrued interest on unrecognized tax benefits, beginning balance"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefitsInterestOnIncomeTaxesAccrued",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnrecognizedTaxBenefitsInterestOnIncomeTaxesExpense": {
     "auth_ref": [
      "r587"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of interest expense for an underpayment of income taxes.",
        "label": "Interest expense on uncertain tax positions"
       }
      }
     },
     "localname": "UnrecognizedTaxBenefitsInterestOnIncomeTaxesExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_IncomeTaxesDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UnregulatedOperationMember": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Operation of entity not regulated by governmental or other regulatory organizations.",
        "label": "Non-regulated [Member]"
       }
      }
     },
     "localname": "UnregulatedOperationMember",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_PropertyPlantAndEquipmentDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SummaryOfSignificantAccountingPoliciesDetails1"
     ],
     "xbrltype": "domainItemType"
    },
    "us-gaap_UseOfEstimates": {
     "auth_ref": [
      "r221",
      "r222",
      "r223",
      "r224",
      "r228",
      "r229",
      "r230"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policy for the use of estimates in the preparation of financial statements in conformity with generally accepted accounting principles.",
        "label": "Use of Estimates"
       }
      }
     },
     "localname": "UseOfEstimates",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_UtilitiesOperatingExpense": {
     "auth_ref": [
      "r115"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": -1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement": {
       "order": 0.0,
       "parentTag": "us-gaap_OperatingIncomeLoss",
       "weight": -1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating expense of regulated operation.",
        "label": "Utilities Operating Expense",
        "terseLabel": "Operating expenses",
        "totalLabel": "Total Operating Expenses"
       }
      }
     },
     "localname": "UtilitiesOperatingExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UtilitiesOperatingExpenseAbstract": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating Expenses:"
       }
      }
     },
     "localname": "UtilitiesOperatingExpenseAbstract",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_UtilitiesOperatingExpenseDepreciationAndAmortization": {
     "auth_ref": [
      "r115"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows": {
       "order": 1.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 4.0,
       "parentTag": "us-gaap_UtilitiesOperatingExpense",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfCashFlows2": {
       "order": 14.0,
       "parentTag": "us-gaap_NetCashProvidedByUsedInOperatingActivities",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating expense for depreciation and amortization of regulated operation.",
        "label": "Depreciation and amortization",
        "negatedLabel": "Depreciation and amortization"
       }
      }
     },
     "localname": "UtilitiesOperatingExpenseDepreciationAndAmortization",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfCashFlows",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SegmentInformationDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UtilitiesOperatingExpenseFuelUsed": {
     "auth_ref": [
      "r115"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 0.0,
       "parentTag": "us-gaap_UtilitiesOperatingExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating expense for fuel used by regulated operation.",
        "label": "Fuel for electric generation"
       }
      }
     },
     "localname": "UtilitiesOperatingExpenseFuelUsed",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UtilitiesOperatingExpenseMaintenanceAndOperations": {
     "auth_ref": [
      "r115"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 3.0,
       "parentTag": "us-gaap_UtilitiesOperatingExpense",
       "weight": 1.0
      },
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement": {
       "order": 0.0,
       "parentTag": "us-gaap_UtilitiesOperatingExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating expense for routine plant maintenance, repairs and operations of regulated operation.",
        "label": "Other operations and maintenance",
        "totalLabel": "Utilities Operating Expense, Maintenance and Operations, Total"
       }
      }
     },
     "localname": "UtilitiesOperatingExpenseMaintenanceAndOperations",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleICondensedParentCompanyFinanicalStatementsDetailsComprehensiveIncomeStatement"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UtilitiesOperatingExpensePurchasedPower": {
     "auth_ref": [
      "r115"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 1.0,
       "parentTag": "us-gaap_UtilitiesOperatingExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating expense for purchased power of regulated operation.",
        "label": "Purchased power"
       }
      }
     },
     "localname": "UtilitiesOperatingExpensePurchasedPower",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UtilitiesOperatingExpenseTaxes": {
     "auth_ref": [
      "r115"
     ],
     "calculation": {
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome": {
       "order": 5.0,
       "parentTag": "us-gaap_UtilitiesOperatingExpense",
       "weight": 1.0
      }
     },
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of operating expense for taxes other than income taxes of regulated operation.",
        "label": "Utilities Operating Expense Taxes",
        "terseLabel": "Income tax provision",
        "verboseLabel": "Other general taxes"
       }
      }
     },
     "localname": "UtilitiesOperatingExpenseTaxes",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_UtilityRevenueAndExpenseRecognitionPolicy": {
     "auth_ref": [
      "r930"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Disclosure of accounting policies and anticipated effects of regulatory rulings and on rate-setting regarding revenues and expenses incurred and recovered, including billed and unbilled revenues, revenues collected subject to refund, taxes collected from customers and remitted to governmental authorities, and postretirement benefits.",
        "label": "Utility Cost Recovery"
       }
      }
     },
     "localname": "UtilityRevenueAndExpenseRecognitionPolicy",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_SignificantAccountingPoliciesPolicies"
     ],
     "xbrltype": "textBlockItemType"
    },
    "us-gaap_ValuationAllowancesAndReservesAdjustments": {
     "auth_ref": [
      "r175"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase (decrease) in valuation and qualifying accounts and reserves from adjustment.",
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves, Increase (Decrease) Adjustment",
        "terseLabel": "Regulatory assets"
       }
      }
     },
     "localname": "ValuationAllowancesAndReservesAdjustments",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ValuationAllowancesAndReservesBalance": {
     "auth_ref": [
      "r170",
      "r174"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of valuation and qualifying accounts and reserves.",
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves, Amount",
        "periodEndLabel": "Balance at end of period",
        "periodStartLabel": "Balance at beginning of period"
       }
      }
     },
     "localname": "ValuationAllowancesAndReservesBalance",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ValuationAllowancesAndReservesChargedToCostAndExpense": {
     "auth_ref": [
      "r171"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in valuation and qualifying accounts and reserves from charge to cost and expense.",
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Cost and Expense",
        "terseLabel": "Charged to costs and expenses"
       }
      }
     },
     "localname": "ValuationAllowancesAndReservesChargedToCostAndExpense",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ValuationAllowancesAndReservesChargedToOtherAccounts": {
     "auth_ref": [
      "r172"
     ],
     "crdr": "credit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of increase in valuation and qualifying accounts and reserves from charge to accounts other than cost and expense.",
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves, Additions, Charge to Other Account",
        "terseLabel": "Charged to other accounts"
       }
      }
     },
     "localname": "ValuationAllowancesAndReservesChargedToOtherAccounts",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_ValuationAllowancesAndReservesDeductions": {
     "auth_ref": [
      "r173"
     ],
     "crdr": "debit",
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Amount of decrease in valuation and qualifying accounts and reserves.",
        "label": "SEC Schedule, 12-09, Valuation Allowances and Reserves, Deduction",
        "terseLabel": "Net accounts written off"
       }
      }
     },
     "localname": "ValuationAllowancesAndReservesDeductions",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ScheduleIIValuationAndQualifyingAccountsDetails"
     ],
     "xbrltype": "monetaryItemType"
    },
    "us-gaap_VariableInterestEntityLineItems": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table.",
        "label": "Variable Interest Entity [Line Items]"
       }
      }
     },
     "localname": "VariableInterestEntityLineItems",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesDetails",
      "http://www.mge.com/20211231/taxonomy/role/ELRID_VariableInterestEntitiesTables"
     ],
     "xbrltype": "stringItemType"
    },
    "us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding": {
     "auth_ref": [
      "r204",
      "r209"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "The average number of shares or units issued and outstanding that are used in calculating diluted EPS or earnings per unit (EPU), determined based on the timing of issuance of shares or units in the period.",
        "label": "Weighted Average Number of Shares Outstanding, Diluted",
        "terseLabel": "Weighted Average Shares Outstanding Diluted",
        "totalLabel": "Weighted Average Number of Shares Outstanding, Diluted, Total"
       }
      }
     },
     "localname": "WeightedAverageNumberOfDilutedSharesOutstanding",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfShareOutstandingBasicAndDiluted": {
     "auth_ref": [],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Average number of shares or units issued and outstanding that are used in calculating basic and diluted earnings per share (EPS).",
        "label": "Weighted Average Shares Outstanding (basic and diluted)"
       }
      }
     },
     "localname": "WeightedAverageNumberOfShareOutstandingBasicAndDiluted",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "sharesItemType"
    },
    "us-gaap_WeightedAverageNumberOfSharesOutstandingBasic": {
     "auth_ref": [
      "r203",
      "r209"
     ],
     "lang": {
      "en-us": {
       "role": {
        "documentation": "Number of [basic] shares or units, after adjustment for contingently issuable shares or units and other shares or units not deemed outstanding, determined by relating the portion of time within a reporting period that common shares or units have been outstanding to the total time in that period.",
        "label": "Weighted Average Number of Shares Outstanding, Basic",
        "terseLabel": "Weighted Average Shares Outstanding Basic",
        "totalLabel": "Weighted Average Number of Shares Outstanding, Basic, Total"
       }
      }
     },
     "localname": "WeightedAverageNumberOfSharesOutstandingBasic",
     "nsuri": "http://fasb.org/us-gaap/2021-01-31",
     "presentation": [
      "http://www.mge.com/20211231/taxonomy/role/ELRID_ConsolidatedStatementsOfIncome"
     ],
     "xbrltype": "sharesItemType"
    }
   },
   "unitCount": 9
  }
 },
 "std_ref": {
  "r0": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "105",
   "URI": "http://asc.fasb.org/extlink&oid=124434974&loc=SL124442142-165695"
  },
  "r1": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "105",
   "URI": "http://asc.fasb.org/extlink&oid=124434974&loc=SL124442142-165695"
  },
  "r10": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765"
  },
  "r100": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669619-108580"
  },
  "r101": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669625-108580"
  },
  "r102": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669625-108580"
  },
  "r103": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124431353&loc=SL116659661-227067"
  },
  "r104": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124431353&loc=SL124442407-227067"
  },
  "r105": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124431353&loc=SL124442411-227067"
  },
  "r106": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124431353&loc=SL124452729-227067"
  },
  "r107": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124507222&loc=d3e1436-108581"
  },
  "r108": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(1))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r109": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(12))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r11": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(g)(4)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765"
  },
  "r110": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(20))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r111": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(21))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r112": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(25))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r113": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03(5))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r114": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.19)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r115": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.2(b))",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r116": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.2)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r117": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.7)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r118": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-03.9)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=123367319&loc=SL114868664-224227"
  },
  "r119": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3179-108585"
  },
  "r12": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765"
  },
  "r120": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3179-108585"
  },
  "r121": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3213-108585"
  },
  "r122": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3213-108585"
  },
  "r123": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3213-108585"
  },
  "r124": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3255-108585"
  },
  "r125": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3255-108585"
  },
  "r126": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3255-108585"
  },
  "r127": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3291-108585"
  },
  "r128": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3291-108585"
  },
  "r129": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3291-108585"
  },
  "r13": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=124098289&loc=d3e6787-107765"
  },
  "r130": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3291-108585"
  },
  "r131": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3367-108585"
  },
  "r132": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3000-108585"
  },
  "r133": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21D",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=SL94080555-108585"
  },
  "r134": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3521-108585"
  },
  "r135": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3536-108585"
  },
  "r136": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3536-108585"
  },
  "r137": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3536-108585"
  },
  "r138": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3536-108585"
  },
  "r139": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3602-108585"
  },
  "r14": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=124098289&loc=d3e6801-107765"
  },
  "r140": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3602-108585"
  },
  "r141": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3602-108585"
  },
  "r142": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123570139&loc=d3e3044-108585"
  },
  "r143": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123431023&loc=d3e4273-108586"
  },
  "r144": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123431023&loc=d3e4297-108586"
  },
  "r145": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123431023&loc=d3e4304-108586"
  },
  "r146": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123431023&loc=d3e4313-108586"
  },
  "r147": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123431023&loc=d3e4332-108586"
  },
  "r148": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123431023&loc=SL98516268-108586"
  },
  "r149": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "230",
   "URI": "http://asc.fasb.org/extlink&oid=123573386&loc=SL98516241-196980"
  },
  "r15": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=124098289&loc=d3e6904-107765"
  },
  "r150": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=123372394&loc=d3e18726-107790"
  },
  "r151": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=123372394&loc=d3e18823-107790"
  },
  "r152": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=123372394&loc=d3e18823-107790"
  },
  "r153": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=123372394&loc=d3e18823-107790"
  },
  "r154": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=123372394&loc=d3e18823-107790"
  },
  "r155": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(d))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r156": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(e)(1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r157": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(f))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r158": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(g)(1)(ii))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r159": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(1)(Note 1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r16": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=124098289&loc=d3e6911-107765"
  },
  "r160": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r161": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h)(2))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r162": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(h))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r163": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(k)(1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r164": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(ii)(A))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r165": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(1)(iii))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r166": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(m)(2)(ii))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r167": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.4-08(n))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690"
  },
  "r168": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-04(a))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690"
  },
  "r169": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-04(b))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24072-122690"
  },
  "r17": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=6361739&loc=d3e7789-107766"
  },
  "r170": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column B))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690"
  },
  "r171": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column C)(1))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690"
  },
  "r172": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column C)(2))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690"
  },
  "r173": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column D))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690"
  },
  "r174": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09(Column E))",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690"
  },
  "r175": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.12-09)",
   "Topic": "235",
   "URI": "http://asc.fasb.org/extlink&oid=120395691&loc=d3e24092-122690"
  },
  "r176": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "235",
   "URI": "http://asc.fasb.org/topic&trid=2122369"
  },
  "r177": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124436220&loc=d3e21914-107793"
  },
  "r178": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "24",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124436220&loc=d3e21930-107793"
  },
  "r179": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124436220&loc=d3e21711-107793"
  },
  "r18": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 201.5-02(24))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r180": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124436220&loc=d3e21728-107793"
  },
  "r181": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r182": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(1)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r183": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r184": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(3)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r185": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(4)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r186": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r187": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r188": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794"
  },
  "r189": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22694-107794"
  },
  "r19": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 201.5-02(25))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r190": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22694-107794"
  },
  "r191": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=SL124452830-107794"
  },
  "r192": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22583-107794"
  },
  "r193": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22595-107794"
  },
  "r194": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794"
  },
  "r195": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794"
  },
  "r196": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22644-107794"
  },
  "r197": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22658-107794"
  },
  "r198": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=124431687&loc=d3e22663-107794"
  },
  "r199": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.M.Q2)",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=122038215&loc=d3e31137-122693"
  },
  "r2": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "105",
   "URI": "http://asc.fasb.org/extlink&oid=124434974&loc=SL124442142-165695"
  },
  "r20": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 201.5-02(26))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r200": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Topic": "250",
   "URI": "http://asc.fasb.org/extlink&oid=122038215&loc=SL108384541-122693"
  },
  "r201": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "250",
   "URI": "http://asc.fasb.org/topic&trid=2122394"
  },
  "r202": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "255",
   "URI": "http://asc.fasb.org/extlink&oid=125523840&loc=d3e2408-110839"
  },
  "r203": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1448-109256"
  },
  "r204": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1505-109256"
  },
  "r205": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1252-109256"
  },
  "r206": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=SL5780133-109256"
  },
  "r207": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "60B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=SL5780133-109256"
  },
  "r208": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125511455&loc=d3e1337-109256"
  },
  "r209": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257"
  },
  "r21": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(1))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r210": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=124432515&loc=d3e3550-109257"
  },
  "r211": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125512782&loc=d3e3842-109258"
  },
  "r212": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "52",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "260",
   "URI": "http://asc.fasb.org/extlink&oid=125512782&loc=d3e4984-109258"
  },
  "r213": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "270",
   "URI": "http://asc.fasb.org/extlink&oid=124437754&loc=d3e725-108305"
  },
  "r214": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "270",
   "URI": "http://asc.fasb.org/extlink&oid=124437754&loc=d3e765-108305"
  },
  "r215": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "270",
   "URI": "http://asc.fasb.org/extlink&oid=124437754&loc=d3e543-108305"
  },
  "r216": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "270",
   "URI": "http://asc.fasb.org/extlink&oid=124502072&loc=SL124452896-108306"
  },
  "r217": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "270",
   "URI": "http://asc.fasb.org/topic&trid=2126967"
  },
  "r218": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=125520817&loc=d3e70191-108054"
  },
  "r219": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=125520817&loc=d3e70229-108054"
  },
  "r22": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(10))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r220": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "272",
   "URI": "http://asc.fasb.org/extlink&oid=6373374&loc=d3e70434-108055"
  },
  "r221": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e5967-108592"
  },
  "r222": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e5967-108592"
  },
  "r223": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6161-108592"
  },
  "r224": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6191-108592"
  },
  "r225": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6351-108592"
  },
  "r226": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6351-108592"
  },
  "r227": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6404-108592"
  },
  "r228": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6061-108592"
  },
  "r229": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6132-108592"
  },
  "r23": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(11))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r230": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "275",
   "URI": "http://asc.fasb.org/extlink&oid=99393423&loc=d3e6143-108592"
  },
  "r231": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8657-108599"
  },
  "r232": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8721-108599"
  },
  "r233": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8721-108599"
  },
  "r234": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r235": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r236": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r237": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r238": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r239": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r24": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(12))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r240": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r241": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r242": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(j)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r243": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8736-108599"
  },
  "r244": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8813-108599"
  },
  "r245": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8813-108599"
  },
  "r246": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8813-108599"
  },
  "r247": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "26",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8844-108599"
  },
  "r248": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8864-108599"
  },
  "r249": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8864-108599"
  },
  "r25": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(13)(b))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r250": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8864-108599"
  },
  "r251": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8864-108599"
  },
  "r252": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8864-108599"
  },
  "r253": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8864-108599"
  },
  "r254": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8906-108599"
  },
  "r255": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8906-108599"
  },
  "r256": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8906-108599"
  },
  "r257": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8906-108599"
  },
  "r258": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "30",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8906-108599"
  },
  "r259": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "31",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8924-108599"
  },
  "r26": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(13))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r260": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8933-108599"
  },
  "r261": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8933-108599"
  },
  "r262": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8933-108599"
  },
  "r263": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8933-108599"
  },
  "r264": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8933-108599"
  },
  "r265": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "32",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8933-108599"
  },
  "r266": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "34",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e8981-108599"
  },
  "r267": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "40",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e9031-108599"
  },
  "r268": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e9038-108599"
  },
  "r269": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "41",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e9038-108599"
  },
  "r27": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(14))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r270": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "42",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "280",
   "URI": "http://asc.fasb.org/extlink&oid=123359005&loc=d3e9054-108599"
  },
  "r271": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "280",
   "URI": "http://asc.fasb.org/topic&trid=2134510"
  },
  "r272": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=124259787&loc=d3e4428-111522"
  },
  "r273": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=124259787&loc=d3e4531-111522"
  },
  "r274": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=d3e5033-111524"
  },
  "r275": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=123577603&loc=d3e5074-111524"
  },
  "r276": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 4.E)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=122038336&loc=d3e74512-122707"
  },
  "r277": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84159169&loc=d3e10133-111534"
  },
  "r278": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84159169&loc=d3e10149-111534"
  },
  "r279": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=84159169&loc=d3e10178-111534"
  },
  "r28": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(15))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r280": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=124402435&loc=SL124402458-218513"
  },
  "r281": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=124402435&loc=SL124402458-218513"
  },
  "r282": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(d)(1)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=124402435&loc=SL124402458-218513"
  },
  "r283": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(d)(2)",
   "Topic": "310",
   "URI": "http://asc.fasb.org/extlink&oid=124402435&loc=SL124402458-218513"
  },
  "r284": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27232-111563"
  },
  "r285": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=SL120269820-111563"
  },
  "r286": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "320",
   "URI": "http://asc.fasb.org/extlink&oid=123581744&loc=d3e27357-111563"
  },
  "r287": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "320",
   "URI": "http://asc.fasb.org/topic&trid=2196928"
  },
  "r288": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "321",
   "URI": "http://asc.fasb.org/extlink&oid=123583765&loc=SL75117539-209714"
  },
  "r289": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "321",
   "URI": "http://asc.fasb.org/extlink&oid=123583765&loc=SL75117539-209714"
  },
  "r29": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(16))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r290": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "321",
   "URI": "http://asc.fasb.org/extlink&oid=123583765&loc=SL75117539-209714"
  },
  "r291": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "10",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=125513658&loc=d3e32014-111567"
  },
  "r292": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=109237563&loc=d3e33749-111570"
  },
  "r293": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571"
  },
  "r294": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571"
  },
  "r295": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(b)",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571"
  },
  "r296": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571"
  },
  "r297": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "323",
   "URI": "http://asc.fasb.org/extlink&oid=114001798&loc=d3e33918-111571"
  },
  "r298": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r299": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r3": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "105",
   "URI": "http://asc.fasb.org/extlink&oid=124434974&loc=SL124442142-165695"
  },
  "r30": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(17))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r300": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r301": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r302": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r303": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r304": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r305": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(4)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437"
  },
  "r306": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255206&loc=SL82895884-210446"
  },
  "r307": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919244-210447"
  },
  "r308": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447"
  },
  "r309": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447"
  },
  "r31": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(19)(a)(3))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r310": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447"
  },
  "r311": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447"
  },
  "r312": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919249-210447"
  },
  "r313": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919253-210447"
  },
  "r314": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919258-210447"
  },
  "r315": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124255953&loc=SL82919230-210447"
  },
  "r316": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922888-210455"
  },
  "r317": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922895-210455"
  },
  "r318": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=124269663&loc=SL82922900-210455"
  },
  "r319": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "326",
   "URI": "http://asc.fasb.org/extlink&oid=121590138&loc=SL82922954-210456"
  },
  "r32": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(19)(a)(5))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r320": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "330",
   "URI": "http://asc.fasb.org/extlink&oid=116847112&loc=d3e4492-108314"
  },
  "r321": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "330",
   "URI": "http://asc.fasb.org/extlink&oid=116847112&loc=d3e4556-108314"
  },
  "r322": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "330",
   "URI": "http://asc.fasb.org/topic&trid=2126998"
  },
  "r323": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "05",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "340",
   "URI": "http://asc.fasb.org/extlink&oid=123349782&loc=d3e5879-108316"
  },
  "r324": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "340",
   "URI": "http://asc.fasb.org/extlink&oid=6387103&loc=d3e6435-108320"
  },
  "r325": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=121556970&loc=d3e13816-109267"
  },
  "r326": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "30",
   "SubTopic": "40",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=118172244&loc=d3e17916-109280"
  },
  "r327": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "50",
   "Topic": "350",
   "URI": "http://asc.fasb.org/extlink&oid=16397303&loc=d3e19379-109286"
  },
  "r328": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "05",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226317&loc=d3e202-110218"
  },
  "r329": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "15",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=123398962&loc=d3e400-110220"
  },
  "r33": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(19)(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r330": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=16397424&loc=d3e949-110221"
  },
  "r331": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=123351718&loc=d3e2420-110228"
  },
  "r332": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r333": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r334": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=6391035&loc=d3e2868-110229"
  },
  "r335": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2921-110230"
  },
  "r336": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230"
  },
  "r337": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=109226691&loc=d3e2941-110230"
  },
  "r338": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 5.CC)",
   "Topic": "360",
   "URI": "http://asc.fasb.org/extlink&oid=27011434&loc=d3e125687-122742"
  },
  "r339": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "360",
   "URI": "http://asc.fasb.org/topic&trid=2155823"
  },
  "r34": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(19))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r340": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "20",
   "Topic": "410",
   "URI": "http://asc.fasb.org/extlink&oid=6392603&loc=d3e7123-110846"
  },
  "r341": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "410",
   "URI": "http://asc.fasb.org/extlink&oid=6392676&loc=d3e7480-110848"
  },
  "r342": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "410",
   "URI": "http://asc.fasb.org/extlink&oid=6392692&loc=d3e7535-110849"
  },
  "r343": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "410",
   "URI": "http://asc.fasb.org/extlink&oid=6392692&loc=d3e7535-110849"
  },
  "r344": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "410",
   "URI": "http://asc.fasb.org/extlink&oid=6392692&loc=d3e7535-110849"
  },
  "r345": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(3)",
   "Topic": "410",
   "URI": "http://asc.fasb.org/extlink&oid=6392692&loc=d3e7535-110849"
  },
  "r346": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(4)",
   "Topic": "410",
   "URI": "http://asc.fasb.org/extlink&oid=6392692&loc=d3e7535-110849"
  },
  "r347": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "410",
   "URI": "http://asc.fasb.org/extlink&oid=6392692&loc=d3e7535-110849"
  },
  "r348": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "SubTopic": "20",
   "Topic": "410",
   "URI": "http://asc.fasb.org/subtopic&trid=2175671"
  },
  "r349": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "410",
   "URI": "http://asc.fasb.org/extlink&oid=6393242&loc=d3e13201-110859"
  },
  "r35": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(2))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r350": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "420",
   "URI": "http://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869"
  },
  "r351": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "420",
   "URI": "http://asc.fasb.org/extlink&oid=6394359&loc=d3e17939-110869"
  },
  "r352": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 5.P.4(d))",
   "Topic": "420",
   "URI": "http://asc.fasb.org/extlink&oid=115931487&loc=d3e140904-122747"
  },
  "r353": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "440",
   "URI": "http://asc.fasb.org/topic&trid=2144648"
  },
  "r354": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/extlink&oid=121557415&loc=d3e14326-108349"
  },
  "r355": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "450",
   "URI": "http://asc.fasb.org/extlink&oid=121557415&loc=d3e14615-108349"
  },
  "r356": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "450",
   "URI": "http://asc.fasb.org/topic&trid=2127136"
  },
  "r357": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "460",
   "URI": "http://asc.fasb.org/topic&trid=2155896"
  },
  "r358": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123465755&loc=d3e1835-112601"
  },
  "r359": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123465755&loc=SL6230698-112601"
  },
  "r36": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(20))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r360": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S65",
   "SubTopic": "10",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359872&loc=SL124427846-239511"
  },
  "r361": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(i))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r362": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(ii))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r363": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(A))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r364": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii)(B))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r365": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iii))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r366": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(4)(iv))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r367": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-01(a)(5))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442526-122756"
  },
  "r368": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(i))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r369": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(A)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r37": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(22))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r370": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(A))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r371": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(B)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r372": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(B))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r373": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iii)(C))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r374": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(4)(iv))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r375": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.13-02(a)(5))",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=124359900&loc=SL124442552-122756"
  },
  "r376": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r377": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r378": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r379": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r38": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(23))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r380": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r381": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r382": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495323-112611"
  },
  "r383": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611"
  },
  "r384": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611"
  },
  "r385": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495340-112611"
  },
  "r386": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611"
  },
  "r387": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611"
  },
  "r388": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495348-112611"
  },
  "r389": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611"
  },
  "r39": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(24))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r390": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611"
  },
  "r391": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611"
  },
  "r392": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1F",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495355-112611"
  },
  "r393": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1I",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466505&loc=SL123495371-112611"
  },
  "r394": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466204&loc=SL6031897-161870"
  },
  "r395": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466204&loc=SL6031897-161870"
  },
  "r396": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466204&loc=SL6031897-161870"
  },
  "r397": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69B",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466577&loc=SL123495735-112612"
  },
  "r398": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69C",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466577&loc=SL123495737-112612"
  },
  "r399": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69E",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466577&loc=SL123495743-112612"
  },
  "r4": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "105",
   "URI": "http://asc.fasb.org/extlink&oid=124434974&loc=SL124442142-165695"
  },
  "r40": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(26)(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r400": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "69F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "470",
   "URI": "http://asc.fasb.org/extlink&oid=123466577&loc=SL123495745-112612"
  },
  "r401": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "470",
   "URI": "http://asc.fasb.org/topic&trid=2208564"
  },
  "r402": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(CFRR 211.02)",
   "Topic": "480",
   "URI": "http://asc.fasb.org/extlink&oid=122040564&loc=d3e177068-122764"
  },
  "r403": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=65888546&loc=d3e21300-112643"
  },
  "r404": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21459-112644"
  },
  "r405": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21553-112644"
  },
  "r406": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r407": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r408": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r409": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r41": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(26)(b))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r410": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r411": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r412": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r413": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496158-112644"
  },
  "r414": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496171-112644"
  },
  "r415": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496171-112644"
  },
  "r416": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496171-112644"
  },
  "r417": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496180-112644"
  },
  "r418": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496189-112644"
  },
  "r419": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496189-112644"
  },
  "r42": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(28))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r420": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496189-112644"
  },
  "r421": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=SL123496189-112644"
  },
  "r422": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21463-112644"
  },
  "r423": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21475-112644"
  },
  "r424": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21484-112644"
  },
  "r425": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21488-112644"
  },
  "r426": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21506-112644"
  },
  "r427": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21521-112644"
  },
  "r428": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=123467817&loc=d3e21538-112644"
  },
  "r429": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.3-04)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770"
  },
  "r43": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(29))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r430": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770"
  },
  "r431": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 4.C)",
   "Topic": "505",
   "URI": "http://asc.fasb.org/extlink&oid=120397183&loc=d3e187143-122770"
  },
  "r432": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "505",
   "URI": "http://asc.fasb.org/topic&trid=2208762"
  },
  "r433": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123351226&loc=SL49130551-203045"
  },
  "r434": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123351226&loc=SL49130554-203045"
  },
  "r435": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123351226&loc=SL49130554-203045"
  },
  "r436": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123351226&loc=SL49130554-203045"
  },
  "r437": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123351226&loc=SL49130554-203045"
  },
  "r438": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123351226&loc=SL49130554-203045"
  },
  "r439": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(2)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123351226&loc=SL49130556-203045"
  },
  "r44": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(3))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r440": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123351226&loc=SL49130558-203045"
  },
  "r441": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123351226&loc=SL49130543-203045"
  },
  "r442": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123351226&loc=SL49130545-203045"
  },
  "r443": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123351226&loc=SL49130550-203045"
  },
  "r444": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123410239&loc=SL49130690-203046-203046"
  },
  "r445": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123410239&loc=SL49130690-203046-203046"
  },
  "r446": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123410239&loc=SL49130690-203046-203046"
  },
  "r447": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123410239&loc=SL49130690-203046-203046"
  },
  "r448": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123410239&loc=SL49130690-203046-203046"
  },
  "r449": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123410239&loc=SL49130690-203046-203046"
  },
  "r45": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(1))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r450": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "91",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Subparagraph": "(g)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123410239&loc=SL49130690-203046-203046"
  },
  "r451": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(g)(2)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123338486&loc=SL49131195-203048"
  },
  "r452": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(i)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123338486&loc=SL49131195-203048"
  },
  "r453": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(i)(2)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123338486&loc=SL49131195-203048"
  },
  "r454": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(j)",
   "Topic": "606",
   "URI": "http://asc.fasb.org/extlink&oid=123338486&loc=SL49131195-203048"
  },
  "r455": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "606",
   "URI": "http://asc.fasb.org/topic&trid=49130388"
  },
  "r456": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "15",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "712",
   "URI": "http://asc.fasb.org/extlink&oid=6410066&loc=d3e79218-111664"
  },
  "r457": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "15",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "712",
   "URI": "http://asc.fasb.org/extlink&oid=6410066&loc=d3e79218-111664"
  },
  "r458": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123453770&loc=d3e1703-114919"
  },
  "r459": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123453770&loc=d3e1731-114919"
  },
  "r46": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30)(a)(3))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r460": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123453770&loc=SL108413299-114919"
  },
  "r461": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r462": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r463": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(10)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r464": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r465": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r466": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r467": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r468": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r469": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(7)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r47": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(30))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r470": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(8)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r471": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(9)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r472": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(b)(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r473": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r474": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r475": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r476": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r477": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r478": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r479": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r48": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(31))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r480": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(7)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r481": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(8)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r482": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r483": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r484": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(i)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r485": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(ii)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r486": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iii)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r487": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(01)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r488": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r489": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(A)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r49": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(32))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r490": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(B)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r491": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(02)(C)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r492": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(iv)(03)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r493": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(e)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r494": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(f)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r495": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r496": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r497": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r498": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r499": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r5": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "105",
   "URI": "http://asc.fasb.org/extlink&oid=124434974&loc=SL124442142-165695"
  },
  "r50": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(4)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r500": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r501": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r502": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r503": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(h)(7)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r504": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(i)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r505": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(j)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r506": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r507": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r508": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r509": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r51": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02(6)(a)(4))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r510": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(k)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r511": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(l)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r512": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(m)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r513": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(n)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r514": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(o)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r515": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(p)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r516": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(q)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r517": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(r)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r518": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(r)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r519": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e1928-114920"
  },
  "r52": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.1)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r520": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2410-114920"
  },
  "r521": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2417-114920"
  },
  "r522": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2417-114920"
  },
  "r523": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2417-114920"
  },
  "r524": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2439-114920"
  },
  "r525": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r526": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(1)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r527": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(2)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r528": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r529": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(4)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r53": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.12)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r530": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(5)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r531": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(6)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r532": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)(7)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r533": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2709-114920"
  },
  "r534": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123447040&loc=d3e2919-114920"
  },
  "r535": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123450688&loc=d3e4179-114921"
  },
  "r536": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "18",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=123450688&loc=d3e4587-114921"
  },
  "r537": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "20",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=21916913&loc=d3e273930-122802"
  },
  "r538": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "60",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=6414203&loc=d3e39689-114964"
  },
  "r539": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "60",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=6414203&loc=d3e39716-114964"
  },
  "r54": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.13(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r540": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "70",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=49170846&loc=d3e28014-114942"
  },
  "r541": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "80",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=29639808&loc=d3e29008-114946"
  },
  "r542": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947"
  },
  "r543": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947"
  },
  "r544": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947"
  },
  "r545": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450702-114947"
  },
  "r546": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(d)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r547": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(f)(3)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450657-114947"
  },
  "r548": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(a)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450673-114947"
  },
  "r549": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450673-114947"
  },
  "r55": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.14)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r550": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(c)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450673-114947"
  },
  "r551": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "80",
   "Subparagraph": "(b)",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=65877416&loc=SL14450691-114947"
  },
  "r552": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "80",
   "Topic": "715",
   "URI": "http://asc.fasb.org/extlink&oid=35742348&loc=SL14450788-114948"
  },
  "r553": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "715",
   "URI": "http://asc.fasb.org/topic&trid=2235017"
  },
  "r554": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901"
  },
  "r555": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901"
  },
  "r556": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5047-113901"
  },
  "r557": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r558": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a),(g)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r559": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b),(f)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r56": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.17)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r560": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)(iv)(3)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r561": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(i)-(ii)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r562": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r563": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)(iii)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r564": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r565": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(h)(1)(i)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r566": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=120381028&loc=d3e5070-113901"
  },
  "r567": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r568": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r569": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r57": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r570": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r571": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r572": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r573": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(f)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r574": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(g)(1)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r575": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(g)(2)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333"
  },
  "r576": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 14.F)",
   "Topic": "718",
   "URI": "http://asc.fasb.org/extlink&oid=122041274&loc=d3e301413-122809"
  },
  "r577": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "718",
   "URI": "http://asc.fasb.org/topic&trid=2228938"
  },
  "r578": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10B",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123427490&loc=SL37586934-109318"
  },
  "r579": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123427490&loc=d3e32247-109318"
  },
  "r58": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19(b))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r580": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "27",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123427490&loc=d3e32262-109318"
  },
  "r581": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123427490&loc=d3e32280-109318"
  },
  "r582": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123427490&loc=d3e31917-109318"
  },
  "r583": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123427490&loc=d3e31931-109318"
  },
  "r584": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32672-109319"
  },
  "r585": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32687-109319"
  },
  "r586": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32705-109319"
  },
  "r587": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32718-109319"
  },
  "r588": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32718-109319"
  },
  "r589": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(e)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32718-109319"
  },
  "r59": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19(b),22(b))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r590": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32718-109319"
  },
  "r591": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=SL6600010-109319"
  },
  "r592": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=SL6600010-109319"
  },
  "r593": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=SL6600010-109319"
  },
  "r594": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=SL6600010-109319"
  },
  "r595": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32809-109319"
  },
  "r596": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32840-109319"
  },
  "r597": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319"
  },
  "r598": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319"
  },
  "r599": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319"
  },
  "r6": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-04(Schedule I))",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=120391182&loc=d3e5864-122674"
  },
  "r60": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r600": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32537-109319"
  },
  "r601": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32847-109319"
  },
  "r602": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32857-109319"
  },
  "r603": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32559-109319"
  },
  "r604": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32559-109319"
  },
  "r605": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32621-109319"
  },
  "r606": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32632-109319"
  },
  "r607": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319"
  },
  "r608": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319"
  },
  "r609": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=121826272&loc=d3e32639-109319"
  },
  "r61": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.19,20)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r610": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "217",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=124434304&loc=d3e36027-109320"
  },
  "r611": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123459177&loc=SL121830611-158277"
  },
  "r612": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123459177&loc=SL121830611-158277"
  },
  "r613": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(2)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123459177&loc=SL121830611-158277"
  },
  "r614": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(d)(3)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123459177&loc=SL121830611-158277"
  },
  "r615": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123459177&loc=SL121830611-158277"
  },
  "r616": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123459177&loc=SL121830611-158277"
  },
  "r617": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123459177&loc=SL121830611-158277"
  },
  "r618": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.5.Q1)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r619": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB TOPIC 6.I.7)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r62": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.20)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r620": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.7)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r621": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.1)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r622": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.2)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r623": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.3)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r624": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 6.I.Fact.4)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817"
  },
  "r625": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.C)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=122134291&loc=d3e330215-122817"
  },
  "r626": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=123586238&loc=d3e38679-109324"
  },
  "r627": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "270",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=6424409&loc=d3e44925-109338"
  },
  "r628": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "740",
   "URI": "http://asc.fasb.org/extlink&oid=6424122&loc=d3e41874-109331"
  },
  "r629": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "740",
   "URI": "http://asc.fasb.org/topic&trid=2144680"
  },
  "r63": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.21)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r630": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123454820&loc=d3e5283-111683"
  },
  "r631": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123454820&loc=SL4568447-111683"
  },
  "r632": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123454820&loc=SL4568740-111683"
  },
  "r633": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "19",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123454820&loc=SL4569616-111683"
  },
  "r634": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "23",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123454820&loc=SL4569655-111683"
  },
  "r635": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988"
  },
  "r636": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "25",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=116870748&loc=SL6758485-165988"
  },
  "r637": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=d3e5614-111684"
  },
  "r638": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r639": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r64": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(1))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r640": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r641": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r642": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c),(3)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r643": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=109239629&loc=SL4573702-111684"
  },
  "r644": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685"
  },
  "r645": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685"
  },
  "r646": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=d3e5710-111685"
  },
  "r647": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=d3e5728-111685"
  },
  "r648": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=SL6759159-111685"
  },
  "r649": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=d3e5747-111685"
  },
  "r65": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22(a)(2))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r650": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=123419778&loc=SL6228884-111685"
  },
  "r651": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4I",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=120409616&loc=SL4590271-111686"
  },
  "r652": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4J",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=120409616&loc=SL4591551-111686"
  },
  "r653": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4K",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "810",
   "URI": "http://asc.fasb.org/extlink&oid=120409616&loc=SL4591552-111686"
  },
  "r654": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "810",
   "URI": "http://asc.fasb.org/topic&trid=2197479"
  },
  "r655": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=117331979&loc=d3e41228-113958"
  },
  "r656": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5579240-113959"
  },
  "r657": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5579245-113959"
  },
  "r658": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5579245-113959"
  },
  "r659": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)(ii)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=d3e41620-113959"
  },
  "r66": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.22)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r660": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=d3e41620-113959"
  },
  "r661": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=d3e41638-113959"
  },
  "r662": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959"
  },
  "r663": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959"
  },
  "r664": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959"
  },
  "r665": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a),(c)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959"
  },
  "r666": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959"
  },
  "r667": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959"
  },
  "r668": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624163-113959"
  },
  "r669": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4C",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624171-113959"
  },
  "r67": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.24)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r670": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)(4)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624177-113959"
  },
  "r671": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624177-113959"
  },
  "r672": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4E",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624181-113959"
  },
  "r673": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4EEEE",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL109999725-113959"
  },
  "r674": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4H",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624258-113959"
  },
  "r675": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4H",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=SL5624258-113959"
  },
  "r676": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=d3e41675-113959"
  },
  "r677": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=125515794&loc=d3e41678-113959"
  },
  "r678": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "182",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123421605&loc=SL5629052-113961"
  },
  "r679": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "25",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=121577467&loc=d3e76258-113986"
  },
  "r68": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.25)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r680": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(f)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123477628&loc=d3e90205-114008"
  },
  "r681": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r682": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)(2)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r683": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)(3)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r684": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r685": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)(2)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r686": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(c)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r687": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r688": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(1)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r689": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(2)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r69": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.26(b))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r690": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(3)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r691": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)(4)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r692": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)",
   "Topic": "815",
   "URI": "http://asc.fasb.org/extlink&oid=123482062&loc=SL123482106-238011"
  },
  "r693": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "815",
   "URI": "http://asc.fasb.org/topic&trid=2229140"
  },
  "r694": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "54B",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=122636397&loc=SL7495116-110257"
  },
  "r695": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r696": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r697": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bb)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r698": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r699": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(1)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r7": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=d3e1361-107760"
  },
  "r70": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.28,29)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r700": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(bbb)(2)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r701": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r702": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r703": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(1a)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r704": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r705": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r706": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19207-110258"
  },
  "r707": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19279-110258"
  },
  "r708": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=d3e19279-110258"
  },
  "r709": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=SL6742756-110258"
  },
  "r71": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r710": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=123874694&loc=SL6742756-110258"
  },
  "r711": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "60",
   "SubTopic": "10",
   "Topic": "820",
   "URI": "http://asc.fasb.org/extlink&oid=7493716&loc=d3e21868-110260"
  },
  "r712": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594786&loc=SL75136599-209740"
  },
  "r713": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594809&loc=d3e13220-108610"
  },
  "r714": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13279-108611"
  },
  "r715": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13433-108611"
  },
  "r716": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "11",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13467-108611"
  },
  "r717": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13476-108611"
  },
  "r718": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13531-108611"
  },
  "r719": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123594938&loc=d3e13537-108611"
  },
  "r72": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.29-31)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r720": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123596393&loc=d3e14064-108612"
  },
  "r721": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL75039408-165497"
  },
  "r722": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL120254526-165497"
  },
  "r723": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL120254526-165497"
  },
  "r724": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL121967933-165497"
  },
  "r725": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL121967933-165497"
  },
  "r726": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)(1)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL121967933-165497"
  },
  "r727": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)(2)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL121967933-165497"
  },
  "r728": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL121967933-165497"
  },
  "r729": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(2)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL121967933-165497"
  },
  "r73": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.3(a)(2))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r730": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(3)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL121967933-165497"
  },
  "r731": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL122642865-165497"
  },
  "r732": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "825",
   "URI": "http://asc.fasb.org/extlink&oid=123597120&loc=SL122642865-165497"
  },
  "r733": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "230",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=123444420&loc=d3e33268-110906"
  },
  "r734": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "17",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32136-110900"
  },
  "r735": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r736": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r737": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(c)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r738": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Subparagraph": "(d)",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r739": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=118261656&loc=d3e32211-110900"
  },
  "r74": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.31)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r740": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=6450520&loc=d3e32583-110901"
  },
  "r741": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "830",
   "URI": "http://asc.fasb.org/extlink&oid=6450520&loc=d3e32618-110901"
  },
  "r742": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=124435984&loc=d3e28541-108399"
  },
  "r743": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=124435984&loc=d3e28551-108399"
  },
  "r744": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=124435984&loc=d3e28555-108399"
  },
  "r745": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=124429444&loc=SL124452920-239629"
  },
  "r746": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "30",
   "Topic": "835",
   "URI": "http://asc.fasb.org/extlink&oid=114775985&loc=d3e28878-108400"
  },
  "r747": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "840",
   "URI": "http://asc.fasb.org/extlink&oid=123406913&loc=d3e41502-112717"
  },
  "r748": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123341672&loc=SL77916155-209984"
  },
  "r749": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123391704&loc=SL77918627-209977"
  },
  "r75": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.6(a)(5))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r750": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123391704&loc=SL77918627-209977"
  },
  "r751": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123391704&loc=SL77918631-209977"
  },
  "r752": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123391704&loc=SL77918638-209977"
  },
  "r753": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123391704&loc=SL77918643-209977"
  },
  "r754": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123391704&loc=SL77918643-209977"
  },
  "r755": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123391704&loc=SL77918643-209977"
  },
  "r756": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918666-209980"
  },
  "r757": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980"
  },
  "r758": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980"
  },
  "r759": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(1)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980"
  },
  "r76": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.6(a))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r760": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(2)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980"
  },
  "r761": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(3)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980"
  },
  "r762": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(g)(4)",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980"
  },
  "r763": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918686-209980"
  },
  "r764": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123408670&loc=SL77918701-209980"
  },
  "r765": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "53",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "842",
   "URI": "http://asc.fasb.org/extlink&oid=123414884&loc=SL77918982-209971"
  },
  "r766": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "848",
   "URI": "http://asc.fasb.org/extlink&oid=122150657&loc=SL122150809-237846"
  },
  "r767": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(e)(1)",
   "Topic": "848",
   "URI": "http://asc.fasb.org/extlink&oid=122150657&loc=SL122150809-237846"
  },
  "r768": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r769": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r77": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.6(b))",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r770": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r771": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(d)",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r772": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39549-107864"
  },
  "r773": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39599-107864"
  },
  "r774": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39603-107864"
  },
  "r775": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "850",
   "URI": "http://asc.fasb.org/extlink&oid=6457730&loc=d3e39691-107864"
  },
  "r776": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "850",
   "URI": "http://asc.fasb.org/topic&trid=2122745"
  },
  "r777": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "852",
   "URI": "http://asc.fasb.org/extlink&oid=124437977&loc=d3e55792-112764"
  },
  "r778": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "852",
   "URI": "http://asc.fasb.org/extlink&oid=124433192&loc=d3e56071-112765"
  },
  "r779": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "852",
   "URI": "http://asc.fasb.org/extlink&oid=124433192&loc=SL2890621-112765"
  },
  "r78": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.8)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r780": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "852",
   "URI": "http://asc.fasb.org/extlink&oid=124433192&loc=SL2890621-112765"
  },
  "r781": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "10",
   "Topic": "852",
   "URI": "http://asc.fasb.org/extlink&oid=84165509&loc=d3e56426-112766"
  },
  "r782": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "855",
   "URI": "http://asc.fasb.org/extlink&oid=6842918&loc=SL6314017-165662"
  },
  "r783": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "855",
   "URI": "http://asc.fasb.org/extlink&oid=6842918&loc=SL6314017-165662"
  },
  "r784": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Topic": "855",
   "URI": "http://asc.fasb.org/extlink&oid=6842918&loc=SL6314020-165662"
  },
  "r785": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "855",
   "URI": "http://asc.fasb.org/topic&trid=2122774"
  },
  "r786": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)(i)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r787": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)(ii)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r788": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r789": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r79": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.8,17)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r790": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r791": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(bb)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r792": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r793": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r794": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107207-111719"
  },
  "r795": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r796": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r797": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r798": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=d3e107314-111719"
  },
  "r799": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4D",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=121570589&loc=SL51823488-111719"
  },
  "r8": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "205",
   "URI": "http://asc.fasb.org/extlink&oid=109222650&loc=SL51721683-107760"
  },
  "r80": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SX 210.5-02.9)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682"
  },
  "r800": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "30",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=66007379&loc=d3e113888-111728"
  },
  "r801": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(a)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109249958&loc=SL34722452-111729"
  },
  "r802": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "30",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=109249958&loc=SL34722452-111729"
  },
  "r803": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122625-111746"
  },
  "r804": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122625-111746"
  },
  "r805": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122625-111746"
  },
  "r806": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)(i)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122625-111746"
  },
  "r807": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r808": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r809": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r81": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r810": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(4)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r811": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(5)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r812": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(6)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r813": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(a)(7)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r814": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(b)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r815": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(1)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r816": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(2)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r817": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "50",
   "Subparagraph": "(e)(3)",
   "Topic": "860",
   "URI": "http://asc.fasb.org/extlink&oid=125521744&loc=d3e122739-111746"
  },
  "r818": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "10",
   "Subparagraph": "(b)",
   "Topic": "910",
   "URI": "http://asc.fasb.org/extlink&oid=123353855&loc=SL119991595-234733"
  },
  "r819": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "330",
   "Topic": "912",
   "URI": "http://asc.fasb.org/extlink&oid=6471895&loc=d3e55923-109411"
  },
  "r82": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r820": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "10",
   "Subparagraph": "(SAB Topic 11.L)",
   "Topic": "924",
   "URI": "http://asc.fasb.org/extlink&oid=6472922&loc=d3e499488-122856"
  },
  "r821": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
  },
  "r822": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(b)",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
  },
  "r823": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
  },
  "r824": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(f)(1)",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
  },
  "r825": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(f)(2)",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
  },
  "r826": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "20",
   "Subparagraph": "(f)(3)",
   "Topic": "926",
   "URI": "http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079"
  },
  "r827": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=123377692&loc=d3e61929-109447"
  },
  "r828": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "15",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=123377692&loc=d3e61929-109447"
  },
  "r829": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=123377692&loc=d3e62059-109447"
  },
  "r83": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(c)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r830": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=123377692&loc=d3e62059-109447"
  },
  "r831": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=123377692&loc=d3e62395-109447"
  },
  "r832": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "28",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=123377692&loc=d3e62395-109447"
  },
  "r833": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=123377692&loc=d3e62479-109447"
  },
  "r834": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "33",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=123377692&loc=d3e62479-109447"
  },
  "r835": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "35A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(a)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=123377692&loc=SL6807758-109447"
  },
  "r836": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "35A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(b)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=123377692&loc=SL6807758-109447"
  },
  "r837": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(c)(1)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=123377692&loc=d3e61872-109447"
  },
  "r838": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "235",
   "Subparagraph": "(c)(2)",
   "Topic": "932",
   "URI": "http://asc.fasb.org/extlink&oid=123377692&loc=d3e61872-109447"
  },
  "r839": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(1)(a))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r84": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(d)(2)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r840": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10)(3))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r841": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(10))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r842": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(11))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r843": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(13)(2))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r844": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(13))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r845": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(15)(1))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r846": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(15)(2))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r847": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(16))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r848": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(22))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r849": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03(23))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r85": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225862-175312"
  },
  "r850": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.10(3))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r851": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.9-03.17)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878"
  },
  "r852": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(13)(f))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r853": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(22))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r854": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(23))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r855": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04(27))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r856": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.9-04.10)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399700&loc=SL114874048-224260"
  },
  "r857": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "235",
   "Subparagraph": "(SX 210.9-05(b)(2))",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=120399901&loc=d3e537907-122884"
  },
  "r858": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "320",
   "Subparagraph": "(b)",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=123599081&loc=d3e62557-112803"
  },
  "r859": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=124429447&loc=SL124453093-239630"
  },
  "r86": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=51824906&loc=SL20225877-175312"
  },
  "r860": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "405",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=6957935&loc=d3e64057-112817"
  },
  "r861": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "470",
   "Topic": "942",
   "URI": "http://asc.fasb.org/extlink&oid=123599511&loc=d3e64711-112823"
  },
  "r862": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(15)(b)(2))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r863": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(16))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r864": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(3))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r865": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(1)(b))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r866": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(10))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r867": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(12))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r868": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(15)(a))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r869": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16)(a)(1))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r87": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226008-175313"
  },
  "r870": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(16))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r871": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(23)(a)(4))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r872": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(24))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r873": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(25))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r874": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03(a)(8))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r875": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.(a),19)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r876": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.1(f,g))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r877": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.1(h))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r878": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.7-03.3)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400017&loc=d3e572229-122910"
  },
  "r879": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(10))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r88": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226016-175313"
  },
  "r880": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(18))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r881": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(19))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r882": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(23))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r883": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(3)(b))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r884": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "220",
   "Subparagraph": "(SX 210.7-04(9))",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263"
  },
  "r885": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "4H",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=116884468&loc=SL65671331-158438"
  },
  "r886": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7A",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "40",
   "Subparagraph": "(d)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124506351&loc=SL117782755-158439"
  },
  "r887": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "13H",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124504033&loc=SL117783719-158441"
  },
  "r888": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "29F",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "40",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124504033&loc=SL117819544-158441"
  },
  "r889": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(a)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r89": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "16",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226024-175313"
  },
  "r890": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(b)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r891": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(e)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r892": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(1)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r893": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(f)(2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r894": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(1)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r895": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(i)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r896": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(ii)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r897": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(iii)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r898": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(g)(2)(iv)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r899": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(1)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r9": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=124098289&loc=d3e6676-107765"
  },
  "r90": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "20",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226038-175313"
  },
  "r900": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "40",
   "Subparagraph": "(h)(2)",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641"
  },
  "r901": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1B",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "825",
   "Topic": "944",
   "URI": "http://asc.fasb.org/extlink&oid=123600520&loc=SL75241803-196195"
  },
  "r902": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-04(12)(b)(3))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401414&loc=d3e603758-122996"
  },
  "r903": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "210",
   "Subparagraph": "(SX 210.6-06(3)(a)(3))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=120401414&loc=d3e604059-122996"
  },
  "r904": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column B)(Footnote 1))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r905": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column B)(Footnote 6))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r906": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column B)(Footnote 7))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r907": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 1))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r908": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 6))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r909": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column C)(Footnote 7))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r91": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "21",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226049-175313"
  },
  "r910": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column D)(Footnote 1))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r911": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column D)(Footnote 6))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r912": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-12B(Column D)(Footnote 7))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611197-123010"
  },
  "r913": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5D",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13D(Column B)(Footnote 2))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=SL120429264-123010"
  },
  "r914": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "5D",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-13D(Column C)(Footnote 2))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=SL120429264-123010"
  },
  "r915": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-14(2))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611322-123010"
  },
  "r916": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-14(6))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611322-123010"
  },
  "r917": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-14(Column C))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611322-123010"
  },
  "r918": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column A))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611379-123010"
  },
  "r919": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column B))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611379-123010"
  },
  "r92": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "22",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226052-175313"
  },
  "r920": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column C))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611379-123010"
  },
  "r921": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "320",
   "Subparagraph": "(SX 210.12-15(Column D))",
   "Topic": "946",
   "URI": "http://asc.fasb.org/extlink&oid=122147990&loc=d3e611379-123010"
  },
  "r922": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Topic": "954",
   "URI": "http://asc.fasb.org/extlink&oid=123364037&loc=d3e3115-115594"
  },
  "r923": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Subparagraph": "(d)",
   "Topic": "958",
   "URI": "http://asc.fasb.org/extlink&oid=120429125&loc=d3e99779-112916"
  },
  "r924": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "6",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "958",
   "URI": "http://asc.fasb.org/extlink&oid=120429125&loc=d3e99893-112916"
  },
  "r925": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "360",
   "Topic": "958",
   "URI": "http://asc.fasb.org/extlink&oid=120429125&loc=SL120174063-112916"
  },
  "r926": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SX 210.12-28(Footnote 4))",
   "Topic": "970",
   "URI": "http://asc.fasb.org/extlink&oid=120402810&loc=d3e638233-123024"
  },
  "r927": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Subparagraph": "(c)",
   "Topic": "976",
   "URI": "http://asc.fasb.org/extlink&oid=6497875&loc=d3e22274-108663"
  },
  "r928": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "310",
   "Subparagraph": "(b)",
   "Topic": "978",
   "URI": "http://asc.fasb.org/extlink&oid=123360121&loc=d3e27327-108691"
  },
  "r929": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "05",
   "SubTopic": "10",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=123345215&loc=d3e39995-110364"
  },
  "r93": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "7",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226000-175313"
  },
  "r930": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "05",
   "SubTopic": "10",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=123345215&loc=d3e40187-110364"
  },
  "r931": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "20",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=84167750&loc=d3e42232-110370"
  },
  "r932": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "340",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=123417213&loc=d3e43603-110378"
  },
  "r933": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "340",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=6499975&loc=d3e44250-110382"
  },
  "r934": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "340",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=6499975&loc=d3e44264-110382"
  },
  "r935": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "340",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=6499975&loc=d3e44278-110382"
  },
  "r936": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "360",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=6500269&loc=d3e45485-110386"
  },
  "r937": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "3",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "360",
   "Subparagraph": "(b)",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=6500292&loc=d3e45591-110387"
  },
  "r938": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "9",
   "Publisher": "FASB",
   "Section": "35",
   "SubTopic": "360",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=6500292&loc=d3e45741-110387"
  },
  "r939": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SAB TOPIC 10.C)",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=122136288&loc=d3e659983-123033"
  },
  "r94": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "8",
   "Publisher": "FASB",
   "Section": "55",
   "SubTopic": "20",
   "Topic": "210",
   "URI": "http://asc.fasb.org/extlink&oid=99393222&loc=SL20226003-175313"
  },
  "r940": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SAB Topic 10.C)",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=122136288&loc=d3e659983-123033"
  },
  "r941": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "S99",
   "SubTopic": "360",
   "Subparagraph": "(SAB Topic 10.E)",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=122136288&loc=d3e660019-123033"
  },
  "r942": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "405",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=6500807&loc=d3e48068-110394"
  },
  "r943": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "410",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=6500910&loc=d3e48636-110399"
  },
  "r944": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "605",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=109242873&loc=d3e50972-110412"
  },
  "r945": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "715",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=6501251&loc=d3e52485-110419"
  },
  "r946": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "740",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=6501382&loc=d3e54053-110423"
  },
  "r947": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "740",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=6501382&loc=d3e54136-110423"
  },
  "r948": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "25",
   "SubTopic": "835",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=6501569&loc=d3e55921-110430"
  },
  "r949": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "835",
   "Topic": "980",
   "URI": "http://asc.fasb.org/extlink&oid=6501662&loc=d3e56162-110433"
  },
  "r95": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(f)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669646-108580"
  },
  "r950": {
   "Name": "Accounting Standards Codification",
   "Publisher": "FASB",
   "Topic": "980",
   "URI": "http://asc.fasb.org/topic&trid=2156578"
  },
  "r951": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(a)",
   "Topic": "985",
   "URI": "http://asc.fasb.org/extlink&oid=6501960&loc=d3e128462-111756"
  },
  "r952": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Subparagraph": "(b)(1)",
   "Topic": "985",
   "URI": "http://asc.fasb.org/extlink&oid=6501960&loc=d3e128462-111756"
  },
  "r953": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "985",
   "URI": "http://asc.fasb.org/extlink&oid=6501960&loc=d3e128462-111756"
  },
  "r954": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "50",
   "SubTopic": "20",
   "Topic": "985",
   "URI": "http://asc.fasb.org/extlink&oid=6501960&loc=d3e128487-111756"
  },
  "r955": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b"
  },
  "r956": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r957": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "b-23"
  },
  "r958": {
   "Name": "Exchange Act",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r959": {
   "Name": "Form 10-K",
   "Number": "249",
   "Publisher": "SEC",
   "Section": "310"
  },
  "r96": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "10A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669646-108580"
  },
  "r960": {
   "Name": "Form 20-F",
   "Number": "249",
   "Publisher": "SEC",
   "Section": "220",
   "Subsection": "f"
  },
  "r961": {
   "Name": "Form 40-F",
   "Number": "249",
   "Publisher": "SEC",
   "Section": "240",
   "Subsection": "f"
  },
  "r962": {
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Publisher": "SEC",
   "Section": "13",
   "Subsection": "a-1"
  },
  "r963": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "1402"
  },
  "r964": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(1)"
  },
  "r965": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)"
  },
  "r966": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(b)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(3)"
  },
  "r967": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(i)"
  },
  "r968": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(ii)"
  },
  "r969": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(c)",
   "Publisher": "SEC",
   "Section": "1402",
   "Subparagraph": "(2)(iii)"
  },
  "r97": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "12",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=d3e640-108580"
  },
  "r970": {
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "303",
   "Subparagraph": "(5)"
  },
  "r971": {
   "Name": "Regulation S-T",
   "Number": "232",
   "Publisher": "SEC",
   "Section": "405"
  },
  "r972": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "11",
   "Subsection": "03"
  },
  "r973": {
   "Footnote": "4",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "28"
  },
  "r974": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "04"
  },
  "r975": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "a",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "04"
  },
  "r976": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Publisher": "SEC",
   "Section": "12",
   "Subsection": "09"
  },
  "r977": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(i)",
   "Subsection": "01"
  },
  "r978": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(i)",
   "Subsection": "02"
  },
  "r979": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(ii)",
   "Subsection": "01"
  },
  "r98": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "14A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669686-108580"
  },
  "r980": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iii)",
   "Subsection": "01"
  },
  "r981": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iii)(A)",
   "Subsection": "01"
  },
  "r982": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iii)(A)",
   "Subsection": "02"
  },
  "r983": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iii)(B)",
   "Subsection": "01"
  },
  "r984": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iii)(B)",
   "Subsection": "02"
  },
  "r985": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iii)(C)",
   "Subsection": "02"
  },
  "r986": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iv)",
   "Subsection": "01"
  },
  "r987": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(a)",
   "Publisher": "SEC",
   "Section": "13",
   "Subparagraph": "(4)(iv)",
   "Subsection": "02"
  },
  "r988": {
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Paragraph": "(m)",
   "Publisher": "SEC",
   "Section": "4",
   "Subparagraph": "(1)(iii)",
   "Subsection": "08"
  },
  "r989": {
   "Name": "Securities Act",
   "Number": "230",
   "Publisher": "SEC",
   "Section": "405"
  },
  "r99": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "1A",
   "Publisher": "FASB",
   "Section": "45",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "220",
   "URI": "http://asc.fasb.org/extlink&oid=124509347&loc=SL7669619-108580"
  },
  "r990": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)",
   "Topic": "848"
  },
  "r991": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(1)",
   "Topic": "848"
  },
  "r992": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(2)",
   "Topic": "848"
  },
  "r993": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(01)",
   "Topic": "848"
  },
  "r994": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(a)(3)(iii)(03)",
   "Topic": "848"
  },
  "r995": {
   "Name": "Accounting Standards Codification",
   "Paragraph": "2",
   "Publisher": "FASB",
   "Section": "65",
   "SubTopic": "10",
   "Subparagraph": "(c)",
   "Topic": "848"
  }
 },
 "version": "2.1"
}
