<?xml version="1.0" encoding="us-ascii"?><InstanceReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Version>2.2.0.25</Version><hasSegments>false</hasSegments><hasScenarios>false</hasScenarios><ReportLongName>0213 - Disclosure - Major customers and derivative counterparties</ReportLongName><DisplayLabelColumn>true</DisplayLabelColumn><ShowElementNames>false</ShowElementNames><RoundingOption /><HasEmbeddedReports>false</HasEmbeddedReports><Columns><Column><Id>1</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><LabelColumn>false</LabelColumn><CurrencyCode>USD</CurrencyCode><FootnoteIndexer /><hasSegments>false</hasSegments><hasScenarios>false</hasScenarios><MCU><KeyName>1/1/2010 - 12/31/2010
USD ($)

USD ($) / shares

</KeyName><CurrencySymbol>$</CurrencySymbol><contextRef><ContextID>Jan-01-2010_Dec-31-2010</ContextID><EntitySchema>http://www.sec.gov/CIK</EntitySchema><EntityValue>0001358071</EntityValue><PeriodDisplayName /><PeriodType>duration</PeriodType><PeriodStartDate>2010-01-01T00:00:00</PeriodStartDate><PeriodEndDate>2010-12-31T00:00:00</PeriodEndDate><Segments /><Scenarios /></contextRef><UPS><UnitProperty><UnitID>USD</UnitID><UnitType>Standard</UnitType><StandardMeasure><MeasureSchema>http://www.xbrl.org/2003/iso4217</MeasureSchema><MeasureValue>USD</MeasureValue><MeasureNamespace>iso4217</MeasureNamespace></StandardMeasure><Scale>0</Scale></UnitProperty><UnitProperty><UnitID>USDEPS</UnitID><UnitType>Divide</UnitType><NumeratorMeasure><MeasureSchema>http://www.xbrl.org/2003/iso4217</MeasureSchema><MeasureValue>USD</MeasureValue><MeasureNamespace>iso4217</MeasureNamespace></NumeratorMeasure><DenominatorMeasure><MeasureSchema>http://www.xbrl.org/2003/instance</MeasureSchema><MeasureValue>shares</MeasureValue><MeasureNamespace>xbrli</MeasureNamespace></DenominatorMeasure><Scale>0</Scale></UnitProperty><UnitProperty><UnitID>Shares</UnitID><UnitType>Standard</UnitType><StandardMeasure><MeasureSchema>http://www.xbrl.org/2003/instance</MeasureSchema><MeasureValue>shares</MeasureValue><MeasureNamespace>xbrli</MeasureNamespace></StandardMeasure><Scale>0</Scale></UnitProperty></UPS><CurrencyCode>USD</CurrencyCode><OriginalCurrencyCode>USD</OriginalCurrencyCode></MCU><CurrencySymbol>$</CurrencySymbol><Labels><Label Id="1" Label="12 Months Ended" /><Label Id="2" Label="Dec. 31, 2010" /></Labels></Column></Columns><Rows><Row><Id>2</Id><IsAbstractGroupTitle>true</IsAbstractGroupTitle><Level>0</Level><ElementName>cxo_MajorCustomersAndDerivativeCounterpartiesAbstract</ElementName><ElementPrefix>cxo</ElementPrefix><IsBaseElement>false</IsBaseElement><BalanceType>na</BalanceType><PeriodType>duration</PeriodType><ShortDefinition>Major customers and derivative counterparties.</ShortDefinition><IsReportTitle>false</IsReportTitle><IsSegmentTitle>false</IsSegmentTitle><IsSubReportEnd>false</IsSubReportEnd><IsCalendarTitle>false</IsCalendarTitle><IsTuple>false</IsTuple><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><PreferredLabelRole /><FootnoteIndexer /><Cells><Cell><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText /><NonNumericTextHeader /><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat><hasSegments>false</hasSegments><hasScenarios>false</hasScenarios></Cell></Cells><OriginalInstanceReportColumns /><Unit>Other</Unit><ElementDataType>xbrli:stringItemType</ElementDataType><SimpleDataType>string</SimpleDataType><ElementDefenition>Major customers and derivative counterparties.</ElementDefenition><IsTotalLabel>false</IsTotalLabel><IsEPS>false</IsEPS><Label>Major customers and derivative counterparties [Abstract]</Label></Row><Row><Id>3</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><Level>0</Level><ElementName>cxo_MajorCustomersAndDerivativeCounterpartiesTextBlock</ElementName><ElementPrefix>cxo</ElementPrefix><IsBaseElement>false</IsBaseElement><BalanceType>na</BalanceType><PeriodType>duration</PeriodType><ShortDefinition>Major customers and derivative counterparties.</ShortDefinition><IsReportTitle>false</IsReportTitle><IsSegmentTitle>false</IsSegmentTitle><IsSubReportEnd>false</IsSubReportEnd><IsCalendarTitle>false</IsCalendarTitle><IsTuple>false</IsTuple><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><PreferredLabelRole>verboselabel</PreferredLabelRole><FootnoteIndexer /><Cells><Cell><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText>&lt;!--DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" --&gt;
   &lt;!-- Begin Block Tagged Note 13 - cxo:MajorCustomersAndDerivativeCounterpartiesTextBlock--&gt;
   &lt;div style="margin-left: 0%"&gt;
   &lt;div style="margin-top: 12pt; font-size: 1pt"&gt;&amp;#160;
   &lt;/div&gt;
   &lt;table width="100%" border="0" cellpadding="0" cellspacing="0" style="font-size: 10pt; font-family: Arial, Helvetica; color: #000000; background: transparent; text-align: left"&gt;
   &lt;tr&gt;
       &lt;td width="9%"&gt;&lt;/td&gt;
       &lt;td width="91%"&gt;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr valign="top"&gt;
       &lt;td&gt;
       &lt;b&gt;&lt;font style="font-family: 'Times New Roman', Times"&gt;Note&amp;#160;M.&amp;#160;&amp;#160;&lt;/font&gt;&lt;/b&gt;
   &lt;/td&gt;
       &lt;td&gt;
       &lt;b&gt;&lt;i&gt;&lt;font style="font-family: 'Times New Roman', Times"&gt;Major
       customers and derivative counterparties&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;
   &lt;/td&gt;
   &lt;/tr&gt;
   &lt;/table&gt;
   &lt;div style="margin-top: 6pt; font-size: 1pt"&gt;&amp;#160;
   &lt;/div&gt;
   &lt;div align="left" style="margin-left: 0%; margin-right: 0%; text-indent: 4%; font-size: 10pt; font-family: 'Times New Roman', Times; color: #000000; background: transparent"&gt;
       &lt;i&gt;Sales to major customers.&lt;/i&gt;&amp;#160;&amp;#160;The Company&amp;#8217;s
       share of oil and natural gas production is sold to various
       purchasers. The Company is of the opinion that the loss of any
       one purchaser would not have a material adverse effect on the
       ability of the Company to sell its oil and natural gas
       production.
   &lt;/div&gt;
   &lt;div style="margin-top: 6pt; font-size: 1pt"&gt;&amp;#160;
   &lt;/div&gt;
   &lt;div align="left" style="margin-left: 0%; margin-right: 0%; text-indent: 4%; font-size: 10pt; font-family: 'Times New Roman', Times; color: #000000; background: transparent"&gt;
       The following purchasers individually accounted for ten percent
       or more of the consolidated oil and natural gas revenues,
       including the revenues from discontinued operations and the
       results of commodity hedges, during the years ended
       December&amp;#160;31, 2010, 2009 and 2008:
   &lt;/div&gt;
   &lt;div style="margin-top: 6pt; font-size: 1pt"&gt;&amp;#160;
   &lt;/div&gt;
   &lt;table border="0" width="100%" align="center" cellpadding="0" cellspacing="0" style="font-size: 10pt; font-family: 'Times New Roman', Times; color: #000000; background: transparent; text-align: left"&gt;
   &lt;!-- Table Width Row BEGIN --&gt;
   &lt;tr style="font-size: 1pt" valign="bottom"&gt;
       &lt;td width="79%"&gt;&amp;#160;&lt;/td&gt;&lt;!-- colindex=01 type=maindata --&gt;
       &lt;td width="2%"&gt;&amp;#160;&lt;/td&gt;&lt;!-- colindex=02 type=gutter --&gt;
       &lt;td width="1%" align="right"&gt;&amp;#160;&lt;/td&gt;&lt;!-- colindex=02 type=lead --&gt;
       &lt;td width="1%" align="right"&gt;&amp;#160;&lt;/td&gt;&lt;!-- colindex=02 type=body --&gt;
       &lt;td width="1%" align="left"&gt;&amp;#160;&lt;/td&gt;&lt;!-- colindex=02 type=hang1 --&gt;
       &lt;td width="5%"&gt;&amp;#160;&lt;/td&gt;&lt;!-- colindex=03 type=gutter --&gt;
       &lt;td width="1%" align="right"&gt;&amp;#160;&lt;/td&gt;&lt;!-- colindex=03 type=lead --&gt;
       &lt;td width="1%" align="right"&gt;&amp;#160;&lt;/td&gt;&lt;!-- colindex=03 type=body --&gt;
       &lt;td width="1%" align="left"&gt;&amp;#160;&lt;/td&gt;&lt;!-- colindex=03 type=hang1 --&gt;
       &lt;td width="5%"&gt;&amp;#160;&lt;/td&gt;&lt;!-- colindex=04 type=gutter --&gt;
       &lt;td width="1%" align="right"&gt;&amp;#160;&lt;/td&gt;&lt;!-- colindex=04 type=lead --&gt;
       &lt;td width="1%" align="right"&gt;&amp;#160;&lt;/td&gt;&lt;!-- colindex=04 type=body --&gt;
       &lt;td width="1%" align="left"&gt;&amp;#160;&lt;/td&gt;&lt;!-- colindex=04 type=hang1 --&gt;
   &lt;/tr&gt;
   &lt;!-- Table Width Row END --&gt;
   &lt;!-- TableOutputHead --&gt;
   &lt;tr style="font-size: 8pt" valign="bottom" align="center"&gt;
   &lt;td nowrap="nowrap" align="center" valign="bottom"&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td colspan="11" align="center" valign="bottom" style="border-bottom: 1px solid #000000"&gt;
       &lt;b&gt;Years Ended December&amp;#160;31,&lt;/b&gt;
   &lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr style="font-size: 8pt" valign="bottom" align="center"&gt;
   &lt;td nowrap="nowrap" align="center" valign="bottom"&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td colspan="3" nowrap="nowrap" align="center" valign="bottom" style="border-bottom: 1px solid #000000"&gt;
       &lt;b&gt;2010&lt;/b&gt;
   &lt;/td&gt;
   &lt;td&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td colspan="3" nowrap="nowrap" align="center" valign="bottom" style="border-bottom: 1px solid #000000"&gt;
       &lt;b&gt;2009&lt;/b&gt;
   &lt;/td&gt;
   &lt;td&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td colspan="3" nowrap="nowrap" align="center" valign="bottom" style="border-bottom: 1px solid #000000"&gt;
       &lt;b&gt;2008&lt;/b&gt;
   &lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr style="line-height: 3pt; font-size: 1pt"&gt;
   &lt;td&gt;&amp;#160;
   &lt;/td&gt;
   &lt;/tr&gt;
   &lt;!-- TableOutputBody --&gt;
   &lt;tr valign="bottom" style="background: #cceeff"&gt;
   &lt;td align="left" valign="bottom"&gt;
   &lt;div style="text-indent: -10pt; margin-left: 10pt"&gt;
       Navajo Refining Company, L.P.&amp;#160;
   &lt;/div&gt;
   &lt;/td&gt;
   &lt;td&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
       32
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="left" valign="bottom"&gt;
       %
   &lt;/td&gt;
   &lt;td&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
       38
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="left" valign="bottom"&gt;
       %
   &lt;/td&gt;
   &lt;td&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
       59
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="left" valign="bottom"&gt;
       %
   &lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr valign="bottom"&gt;
   &lt;td nowrap="nowrap" align="left" valign="bottom"&gt;
   &lt;div style="text-indent: -10pt; margin-left: 10pt"&gt;
       ConocoPhillips Company
   &lt;/div&gt;
   &lt;/td&gt;
   &lt;td&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
       14
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="left" valign="bottom"&gt;
       %
   &lt;/td&gt;
   &lt;td&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
       11
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="left" valign="bottom"&gt;
       %
   &lt;/td&gt;
   &lt;td&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
       7
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="left" valign="bottom"&gt;
       %
   &lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr valign="bottom" style="background: #cceeff"&gt;
   &lt;td align="left" valign="bottom"&gt;
   &lt;div style="text-indent: -10pt; margin-left: 10pt"&gt;
       DCP Midstream, LP
   &lt;/div&gt;
   &lt;/td&gt;
   &lt;td&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
       12
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="left" valign="bottom"&gt;
       %
   &lt;/td&gt;
   &lt;td&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
       13
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="left" valign="bottom"&gt;
       %
   &lt;/td&gt;
   &lt;td&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
       18
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="left" valign="bottom"&gt;
       %
   &lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr valign="bottom"&gt;
   &lt;td align="left" valign="bottom"&gt;
   &lt;div style="text-indent: -10pt; margin-left: 10pt"&gt;
       Plains Marketing and Transportation Inc.&amp;#160;
   &lt;/div&gt;
   &lt;/td&gt;
   &lt;td&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
       11
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="left" valign="bottom"&gt;
       %
   &lt;/td&gt;
   &lt;td&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
       &amp;#8212;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="left" valign="bottom"&gt;
       %
   &lt;/td&gt;
   &lt;td&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
   &amp;#160;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="right" valign="bottom"&gt;
       &amp;#8212;
   &lt;/td&gt;
   &lt;td nowrap="nowrap" align="left" valign="bottom"&gt;
       %
   &lt;/td&gt;
   &lt;/tr&gt;
   &lt;/table&gt;
   &lt;div align="left" style="margin-left: 0%; margin-right: 0%; text-indent: 0%; font-size: 10pt; font-family: 'Times New Roman', Times; color: #000000; background: transparent"&gt;
   &lt;/div&gt;
   &lt;div style="margin-top: 6pt; font-size: 1pt"&gt;&amp;#160;
   &lt;/div&gt;
   &lt;div align="left" style="margin-left: 0%; margin-right: 0%; text-indent: 4%; font-size: 10pt; font-family: 'Times New Roman', Times; color: #000000; background: transparent"&gt;
       At December&amp;#160;31, 2010, the Company had receivables from
       Navajo Refining Company, L.P., ConocoPhillips Company, DCP
       Midstream, LP and Plains Marketing and Transportation Inc. of
       $38.6&amp;#160;million, $25.0&amp;#160;million, $15.7&amp;#160;million and
       $9.3&amp;#160;million, respectively, which are reflected in Accounts
       receivable&amp;#160;&amp;#8212; oil and natural gas in the accompanying
       consolidated balance sheet.
   &lt;/div&gt;
   &lt;div style="margin-top: 6pt; font-size: 1pt"&gt;&amp;#160;
   &lt;/div&gt;
   &lt;div align="left" style="margin-left: 0%; margin-right: 0%; text-indent: 4%; font-size: 10pt; font-family: 'Times New Roman', Times; color: #000000; background: transparent"&gt;
       &lt;i&gt;Derivative counterparties.&lt;/i&gt;&amp;#160;&amp;#160;The Company uses
       credit and other financial criteria to evaluate the credit
       standing of, and to select, counterparties to its derivative
       instruments. The Company&amp;#8217;s credit facility agreements
       require that the senior unsecured debt ratings of the
       Company&amp;#8217;s derivative counterparties be (i)&amp;#160;not less
       than either A- by Standard&amp;#160;&amp;#038; Poor&amp;#8217;s Rating Group
       rating system or A3 by Moody&amp;#8217;s Investors Service, Inc.
       rating system or (ii)&amp;#160;a
   lender to the Company&amp;#8217;s credit facility. At
       December&amp;#160;31, 2010 and 2009, the counterparties with whom
       the Company had outstanding derivative contracts met or exceeded
       the required ratings. Although the Company does not obtain
       collateral or otherwise secure the fair value of its derivative
       instruments, management believes the associated credit risk is
       mitigated by the Company&amp;#8217;s credit risk policies and
       procedures and by the credit rating requirements of the
       Company&amp;#8217;s credit facility agreements.
   &lt;/div&gt;
   &lt;/div&gt;
