<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2021"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="virx-20220915.xsd" xlink:type="simple"/>
    <context id="duration_2022-09-15_to_2022-09-15">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001061027</identifier>
        </entity>
        <period>
            <startDate>2022-09-15</startDate>
            <endDate>2022-09-15</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="duration_2022-09-15_to_2022-09-15">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="duration_2022-09-15_to_2022-09-15"
      id="Hidden_dei_EntityCentralIndexKey">0001061027</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="duration_2022-09-15_to_2022-09-15">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="duration_2022-09-15_to_2022-09-15">2022-09-15</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="duration_2022-09-15_to_2022-09-15">VIRACTA THERAPEUTICS, INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="duration_2022-09-15_to_2022-09-15">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="duration_2022-09-15_to_2022-09-15">000-51531</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="duration_2022-09-15_to_2022-09-15">94-3295878</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="duration_2022-09-15_to_2022-09-15">2533 S Coast Hwy 101</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="duration_2022-09-15_to_2022-09-15">Suite 210</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="duration_2022-09-15_to_2022-09-15">Cardiff</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="duration_2022-09-15_to_2022-09-15">CA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="duration_2022-09-15_to_2022-09-15">92007</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="duration_2022-09-15_to_2022-09-15">(858)</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="duration_2022-09-15_to_2022-09-15">400-8470</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="duration_2022-09-15_to_2022-09-15">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="duration_2022-09-15_to_2022-09-15">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="duration_2022-09-15_to_2022-09-15">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="duration_2022-09-15_to_2022-09-15">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle contextRef="duration_2022-09-15_to_2022-09-15">Common Stock, $0.0001 par value</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="duration_2022-09-15_to_2022-09-15">VIRX</dei:TradingSymbol>
    <dei:SecurityExchangeName contextRef="duration_2022-09-15_to_2022-09-15">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="duration_2022-09-15_to_2022-09-15">false</dei:EntityEmergingGrowthCompany>
</xbrl>
