<?xml version="1.0" encoding="UTF-8"?><ns2:edgarSubmission xmlns:com="http://www.sec.gov/edgar/common" xmlns:ns2="http://www.sec.gov/edgar/ownership">
    <ns2:headerData>
        <ns2:submissionType>144</ns2:submissionType>
        <ns2:filerInfo>
            <ns2:filer>
                <ns2:filerCredentials>
                    <ns2:cik>0001355758</ns2:cik>
                    <ns2:ccc>XXXXXXXX</ns2:ccc>
                </ns2:filerCredentials>
            </ns2:filer>
            <ns2:liveTestFlag>LIVE</ns2:liveTestFlag>



        </ns2:filerInfo>
    </ns2:headerData>
    <ns2:formData>
        <ns2:issuerInfo>
            <ns2:issuerCik>0001597313</ns2:issuerCik>
            <ns2:issuerName>ViewRay, Inc.</ns2:issuerName>
            <ns2:secFileNumber>001-37725</ns2:secFileNumber>
            <ns2:issuerAddress>
                <com:street1>2 Thermo Fisher Way</com:street1>
                <com:city>Oakwood Village</com:city>
                <com:stateOrCountry>OH</com:stateOrCountry>
                <com:zipCode>44146</com:zipCode>
            </ns2:issuerAddress>
            <ns2:issuerContactPhone>1-440-703-3210</ns2:issuerContactPhone>
            <ns2:nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Caley M. Castelein</ns2:nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
            <ns2:relationshipsToIssuer>
                <ns2:relationshipToIssuer>Director</ns2:relationshipToIssuer>
            </ns2:relationshipsToIssuer>
        </ns2:issuerInfo>
        <ns2:securitiesInformation>
            <ns2:securitiesClassTitle>Common Stock</ns2:securitiesClassTitle>
            <ns2:brokerOrMarketmakerDetails>
                <ns2:name>Goldman Sachs &amp; Co. LLC</ns2:name>
                <ns2:address>
                    <com:street1>200 West Street</com:street1>
                    <com:city>New York</com:city>
                    <com:stateOrCountry>NY</com:stateOrCountry>
                    <com:zipCode>10282</com:zipCode>
                </ns2:address>
            </ns2:brokerOrMarketmakerDetails>
            <ns2:noOfUnitsSold>641033</ns2:noOfUnitsSold>
            <ns2:aggregateMarketValue>56667.32</ns2:aggregateMarketValue>
            <ns2:noOfUnitsOutstanding>183402038</ns2:noOfUnitsOutstanding>
            <ns2:approxSaleDate>07/19/2023</ns2:approxSaleDate>
            <ns2:securitiesExchangeName>NASD</ns2:securitiesExchangeName>
        </ns2:securitiesInformation>
        <ns2:securitiesToBeSold>
            <ns2:securitiesClassTitle>Common Stock</ns2:securitiesClassTitle>
            <ns2:acquiredDate>05/18/2017</ns2:acquiredDate>
            <ns2:natureOfAcquisitionTransaction>Acquired from a distribution by a partnership or other investment vehicle</ns2:natureOfAcquisitionTransaction>
            <ns2:nameOfPersonfromWhomAcquired>Revelation TWHVP, LLC</ns2:nameOfPersonfromWhomAcquired>
            <ns2:isGiftTransaction>N</ns2:isGiftTransaction>
            <ns2:amountOfSecuritiesAcquired>130104</ns2:amountOfSecuritiesAcquired>
            <ns2:paymentDate>05/18/2017</ns2:paymentDate>
            <ns2:natureOfPayment>None</ns2:natureOfPayment>
        </ns2:securitiesToBeSold>
        <ns2:securitiesToBeSold>
            <ns2:securitiesClassTitle>Common Stock</ns2:securitiesClassTitle>
            <ns2:acquiredDate>08/17/2018</ns2:acquiredDate>
            <ns2:natureOfAcquisitionTransaction>Acquired from a distribution by a partnership or other investment vehicle</ns2:natureOfAcquisitionTransaction>
            <ns2:nameOfPersonfromWhomAcquired>Revelation Kearny, LLC</ns2:nameOfPersonfromWhomAcquired>
            <ns2:isGiftTransaction>N</ns2:isGiftTransaction>
            <ns2:amountOfSecuritiesAcquired>510929</ns2:amountOfSecuritiesAcquired>
            <ns2:paymentDate>08/17/2018</ns2:paymentDate>
            <ns2:natureOfPayment>None</ns2:natureOfPayment>
        </ns2:securitiesToBeSold>
        <ns2:nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</ns2:nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <ns2:noticeSignature>
            <ns2:noticeDate>07/19/2023</ns2:noticeDate>
            <ns2:planAdoptionDates/>
            <ns2:signature>Goldman Sachs &amp; Co. LLC on behalf of Caley M. Castelein</ns2:signature>
        </ns2:noticeSignature>
    </ns2:formData>
</ns2:edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 4316}]
144
0001355758
XXXXXXXX
LIVE
0001597313
ViewRay, Inc.
001-37725
2 Thermo Fisher Way
Oakwood Village
OH
44146
1-440-703-3210
Caley M. Castelein
Director
Common Stock
Goldman Sachs & Co. LLC
200 West Street
New York
NY
10282
641033
56667.32
183402038
07/19/2023
NASD
Common Stock
05/18/2017
Acquired from a distribution by a partnership or other investment vehicle
Revelation TWHVP, LLC
N
130104
05/18/2017
None
Common Stock
08/17/2018
Acquired from a distribution by a partnership or other investment vehicle
Revelation Kearny, LLC
N
510929
08/17/2018
None
Y
07/19/2023
Goldman Sachs & Co. LLC on behalf of Caley M. Castelein