</NonNumbericText><NonNumericTextHeader>&lt;!--DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" --&gt;
   &lt;!-- Begin Block Tagged Note</NonNumericTextHeader><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat><hasSegments>false</hasSegments><hasScenarios>false</hasScenarios></Cell></Cells><OriginalInstanceReportColumns /><Unit>Other</Unit><ElementDataType>us-types:textBlockItemType</ElementDataType><SimpleDataType>string</SimpleDataType><ElementDefenition>Major customers and derivative counterparties.</ElementDefenition><ElementReferences>No authoritative reference available.</ElementReferences><IsTotalLabel>false</IsTotalLabel><IsEPS>false</IsEPS><Label>Major customers and derivative counterparties</Label></Row></Rows><Footnotes /><NumberOfCols>1</NumberOfCols><NumberOfRows>2</NumberOfRows><ReportName>Major customers and derivative counterparties</ReportName><MonetaryRoundingLevel>UnKnown</MonetaryRoundingLevel><SharesRoundingLevel>UnKnown</SharesRoundingLevel><PerShareRoundingLevel>UnKnown</PerShareRoundingLevel><ExchangeRateRoundingLevel>UnKnown</ExchangeRateRoundingLevel><HasCustomUnits>false</HasCustomUnits><SharesShouldBeRounded>true</SharesShouldBeRounded></InstanceReport>
