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>0001302712</cik>
            <ccc>XXXXXXXX</ccc>
          </filerCredentials>
        </filer>
        <liveTestFlag>LIVE</liveTestFlag>
  
  
  
      </filerInfo>
    </headerData>
    <formData>
      <issuerInfo>
        <issuerCik>0001013462</issuerCik>
        <issuerName>ANSYS INC</issuerName>
        <secFileNumber>000-20853</secFileNumber>
        <issuerAddress>
          <com:street1>2600 ANSYS DRIVE, SOUTHPOINTE</com:street1>
          <com:city>CANONSBURG</com:city>
          <com:stateOrCountry>PA</com:stateOrCountry>
          <com:zipCode>15317</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>8444626797</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Gopal Ajei</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Officer</relationshipToIssuer>
          <relationshipToIssuer>Director</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>Fidelity Brokerage Services LLC</name>
          <address>
            <com:street1>900 Salem Street</com:street1>
            <com:city>Smithfield</com:city>
            <com:stateOrCountry>RI</com:stateOrCountry>
            <com:zipCode>02917</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>12270</noOfUnitsSold>
        <aggregateMarketValue>3742585.51</aggregateMarketValue>
        <noOfUnitsOutstanding>86791073</noOfUnitsOutstanding>
        <approxSaleDate>10/11/2023</approxSaleDate>
        <securitiesExchangeName>NASDAQ</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>10/11/2023</acquiredDate>
        <natureOfAcquisitionTransaction>Options Granted - 08/31/2016</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>12270</amountOfSecuritiesAcquired>
        <paymentDate>10/11/2023</paymentDate>
        <natureOfPayment>Cash</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <securitiesSoldInPast3Months>
        <sellerDetails>
          <name>Ajei Gopal</name>
          <address>
            <com:street1>2600 ANSYS Drive</com:street1>
            <com:city>Canonsburg</com:city>
            <com:stateOrCountry>PA</com:stateOrCountry>
            <com:zipCode>15317</com:zipCode>
          </address>
        </sellerDetails>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <saleDate>07/18/2023</saleDate>
        <amountOfSecuritiesSold>13262</amountOfSecuritiesSold>
        <grossProceeds>4642257.29</grossProceeds>
      </securitiesSoldInPast3Months>
      <securitiesSoldInPast3Months>
        <sellerDetails>
          <name>Ajei Gopal</name>
          <address>
            <com:street1>2600 ANSYS Drive,</com:street1>
            <com:city>Canonsburg</com:city>
            <com:stateOrCountry>PA</com:stateOrCountry>
            <com:zipCode>15317</com:zipCode>
          </address>
        </sellerDetails>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <saleDate>07/19/2023</saleDate>
        <amountOfSecuritiesSold>11087</amountOfSecuritiesSold>
        <grossProceeds>3882574.66</grossProceeds>
      </securitiesSoldInPast3Months>
      <securitiesSoldInPast3Months>
        <sellerDetails>
          <name>Ajei Gopal</name>
          <address>
            <com:street1>2600 ANSYS Drive</com:street1>
            <com:city>Canonsburg</com:city>
            <com:stateOrCountry>PA</com:stateOrCountry>
            <com:zipCode>15317</com:zipCode>
          </address>
        </sellerDetails>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <saleDate>10/10/2023</saleDate>
        <amountOfSecuritiesSold>13194</amountOfSecuritiesSold>
        <grossProceeds>4029720.86</grossProceeds>
      </securitiesSoldInPast3Months>
      <noticeSignature>
        <noticeDate>10/11/2023</noticeDate>
        <planAdoptionDates>
          <planAdoptionDate>03/13/2023</planAdoptionDate>
        </planAdoptionDates>
        <signature>/s/ Gerardo Ibarra-Munoz, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Ajei Gopal</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 4744}]
text: 144
  0001302712
  XXXXXXXX
  LIVE
  0001013462
  ANSYS INC
  000-20853
  2600 ANSYS DRIVE, SOUTHPOINTE
  CANONSBURG
  PA
  15317
  8444626797
  Gopal Ajei
  Officer
  Director
  Common
  Fidelity Brokerage Services LLC
  900 Salem Street
  Smithfield
  RI
  02917
  12270
  3742585.51
  86791073
  10/11/2023
  NASDAQ
  Common
  10/11/2023
  Options Granted - 08/31/2016
  Issuer
  N
  12270
  10/11/2023
  Cash
  N
  Ajei Gopal
  2600 ANSYS Drive
  Canonsburg
  PA
  15317
  Common
  07/18/2023
  13262
  4642257.29
  Ajei Gopal
  2600 ANSYS Drive,
  Canonsburg
  PA
  15317
  Common
  07/19/2023
  11087
  3882574.66
  Ajei Gopal
  2600 ANSYS Drive
  Canonsburg
  PA
  15317
  Common
  10/10/2023
  13194
  4029720.86
  10/11/2023
  03/13/2023
  /s/ Gerardo Ibarra-Munoz, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Ajei Gopal