<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="ctmx-20261105.xsd" xlink:type="simple"/>
    <context id="C_f300463e-d090-4645-b0bb-ae84a44230b4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001501989</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:EntityAddressesAddressTypeAxis">dei:FormerAddressMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-11-05</startDate>
            <endDate>2026-11-05</endDate>
        </period>
    </context>
    <context id="C_492ae071-c9a7-4021-adf7-d231f4f8681a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001501989</identifier>
        </entity>
        <period>
            <startDate>2026-11-05</startDate>
            <endDate>2026-11-05</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_63c1ea38-52bc-4e86-b49e-d9bc05fb8187">0001501989</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_6c8a5cf6-8395-4310-9be2-feecf60616a8">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_b0a6e388-b2b6-40b4-aa78-c17140aacde6">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_b33dba6d-75ec-40fa-a91f-3d8332ad0d05">2026-11-05</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_4cc75d0b-1e1d-4216-8565-8c209f05cbf5">CytomX Therapeutics, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_b673b6e5-ae12-4771-86d7-251b6db327f3">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_79acc80a-c63c-4948-b6f8-354af340bd5b">001-37587</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_2a22ace3-d9de-4eab-9894-16d5b95a4afb">27-3521219</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_2dc02678-67ba-46f7-9392-1e6eaf335198">5959 Horton Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_bda4adbd-9a71-4dba-9f45-02d662f6e169">Suite 300</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_515a45de-37ce-4de0-971b-7ae8e08194e1">Emeryville</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_e620419b-d0b9-411d-b7bc-76f1c9fdf600">CA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_f53e87a0-5d9c-48f8-949f-c96ed0dab5d9">94608</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_e4157e5e-be00-4892-87f1-af966f2b247c">650</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_a26003b4-81df-41be-8985-fd3a0ea79a91">515-3185</dei:LocalPhoneNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_f300463e-d090-4645-b0bb-ae84a44230b4"
      id="F_bd023b87-8891-4251-93de-c337c58b0592">151 Oyster Point Blvd., Suite 400</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_f300463e-d090-4645-b0bb-ae84a44230b4"
      id="F_7eb493ea-e27b-4d29-aee6-f5029738ced6">South San Francisco</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_f300463e-d090-4645-b0bb-ae84a44230b4"
      id="F_0da7a274-ad45-4dc8-9865-4e4e59ac2cbd">CA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_f300463e-d090-4645-b0bb-ae84a44230b4"
      id="F_43b16f9e-cecd-4d36-b759-774a9dc4cc05">94080</dei:EntityAddressPostalZipCode>
    <dei:WrittenCommunications
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_468ffa63-0c76-43ea-9018-f3c2bb620fd8">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_9c942c13-96ed-45e4-8907-30491f8f8c40">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_3786bf9d-d7ef-4b84-92a4-2f9655b591ad">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_8cb9bf64-8e2c-46a7-8dad-9ef547840620">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_f7af32d2-afe0-4af3-adcf-582fd6152096">Common Stock, $0.00001 par value per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_e5ebe31f-e2d6-46de-a08c-ffee8e418b4d">CTMX</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_39736c23-8a9b-4f4f-a3ab-9b711132ff32">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_492ae071-c9a7-4021-adf7-d231f4f8681a"
      id="F_c84246d7-75fe-444b-bdf1-c1bf31e6d86f">false</dei:EntityEmergingGrowthCompany>
</xbrl>
