Strategies

What is Pairs Trading?

Reviewed by Karthikeyan Anbarasan (Founder, TradeLyser) · Updated 19 Oct 2026 · Editorial policy

DefinitionPairs trading buys one instrument and sells a related one at the same time, betting that the gap between them returns to its usual level rather than on the direction of the market. If two bank stocks usually trade at a price ratio of 1.20 and it widens to 1.25, a pairs trader sells the expensive one and buys the cheap one, aiming to profit as the ratio returns to 1.20 (illustrative).
Formula
Ratio = Price A ÷ Price B; z-score = (Current ratio − Average ratio) ÷ Standard deviation of the ratio
Example
(1.25 − 1.20) ÷ 0.025 = +2.0, so sell A and buy B

How a pair is built

  1. Choose two instruments with a shared economic driver, for example two private banks or two IT services firms.
  2. Track their relationship over a long window: the price ratio, or a spread A − β × B where β comes from a regression.
  3. Measure how far today’s ratio is from its average in standard deviations, the z-score.
  4. Enter when the z-score passes a threshold such as ±2: sell the rich leg, buy the cheap leg, in equal rupee value.
  5. Exit when the z-score returns near zero, and stop out at a wider level such as ±3.5 or after a set time.

Because one leg is long and the other short, a move in the whole market affects both. What remains is the relative move between the two, which is what the trade is about.

A worked example with two bank stocks

Illustrative. Bank A trades at ₹1,250 and Bank B at ₹1,000, a ratio of 1.25. Over the past year the ratio has averaged 1.20 with a standard deviation of 0.025, so the z-score is +2.0. The trader sells ₹5,00,000 of A (400 shares) and buys ₹5,00,000 of B (500 shares).

OutcomeBank ABank BShort ALong BNet
Ratio back to 1.20, market flat₹1,230₹1,025+₹8,000+₹12,500+₹20,500
Ratio back to 1.20, market falls₹1,140₹950+₹44,000−₹25,000+₹19,000
Ratio widens to 1.2875 (stop, z = +3.5)₹1,287.50₹1,000−₹15,000₹0−₹15,000

The first two rows end at the same ratio and make almost the same money, even though the market fell 5% to 9% in the second. That is the point of the structure. The third row is the risk: the relationship moves further against you, and nothing about the hedge stops it.

Correlation is not enough

Correlation

Do the two move in the same direction day to day? Two stocks can be highly correlated and still drift apart steadily over months.
Measures: co-movement of returns

Cointegration

Does the gap between them keep returning to a stable level? This is what a pairs trade needs, and it can break when one company’s story changes.
Measures: stability of the spread
Common mistake
Treating a pair as risk-free because it is hedged. Results, a merger, a regulatory action or a rating change can permanently reprice one leg. Set the spread stop and a maximum holding time before entry.
For traders in India
Retail short sales in the cash segment must be closed the same day, so pairs held overnight usually use stock futures for the short leg, or both legs. Stock futures come in fixed lot sizes, so equal rupee legs are rarely exact; record the actual notional of each. F&O stocks enter a ban period when open interest crosses 95% of the market-wide position limit, which stops fresh positions. Stock F&O expire on the last Tuesday of the month, so longer trades need a roll. Whether margin is reduced for the hedge depends on your broker.

Logging a pair in a journal

  • Log both legs under one trade ID, with the ratio and z-score at entry and exit.
  • Report P&L for the pair as a whole, after charges on both legs; each leg alone is misleading.
  • Record holding time. A pair that takes far longer than usual to revert may be one where the relationship has changed.
  • Review stopped-out pairs each quarter to see whether a news event caused the break.

Reference guide

ContextValueReading
Same sector, long shared history, stop on the spreadDefined pairThe loss is capped if the relationship breaks
Two stocks picked only for a high recent correlationWeak pairCorrelation can be high while the gap between them drifts steadily
No stop because the trade is “hedged”Unbounded riskA merger, results or a downgrade can move one leg for good

Questions

What is pairs trading?

Buying one instrument and selling a related one at the same time, betting on the gap between them rather than on market direction. Profit comes when the gap returns to its usual level.

How do you calculate the entry signal in pairs trading?

Take the price ratio or spread, then its z-score: (current − average) ÷ standard deviation over a lookback. Many rules enter at ±2 and exit near 0; settings vary.

Can I do pairs trading in the Indian cash market?

Only intraday, because retail short sales in cash must be squared off the same day. Overnight pairs usually use stock futures, which come in fixed lot sizes and expire monthly.

Is pairs trading risk-free?

No. The market risk is reduced, but the risk that the two stocks drift apart for good remains. A stop on the spread and a maximum holding time are essential parts of the setup.

Related terms