content: <?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:com="http://www.sec.gov/edgar/common">
    <headerData>
      <submissionType>144</submissionType>
      <filerInfo>
        <filer>
          <filerCredentials>
            <cik>0001587477</cik>
            <ccc>XXXXXXXX</ccc>
          </filerCredentials>
        </filer>
        <liveTestFlag>LIVE</liveTestFlag>
  
  
  
      </filerInfo>
    </headerData>
    <formData>
      <issuerInfo>
        <issuerCik>0001125345</issuerCik>
        <issuerName>MACROGENICS INC</issuerName>
        <secFileNumber>001-36112</secFileNumber>
        <issuerAddress>
          <com:street1>9704 MEDICAL CENTER DRIVE</com:street1>
          <com:city>Rockville</com:city>
          <com:stateOrCountry>MD</com:stateOrCountry>
          <com:zipCode>20850</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>301-251-5172</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Karrels James</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Officer</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>common</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>Oppenheimer &amp; Co Inc</name>
          <address>
            <com:street1>85 Broad Street</com:street1>
            <com:city>New York</com:city>
            <com:stateOrCountry>NY</com:stateOrCountry>
            <com:zipCode>10004</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>30000</noOfUnitsSold>
        <aggregateMarketValue>615000.00</aggregateMarketValue>
        <noOfUnitsOutstanding>62029447</noOfUnitsOutstanding>
        <approxSaleDate>03/04/2024</approxSaleDate>
        <securitiesExchangeName>NASDAQ</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>12/24/2014</acquiredDate>
        <natureOfAcquisitionTransaction>Exercised Options</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>30000</amountOfSecuritiesAcquired>
        <paymentDate>12/24/2014</paymentDate>
        <natureOfPayment>personal check</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <remarks>POA on file  - shares being sold pursuant to a 10b5-1 trading plan on file dated 11/07/2022
  Additional lots - 01/28/2021, 01/16/2018, 01/29/2016, 01/25/2017, 09/05/2017</remarks>
      <noticeSignature>
        <noticeDate>03/04/2024</noticeDate>
        <planAdoptionDates>
          <planAdoptionDate>11/07/2022</planAdoptionDate>
        </planAdoptionDates>
        <signature>James Karrels</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3005}]
text: 144
  0001587477
  XXXXXXXX
  LIVE
  0001125345
  MACROGENICS INC
  001-36112
  9704 MEDICAL CENTER DRIVE
  Rockville
  MD
  20850
  301-251-5172
  Karrels James
  Officer
  common
  Oppenheimer & Co Inc
  85 Broad Street
  New York
  NY
  10004
  30000
  615000.00
  62029447
  03/04/2024
  NASDAQ
  Common
  12/24/2014
  Exercised Options
  Issuer
  N
  30000
  12/24/2014
  personal check
  Y
  POA on file  - shares being sold pursuant to a 10b5-1 trading plan on file dated 11/07/2022
  Additional lots - 01/28/2021, 01/16/2018, 01/29/2016, 01/25/2017, 09/05/2017
  03/04/2024
  11/07/2022
  James Karrels