<?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>0001867312</cik>
          <ccc>XXXXXXXX</ccc>
        </filerCredentials>
      </filer>
      <liveTestFlag>LIVE</liveTestFlag>



    </filerInfo>
  </headerData>
  <formData>
    <issuerInfo>
      <issuerCik>0001597313</issuerCik>
      <issuerName>ViewRay, Inc.</issuerName>
      <secFileNumber>001-37725</secFileNumber>
      <issuerAddress>
        <com:street1>1099 18th St</com:street1>
        <com:street2>Suite 3000</com:street2>
        <com:city>Denver</com:city>
        <com:stateOrCountry>CO</com:stateOrCountry>
        <com:zipCode>80202</com:zipCode>
      </issuerAddress>
      <issuerContactPhone>440-703-3210</issuerContactPhone>
      <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Ziegler Paul Jr</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
      <relationshipsToIssuer>
        <relationshipToIssuer>Officer</relationshipToIssuer>
      </relationshipsToIssuer>
    </issuerInfo>
    <securitiesInformation>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <brokerOrMarketmakerDetails>
        <name>Charles Schwab Corp</name>
        <address>
          <com:street1>3000 Schwab Way</com:street1>
          <com:city>Westlake</com:city>
          <com:stateOrCountry>TX</com:stateOrCountry>
          <com:zipCode>80124</com:zipCode>
        </address>
      </brokerOrMarketmakerDetails>
      <noOfUnitsSold>1500</noOfUnitsSold>
      <aggregateMarketValue>103.50</aggregateMarketValue>
      <noOfUnitsOutstanding>183402038</noOfUnitsOutstanding>
      <approxSaleDate>07/19/2023</approxSaleDate>
      <securitiesExchangeName>Nasdaq</securitiesExchangeName>
    </securitiesInformation>
    <securitiesToBeSold>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <acquiredDate>01/07/2022</acquiredDate>
      <natureOfAcquisitionTransaction>Open Market Purchase</natureOfAcquisitionTransaction>
      <nameOfPersonfromWhomAcquired>Open Market</nameOfPersonfromWhomAcquired>
      <isGiftTransaction>N</isGiftTransaction>
      <amountOfSecuritiesAcquired>1000</amountOfSecuritiesAcquired>
      <paymentDate>01/07/2022</paymentDate>
      <natureOfPayment>Cash</natureOfPayment>
    </securitiesToBeSold>
    <securitiesToBeSold>
      <securitiesClassTitle>Common</securitiesClassTitle>
      <acquiredDate>02/18/2021</acquiredDate>
      <natureOfAcquisitionTransaction>Open Market Purchase</natureOfAcquisitionTransaction>
      <nameOfPersonfromWhomAcquired>Open Market</nameOfPersonfromWhomAcquired>
      <isGiftTransaction>N</isGiftTransaction>
      <amountOfSecuritiesAcquired>500</amountOfSecuritiesAcquired>
      <paymentDate>02/18/2021</paymentDate>
      <natureOfPayment>Cash</natureOfPayment>
    </securitiesToBeSold>
    <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
    <remarks>Paul Ziegler is selling these shares as custodian for 2 custodial account</remarks>
    <noticeSignature>
      <noticeDate>07/19/2023</noticeDate>
      <signature>Paul Ziegler</signature>
    </noticeSignature>
  </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3349}]
144
0001867312
XXXXXXXX
LIVE
0001597313
ViewRay, Inc.
001-37725
1099 18th St
Suite 3000
Denver
CO
80202
440-703-3210
Ziegler Paul Jr
Officer
Common
Charles Schwab Corp
3000 Schwab Way
Westlake
TX
80124
1500
103.50
183402038
07/19/2023
Nasdaq
Common
01/07/2022
Open Market Purchase
Open Market
N
1000
01/07/2022
Cash
Common
02/18/2021
Open Market Purchase
Open Market
N
500
02/18/2021
Cash
Y
Paul Ziegler is selling these shares as custodian for 2 custodial account
07/19/2023
Paul Ziegler