<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>107</ContextCount>
  <ElementCount>141</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>47</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - Statement - STATEMENTS OF COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/StatementStatementsOfComprehensiveIncome</Role>
      <ShortName>STATEMENTS OF COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00200 - Statement - BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/StatementBalanceSheets</Role>
      <ShortName>BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00300 - Statement - STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/StatementStatementsOfCashFlows</Role>
      <ShortName>STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00400 - Statement - STATEMENTS OF CHANGES IN EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/StatementStatementsOfChangesInEquity</Role>
      <ShortName>STATEMENTS OF CHANGES IN EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>10101 - Disclosure - Basis of Presentation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureBasisOfPresentation</Role>
      <ShortName>Basis of Presentation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>10201 - Disclosure - Revenue</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureRevenue</Role>
      <ShortName>Revenue</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>10301 - Disclosure - Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureFinancialInstruments</Role>
      <ShortName>Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>10401 - Disclosure - Financial Income and Expenses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureFinancialIncomeAndExpenses</Role>
      <ShortName>Financial Income and Expenses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>10501 - Disclosure - Share-Based Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureShareBasedInstruments</Role>
      <ShortName>Share-Based Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10601 - Disclosure - Related Parties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureRelatedParties</Role>
      <ShortName>Related Parties</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10701 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10801 - Disclosure - Subsequent Events to the Balance Sheet Date</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureSubsequentEventsToBalanceSheetDate</Role>
      <ShortName>Subsequent Events to the Balance Sheet Date</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>20102 - Disclosure - Basis of Presentation (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureBasisOfPresentationPolicies</Role>
      <ShortName>Basis of Presentation (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>30203 - Disclosure - Revenue (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureRevenueTables</Role>
      <ShortName>Revenue (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.genmab.com/role/DisclosureRevenue</ParentRole>
      <Position>15</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>30303 - Disclosure - Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureFinancialInstrumentsTables</Role>
      <ShortName>Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.genmab.com/role/DisclosureFinancialInstruments</ParentRole>
      <Position>16</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>30403 - Disclosure - Financial Income and Expenses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureFinancialIncomeAndExpensesTables</Role>
      <ShortName>Financial Income and Expenses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.genmab.com/role/DisclosureFinancialIncomeAndExpenses</ParentRole>
      <Position>17</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>30503 - Disclosure - Share-Based Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureShareBasedInstrumentsTables</Role>
      <ShortName>Share-Based Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.genmab.com/role/DisclosureShareBasedInstruments</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>30703 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.genmab.com/role/DisclosureLeases</ParentRole>
      <Position>19</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>40101 - Disclosure - Basis of Presentation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureBasisOfPresentationDetails</Role>
      <ShortName>Basis of Presentation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.genmab.com/role/DisclosureBasisOfPresentationPolicies</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>40201 - Disclosure - Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureRevenueDetails</Role>
      <ShortName>Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.genmab.com/role/DisclosureRevenueTables</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>40301 - Disclosure - Financial Instruments - Financial Risk (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureFinancialInstrumentsFinancialRiskDetails</Role>
      <ShortName>Financial Instruments - Financial Risk (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>40302 - Disclosure - Financial Instruments - Fair Value Measurement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureFinancialInstrumentsFairValueMeasurementDetails</Role>
      <ShortName>Financial Instruments - Fair Value Measurement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>40303 - Disclosure - Financial Instruments - Other Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureFinancialInstrumentsOtherInvestmentsDetails</Role>
      <ShortName>Financial Instruments - Other Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>40401 - Disclosure - Financial Income and Expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureFinancialIncomeAndExpensesDetails</Role>
      <ShortName>Financial Income and Expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.genmab.com/role/DisclosureFinancialIncomeAndExpensesTables</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>40501 - Disclosure - Share-Based Instruments - Restricted Stock Unit Program (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureShareBasedInstrumentsRestrictedStockUnitProgramDetails</Role>
      <ShortName>Share-Based Instruments - Restricted Stock Unit Program (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>40502 - Disclosure - Share-Based Instruments - Warrant Program (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureShareBasedInstrumentsWarrantProgramDetails</Role>
      <ShortName>Share-Based Instruments - Warrant Program (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>40503 - Disclosure - Share-Based Instruments - Share repurchases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureShareBasedInstrumentsShareRepurchasesDetails</Role>
      <ShortName>Share-Based Instruments - Share repurchases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>40601 - Disclosure - Related Parties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureRelatedPartiesDetails</Role>
      <ShortName>Related Parties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.genmab.com/role/DisclosureRelatedParties</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="gmab-20220630x6k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>40701 - Disclosure - Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.genmab.com/role/DisclosureLeasesDetails</Role>
      <ShortName>Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.genmab.com/role/DisclosureLeasesTables</ParentRole>
      <Position>30</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="6-K" original="gmab-20220630x6k.htm">gmab-20220630x6k.htm</File>
    <File doctype="6-K" original="gmab-20220630xex99d1.htm">gmab-20220630xex99d1.htm</File>
    <File>gmab-20220630.xsd</File>
    <File>gmab-20220630_cal.xml</File>
    <File>gmab-20220630_def.xml</File>
    <File>gmab-20220630_lab.xml</File>
    <File>gmab-20220630_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>gmab-20220630xex99d1002.jpg</File>
    <File>gmab-20220630xex99d1005.jpg</File>
    <File>gmab-20220630xex99d1006.jpg</File>
    <File>gmab-20220630xex99d1007.jpg</File>
    <File>gmab-20220630xex99d1008.jpg</File>
    <File>gmab-20220630xex99d1009.jpg</File>
    <File>gmab-20220630xex99d1010.jpg</File>
    <File>gmab-20220630xex99d1011.jpg</File>
    <File>gmab-20220630xex99d1012.jpg</File>
    <File>gmab-20220630xex99d1013.jpg</File>
    <File>gmab-20220630xex99d1014.jpg</File>
    <File>gmab-20220630xex99d1015.jpg</File>
    <File>gmab-20220630xex99d1016.jpg</File>
    <File>gmab-20220630xex99d1017.jpg</File>
    <File>gmab-20220630xex99d1018.jpg</File>
    <File>gmab-20220630xex99d1019.jpg</File>
    <File>gmab-20220630xex99d1020.jpg</File>
    <File>gmab-20220630xex99d1021.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="301">http://xbrl.ifrs.org/taxonomy/2021-03-24/ifrs-full</BaseTaxonomy>
    <BaseTaxonomy items="8">http://xbrl.sec.gov/dei/2021q4</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
