<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.10.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>312</ContextCount>
  <ElementCount>463</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>134</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>15</UnitCount>
  <MyReports>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETS</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/StatementCONSOLIDATEDBALANCESHEETSParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS AND COMPREHENSIVE (LOSS) INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFOPERATIONSANDCOMPREHENSIVELOSSINCOME</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF OPERATIONS AND COMPREHENSIVE (LOSS) INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/StatementCONSOLIDATEDSTATEMENTSOFCASHFLOWS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Disclosure - Description of Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureDescriptionOfBusiness</Role>
      <ShortName>Description of Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Disclosure - Basis of Presentation and Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureBasisOfPresentationAndSignificantAccountingPolicies</Role>
      <ShortName>Basis of Presentation and Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Disclosure - Consolidated Financial Statement Detail</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureConsolidatedFinancialStatementDetail</Role>
      <ShortName>Consolidated Financial Statement Detail</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Disclosure - Licensing and Other Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureLicensingAndOtherArrangements</Role>
      <ShortName>Licensing and Other Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Agenus Royalty Purchase Agreement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureAgenusRoyaltyPurchaseAgreement</Role>
      <ShortName>Agenus Royalty Purchase Agreement</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureFairValueMeasurements</Role>
      <ShortName>Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Dispositions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureDispositions</Role>
      <ShortName>Dispositions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Restructuring Charges</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureRestructuringCharges</Role>
      <ShortName>Restructuring Charges</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Long-Term Debt and Other Financings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureLongTermDebtAndOtherFinancings</Role>
      <ShortName>Long-Term Debt and Other Financings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Compensation and Other Benefit Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCompensationAndOtherBenefitPlans</Role>
      <ShortName>Compensation and Other Benefit Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Net (Loss) Income Per Share Available to Common Stockholders</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureNetLossIncomePerShareAvailableToCommonStockholders</Role>
      <ShortName>Net (Loss) Income Per Share Available to Common Stockholders</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Capital Stock</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCapitalStock</Role>
      <ShortName>Capital Stock</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Concentration of Risk, Segment and Geographic Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureConcentrationOfRiskSegmentAndGeographicInformation</Role>
      <ShortName>Concentration of Risk, Segment and Geographic Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Subsequent Event</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureSubsequentEvent</Role>
      <ShortName>Subsequent Event</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Quarterly Financial Information (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureQuarterlyFinancialInformationUnaudited</Role>
      <ShortName>Quarterly Financial Information (unaudited)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Basis of Presentation and Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureBasisOfPresentationAndSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Basis of Presentation and Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.xoma.com/20181231/taxonomy/role/DisclosureBasisOfPresentationAndSignificantAccountingPolicies</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Consolidated Financial Statement Detail (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureConsolidatedFinancialStatementDetailTables</Role>
      <ShortName>Consolidated Financial Statement Detail (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xoma.com/20181231/taxonomy/role/DisclosureConsolidatedFinancialStatementDetail</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureFairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xoma.com/20181231/taxonomy/role/DisclosureFairValueMeasurements</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100260 - Disclosure - Long-Term Debt and Other Financings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureLongTermDebtAndOtherFinancingsTables</Role>
      <ShortName>Long-Term Debt and Other Financings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xoma.com/20181231/taxonomy/role/DisclosureLongTermDebtAndOtherFinancings</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xoma.com/20181231/taxonomy/role/DisclosureIncomeTaxes</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Compensation and Other Benefit Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCompensationAndOtherBenefitPlansTables</Role>
      <ShortName>Compensation and Other Benefit Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xoma.com/20181231/taxonomy/role/DisclosureCompensationAndOtherBenefitPlans</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Net (Loss) Income Per Share Available to Common Stockholders (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureNetLossIncomePerShareAvailableToCommonStockholdersTables</Role>
      <ShortName>Net (Loss) Income Per Share Available to Common Stockholders (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xoma.com/20181231/taxonomy/role/DisclosureNetLossIncomePerShareAvailableToCommonStockholders</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Capital Stock (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCapitalStockTables</Role>
      <ShortName>Capital Stock (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xoma.com/20181231/taxonomy/role/DisclosureCapitalStock</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCommitmentsAndContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xoma.com/20181231/taxonomy/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Concentration of Risk, Segment and Geographic Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureConcentrationOfRiskSegmentAndGeographicInformationTables</Role>
      <ShortName>Concentration of Risk, Segment and Geographic Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xoma.com/20181231/taxonomy/role/DisclosureConcentrationOfRiskSegmentAndGeographicInformation</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Quarterly Financial Information (unaudited) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureQuarterlyFinancialInformationUnauditedTables</Role>
      <ShortName>Quarterly Financial Information (unaudited) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.xoma.com/20181231/taxonomy/role/DisclosureQuarterlyFinancialInformationUnaudited</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Basis of Presentation and Significant Accounting Policies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureBasisOfPresentationAndSignificantAccountingPoliciesAdditionalInformationDetails</Role>
      <ShortName>Basis of Presentation and Significant Accounting Policies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Consolidated Financial Statement Detail - Additional Information 1 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureConsolidatedFinancialStatementDetailAdditionalInformation1Details</Role>
      <ShortName>Consolidated Financial Statement Detail - Additional Information 1 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Consolidated Financial Statements Detail - Additional Information 2 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureConsolidatedFinancialStatementsDetailAdditionalInformation2Details</Role>
      <ShortName>Consolidated Financial Statements Detail - Additional Information 2 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Consolidated Financial Statement Detail - Property and Equipment, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureConsolidatedFinancialStatementDetailPropertyAndEquipmentNetDetails</Role>
      <ShortName>Consolidated Financial Statement Detail - Property and Equipment, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Consolidated Financial Statements Detail - Additional Information 3 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureConsolidatedFinancialStatementsDetailAdditionalInformation3Details</Role>
      <ShortName>Consolidated Financial Statements Detail - Additional Information 3 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Consolidated Financial Statements Detail - Accrued and Other Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureConsolidatedFinancialStatementsDetailAccruedAndOtherLiabilitiesDetails</Role>
      <ShortName>Consolidated Financial Statements Detail - Accrued and Other Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Licensing and Other Arrangements - Novartis - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureLicensingAndOtherArrangementsNovartisAdditionalInformationDetails</Role>
      <ShortName>Licensing and Other Arrangements - Novartis - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Licensing and Other Arrangements - Rezolute - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureLicensingAndOtherArrangementsRezoluteAdditionalInformationDetails</Role>
      <ShortName>Licensing and Other Arrangements - Rezolute - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100420 - Disclosure - Licensing and Other Arrangements - NIAID - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureLicensingAndOtherArrangementsNIAIDAdditionalInformationDetails</Role>
      <ShortName>Licensing and Other Arrangements - NIAID - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Licensing and Other Arrangements - Sale of Future Revenue Streams - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureLicensingAndOtherArrangementsSaleOfFutureRevenueStreamsAdditionalInformationDetails</Role>
      <ShortName>Licensing and Other Arrangements - Sale of Future Revenue Streams - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Agenus Royalty Purchase Agreement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureAgenusRoyaltyPurchaseAgreementDetails</Role>
      <ShortName>Agenus Royalty Purchase Agreement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xoma.com/20181231/taxonomy/role/DisclosureAgenusRoyaltyPurchaseAgreement</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Fair Value Measurements - Financial Assets and Liabilities Carried at Fair Value on Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureFairValueMeasurementsFinancialAssetsAndLiabilitiesCarriedAtFairValueOnRecurringBasisDetails</Role>
      <ShortName>Fair Value Measurements - Financial Assets and Liabilities Carried at Fair Value on Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Fair Value Measurements - Summary of Changes In Estimated Fair Value of Level 3 Financial Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureFairValueMeasurementsSummaryOfChangesInEstimatedFairValueOfLevel3FinancialAssetsDetails</Role>
      <ShortName>Fair Value Measurements - Summary of Changes In Estimated Fair Value of Level 3 Financial Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Fair Value Measurements - Estimated Fair Value of Equity Securities Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureFairValueMeasurementsEstimatedFairValueOfEquitySecuritiesAssumptionsDetails</Role>
      <ShortName>Fair Value Measurements - Estimated Fair Value of Equity Securities Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Fair Value Measurements - Outstanding Long Term Debt Carrying Amount and Estimated Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureFairValueMeasurementsOutstandingLongTermDebtCarryingAmountAndEstimatedFairValueDetails</Role>
      <ShortName>Fair Value Measurements - Outstanding Long Term Debt Carrying Amount and Estimated Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100490 - Disclosure - Dispositions - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureDispositionsAdditionalInformationDetails</Role>
      <ShortName>Dispositions - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Restructuring Charges - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureRestructuringChargesAdditionalInformationDetails</Role>
      <ShortName>Restructuring Charges - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Long-Term Debt and Other Financings - Silicon Valley Bank Loan Agreement - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureLongTermDebtAndOtherFinancingsSiliconValleyBankLoanAgreementAdditionalInformationDetails</Role>
      <ShortName>Long-Term Debt and Other Financings - Silicon Valley Bank Loan Agreement - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Long-Term Debt and Other Financings - Novartis Note - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureLongTermDebtAndOtherFinancingsNovartisNoteAdditionalInformationDetails</Role>
      <ShortName>Long-Term Debt and Other Financings - Novartis Note - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Long-Term Debt and Other Financings - Servier Loan Agreement - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureLongTermDebtAndOtherFinancingsServierLoanAgreementAdditionalInformationDetails</Role>
      <ShortName>Long-Term Debt and Other Financings - Servier Loan Agreement - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Long-Term Debt and Other Financings - Hercules Term Loan - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureLongTermDebtAndOtherFinancingsHerculesTermLoanAdditionalInformationDetails</Role>
      <ShortName>Long-Term Debt and Other Financings - Hercules Term Loan - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100550 - Disclosure - Long-Term Debt and Other Financings - Interest Expense and Amortization of Debt Issuance Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureLongTermDebtAndOtherFinancingsInterestExpenseAndAmortizationOfDebtIssuanceCostsDetails</Role>
      <ShortName>Long-Term Debt and Other Financings - Interest Expense and Amortization of Debt Issuance Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100560 - Disclosure - Income Taxes - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetails</Role>
      <ShortName>Income Taxes - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Income Taxes - Schedule of Provision for Income Taxes (All Current) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureIncomeTaxesScheduleOfProvisionForIncomeTaxesAllCurrentDetails</Role>
      <ShortName>Income Taxes - Schedule of Provision for Income Taxes (All Current) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Income Taxes - Reconciliation Between the Tax Provision Computed at the Federal Statutory Income Tax Rate and Actual Effective Income Tax Rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureIncomeTaxesReconciliationBetweenTaxProvisionComputedAtFederalStatutoryIncomeTaxRateAndActualEffectiveIncomeTaxRateDetails</Role>
      <ShortName>Income Taxes - Reconciliation Between the Tax Provision Computed at the Federal Statutory Income Tax Rate and Actual Effective Income Tax Rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>100590 - Disclosure - Income Taxes - Components of Net Deferred Tax Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureIncomeTaxesComponentsOfNetDeferredTaxAssetsDetails</Role>
      <ShortName>Income Taxes - Components of Net Deferred Tax Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>100600 - Disclosure - Income Taxes - Schedule of Unrecognized Tax Benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureIncomeTaxesScheduleOfUnrecognizedTaxBenefitsDetails</Role>
      <ShortName>Income Taxes - Schedule of Unrecognized Tax Benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>100610 - Disclosure - Compensation and Other Benefit Plans - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCompensationAndOtherBenefitPlansAdditionalInformationDetails</Role>
      <ShortName>Compensation and Other Benefit Plans - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>100620 - Disclosure - Compensation and Other Benefit Plans - Stock Option Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCompensationAndOtherBenefitPlansStockOptionActivityDetails</Role>
      <ShortName>Compensation and Other Benefit Plans - Stock Option Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>100630 - Disclosure - Compensation and Other Benefit Plans - Unvested RSU Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCompensationAndOtherBenefitPlansUnvestedRSUActivityDetails</Role>
      <ShortName>Compensation and Other Benefit Plans - Unvested RSU Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>100640 - Disclosure - Compensation and Other Benefit Plans - Weighted Average Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCompensationAndOtherBenefitPlansWeightedAverageAssumptionsDetails</Role>
      <ShortName>Compensation and Other Benefit Plans - Weighted Average Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>100650 - Disclosure - Compensation and Other Benefit Plans - Stock-based Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCompensationAndOtherBenefitPlansStockBasedCompensationExpenseDetails</Role>
      <ShortName>Compensation and Other Benefit Plans - Stock-based Compensation Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>100660 - Disclosure - Net (Loss) Income Per Share Available to Common Stockholders - Outstanding Securities Considered Anti-Dilutive (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureNetLossIncomePerShareAvailableToCommonStockholdersOutstandingSecuritiesConsideredAntiDilutiveDetails</Role>
      <ShortName>Net (Loss) Income Per Share Available to Common Stockholders - Outstanding Securities Considered Anti-Dilutive (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xoma.com/20181231/taxonomy/role/DisclosureNetLossIncomePerShareAvailableToCommonStockholdersTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Net (Loss) Income Per Share Available to Common Stockholders - Reconciliation of Numerator and Denominator Used in Calculation of Basic and Diluted Net Income (Loss) per Share Available to Common Stockholders (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureNetLossIncomePerShareAvailableToCommonStockholdersReconciliationOfNumeratorAndDenominatorUsedInCalculationOfBasicAndDilutedNetIncomeLossPerShareAvailableToCommonStockholdersDetails</Role>
      <ShortName>Net (Loss) Income Per Share Available to Common Stockholders - Reconciliation of Numerator and Denominator Used in Calculation of Basic and Diluted Net Income (Loss) per Share Available to Common Stockholders (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xoma.com/20181231/taxonomy/role/DisclosureNetLossIncomePerShareAvailableToCommonStockholdersTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Capital Stock - Rights Offerring 2018 - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCapitalStockRightsOfferring2018AdditionalInformationDetails</Role>
      <ShortName>Capital Stock - Rights Offerring 2018 - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>100690 - Disclosure - Capital Stock - Biotechnology Value Fund Financing 2017 - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCapitalStockBiotechnologyValueFundFinancing2017AdditionalInformationDetails</Role>
      <ShortName>Capital Stock - Biotechnology Value Fund Financing 2017 - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>100700 - Disclosure - Capital Stock - ATM Agreements - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCapitalStockATMAgreementsAdditionalInformationDetails</Role>
      <ShortName>Capital Stock - ATM Agreements - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>100710 - Disclosure - Capital Stock - Common Stock Purchase Agreement - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCapitalStockCommonStockPurchaseAgreementAdditionalInformationDetails</Role>
      <ShortName>Capital Stock - Common Stock Purchase Agreement - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>100720 - Disclosure - Capital Stock - Summary of Common Stock Warrants Outstanding (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCapitalStockSummaryOfCommonStockWarrantsOutstandingDetails</Role>
      <ShortName>Capital Stock - Summary of Common Stock Warrants Outstanding (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>100730 - Disclosure - Capital Stock - Common Stock Warrants - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCapitalStockCommonStockWarrantsAdditionalInformationDetails</Role>
      <ShortName>Capital Stock - Common Stock Warrants - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>100740 - Disclosure - Commitments and Contingencies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCommitmentsAndContingenciesAdditionalInformationDetails</Role>
      <ShortName>Commitments and Contingencies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>100750 - Disclosure - Commitments and Contingencies - Future Minimum Lease Commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureCommitmentsAndContingenciesFutureMinimumLeaseCommitmentsDetails</Role>
      <ShortName>Commitments and Contingencies - Future Minimum Lease Commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>100760 - Disclosure - Concentration of Risk, Segment and Geographic Information - Additional Information 1 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureConcentrationOfRiskSegmentAndGeographicInformationAdditionalInformation1Details</Role>
      <ShortName>Concentration of Risk, Segment and Geographic Information - Additional Information 1 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>100770 - Disclosure - Concentration of Risk, Segment and Geographic Information - Additional Information 2 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureConcentrationOfRiskSegmentAndGeographicInformationAdditionalInformation2Details</Role>
      <ShortName>Concentration of Risk, Segment and Geographic Information - Additional Information 2 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>100780 - Disclosure - Concentration of Risk, Segment and Geographic Information - Revenue by Geographical Region (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureConcentrationOfRiskSegmentAndGeographicInformationRevenueByGeographicalRegionDetails</Role>
      <ShortName>Concentration of Risk, Segment and Geographic Information - Revenue by Geographical Region (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>100790 - Disclosure - Subsequent Event - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureSubsequentEventAdditionalInformationDetails</Role>
      <ShortName>Subsequent Event - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>100800 - Disclosure - Quarterly Financial Information (unaudited) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureQuarterlyFinancialInformationUnauditedDetails</Role>
      <ShortName>Quarterly Financial Information (unaudited) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xoma.com/20181231/taxonomy/role/DisclosureQuarterlyFinancialInformationUnauditedTables</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="xoma-20181231.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>100810 - Disclosure - Quarterly Financial Information (unaudited) (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.xoma.com/20181231/taxonomy/role/DisclosureQuarterlyFinancialInformationUnauditedParentheticalDetails</Role>
      <ShortName>Quarterly Financial Information (unaudited) (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.xoma.com/20181231/taxonomy/role/DisclosureQuarterlyFinancialInformationUnauditedTables</ParentRole>
      <Position>82</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>xoma-20181231.xml</File>
    <File>xoma-20181231.xsd</File>
    <File>xoma-20181231_cal.xml</File>
    <File>xoma-20181231_def.xml</File>
    <File>xoma-20181231_lab.xml</File>
    <File>xoma-20181231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://fasb.org/srt/2018-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/stpr/2018-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/country/2017-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2018-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2018-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
