What is Pairs Trading?
Reviewed by Karthikeyan Anbarasan (Founder, TradeLyser) · Updated 19 Oct 2026 · Editorial policy
How a pair is built
- Choose two instruments with a shared economic driver, for example two private banks or two IT services firms.
- Track their relationship over a long window: the price ratio, or a spread A − β × B where β comes from a regression.
- Measure how far today’s ratio is from its average in standard deviations, the z-score.
- Enter when the z-score passes a threshold such as ±2: sell the rich leg, buy the cheap leg, in equal rupee value.
- 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).
| Outcome | Bank A | Bank B | Short A | Long B | Net |
|---|---|---|---|---|---|
| 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
Cointegration
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
| Context | Value | Reading |
|---|---|---|
| Same sector, long shared history, stop on the spread | Defined pair | The loss is capped if the relationship breaks |
| Two stocks picked only for a high recent correlation | Weak pair | Correlation can be high while the gap between them drifts steadily |
| No stop because the trade is “hedged” | Unbounded risk | A 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.