<?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>11087</noOfUnitsSold>
      <aggregateMarketValue>3882574.66</aggregateMarketValue>
      <noOfUnitsOutstanding>86661338</noOfUnitsOutstanding>
      <approxSaleDate>07/19/2023</approxSaleDate>
      <securitiesExchangeName>NASDAQ</securitiesExchangeName>
    </securitiesInformation>
    <securitiesToBeSold>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <acquiredDate>07/19/2023</acquiredDate>
      <natureOfAcquisitionTransaction>Option Granted - 08/31/2016</natureOfAcquisitionTransaction>
      <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
      <isGiftTransaction>N</isGiftTransaction>
      <amountOfSecuritiesAcquired>11087</amountOfSecuritiesAcquired>
      <paymentDate>07/19/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>06/12/2023</saleDate>
      <amountOfSecuritiesSold>52221</amountOfSecuritiesSold>
      <grossProceeds>17128747.82</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/18/2023</saleDate>
      <amountOfSecuritiesSold>13262</amountOfSecuritiesSold>
      <grossProceeds>4642257.29</grossProceeds>
    </securitiesSoldInPast3Months>
    <noticeSignature>
      <noticeDate>07/19/2023</noticeDate>
      <planAdoptionDates>
        <planAdoptionDate>03/13/2023</planAdoptionDate>
      </planAdoptionDates>
      <signature>/s/Wade Moss, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for  Ajei Gopal</signature>
    </noticeSignature>
  </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 4151}]
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
11087
3882574.66
86661338
07/19/2023
NASDAQ
Common
07/19/2023
Option Granted - 08/31/2016
Issuer
N
11087
07/19/2023
Cash
N
Ajei Gopal
2600 ANSYS Drive
Canonsburg
PA
15317
Common
06/12/2023
52221
17128747.82
Ajei Gopal
2600 ANSYS Drive
Canonsburg
PA
15317
Common
07/18/2023
13262
4642257.29
07/19/2023
03/13/2023
/s/Wade Moss, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for  Ajei Gopal