
What Is Pairs Trading? A Market-Neutral Strategy Guide
Discover how a market-neutral pair strategy captures statistical divergence and mean reversion. Read the full guide.
By Trader Faculty Team
Direct Answer
Pairs trading is a quantitative relative-value strategy that buys an asset that looks undervalued while shorting (selling borrowed shares of) a related asset that looks overvalued. Instead of betting on the market's overall direction, it aims to profit when the price spread between the two assets returns to its historical average. It carries real risks, including a pair that never reconverges.
Pairs trading is a market-neutral strategy. It matches a long position (a bet on a rise) in an undervalued-looking asset with a short position (a bet on a fall) in a historically linked asset that looks overvalued. The two positions are in roughly equal dollar amounts.
Most traders spend their days trying to predict where the broader market will go next, only to get caught in sudden swings and sharp reversals. Relative-value systems try to sidestep that by reducing broad market exposure and focusing on the price gap between two instruments. It's an educational overview, not a recommendation.
This guide covers how pairs trading works and why cointegration (a lasting statistical link between two prices) matters more than simple correlation. It also shows how to track price spreads and how to manage the risks of holding two positions at once.
Quick Takeaways
- This strategy aims to profit from the price relationship between two assets rather than the overall direction of the market.
- High correlation isn't enough on its own; the spread between the two assets also needs to be stationary (it keeps returning to an average) and cointegrated.
- Traders use normalized metrics like the z-score (how far the spread sits from its average, in standard deviations) to spot when a spread looks stretched and may revert.
- Divergence risk, borrowing costs, and execution lag are the main threats to an open pair trade.
What Is Pairs Trading and How Does It Work?
This approach means you buy one asset and sell another related asset short at the same time. The core idea is simple: you find two securities that share a strong historical price relationship. When their prices drift apart, you buy the cheaper one and short the more expensive one (borrow it and sell it), expecting the gap to close.
Because you hold offsetting long and short positions, your result depends less on whether the broad market rises or falls. If a whole sector drops, the gain on your short is meant to offset the loss on your long, but the offset is rarely perfect. If the spread narrows back to its normal range, the position can produce a net profit.
Institutions take this concept further through statistical arbitrage and pairs trading models. Instead of tracking a single pair manually, quantitative desks (teams that use math-driven models) monitor many pairs across equities, commodities, and derivatives. Some retail traders try similar ideas in liquid markets, sometimes using futures trading strategies to trade cross-commodity or index spreads, though costs and margin still apply.
Cointegration vs. Correlation: The Mathematical Foundation

A common mistake among new quantitative traders is confusing correlation with cointegration. Correlation measures whether two assets tend to move up or down together. Cointegration measures whether the spread between two assets stays anchored to a steady average over time.
Two high-growth technology stocks might show a 0.90 correlation (where 1.0 is perfect) over six months simply because the whole market is rising. If one company suffers a serious business failure, that correlation can break, and the prices may drift apart for good. By contrast, pairs trading and cointegration focus on stationarity. A stationary spread tends to return to its historical average, no matter how far the two prices wander apart temporarily, though that's not guaranteed to hold in the future.
To track this relationship, you calculate the spread, adjusting for the relative size of each asset's moves:
Spread = Price A - (Hedge Ratio × Price B)
Here, Price A and Price B are the closing prices of the two assets. The hedge ratio is the number of units of Asset B you trade against each unit of Asset A to keep the exposure balanced. Analysts often check that the spread is stationary with statistical tests like the Augmented Dickey-Fuller test.
Pairs Trading Pair Selection Methods
Choosing the right assets takes both statistical testing and sound economic logic. Relying only on data screening can produce random matches that fall apart once real money is at risk.
Traders commonly use three pairs trading pair selection methods:
- The Distance Method: This tracks the normalized historical price distance between pairs in the same sector. Pairs that have moved closely together are flagged when their distance widens beyond its usual range.
- Cointegration and Linear Regression: Traders run regressions (statistical fits) on historical prices to estimate the hedge ratio and test whether the resulting spread tends to revert.
- Fundamental Economic Linkage: Traders pick assets tied by real-world economics. Examples include direct rivals (such as competing payment networks), raw materials and their refined products (such as crude oil and gasoline, a pair often called a crack spread), or related equity index contracts.
How to Trade the Spread: Entry, Exit, and Z-Scores
Once you calculate the spread, you need an objective way to tell when it has stretched too far. Raw price differences can mislead because price levels and volatility change over time. Many traders standardize the spread into a statistical measure called a z-score.
A z-score measures how many standard deviations (a measure of typical variation) the current spread sits from its rolling average (an average that updates with new data):
Z-Score = (Current Spread - Mean Spread) / Standard Deviation of Spread
In this formula, Current Spread is the live price gap, Mean Spread is the rolling historical average, and Standard Deviation is the typical size of the spread's swings over the same window.
A rule-based system might use clear statistical triggers. The thresholds below are common examples for study, not recommendations:
| Step | Z-Score Level | Market Action |
|---|---|---|
| Entry Signal | +2.0 or -2.0 | Enter short the upper asset and long the lower asset when the spread stretches two standard deviations from the mean. |
| Profit Target | 0.0 | Close both legs when the spread reverts to its historical mean. |
| Stop-Loss | +3.5 or -3.5 | Exit if the spread keeps widening, which may signal a structural breakdown. |
Tracking thresholds like these gives you objective rules for execution, which can reduce emotional second-guessing. They don't guarantee that a spread will revert.
Core Risks and Limitations of Pairs Trading
Market-neutral doesn't mean risk-free. Holding long and short positions at once brings operational and market challenges that directional trading doesn't face.
The primary danger is a structural break. When a pair decouples for good because of a merger, bankruptcy, fraud, or a fundamental change in the business, the spread may never revert. Without a firm stop-loss, a diverging pair can produce large losses on the short leg while the long leg fails to keep pace. Losses on a short position can exceed your initial investment.
Execution friction also erodes profitability:
- Borrowing Fees and Short Availability: You must borrow shares from your broker to short an asset. Hard-to-borrow stocks can carry ongoing borrow fees that eat into returns while you wait for the spread to close.
- Margin Requirements: You need to post margin (collateral) on both positions at the same time, which ties up trading capital.
- Leg Risk: When entering or exiting, liquidity differences can cause one order to fill while the other slips, which leaves you briefly exposed to the market in one direction.
Conclusion
Pairs trading shifts your focus from guessing market direction to looking for temporary pricing gaps between connected assets. Long-term success depends on respecting cointegration over simple correlation, accounting for borrowing and execution costs, and cutting trades quickly when a spread breaks down. Relative-value ideas can add a disciplined framework alongside other trading strategies. Every trade carries the risk of losing capital, and past performance doesn't guarantee future results, so test your models on historical data and use strict risk limits before risking real money.
Frequently Asked Questions
Is pairs trading risk-free?
No trading strategy is risk-free. This approach reduces overall market direction exposure, but it carries divergence risk, where a fundamental shift causes the spread to widen indefinitely instead of reverting.
What is the difference between pairs trading and simple correlation?
Correlation tracks whether two assets move in the same direction over time, but correlated prices can drift apart for good. Cointegration measures whether the price spread keeps returning to a stable average over long periods.
How do you trigger entries?
Traders commonly use z-scores to measure how many standard deviations the current spread sits from its historical average. A common example is an entry signal when the z-score reaches ±2.0, but thresholds vary and none are guaranteed to work.
What assets can be used for this strategy?
It can be applied to stocks in the same industry, futures contracts (such as crack spreads or cross-commodity spreads), or closely linked currency pairs in forex markets.
What is execution drag?
Execution drag is the combined effect of double transaction costs, bid-ask spreads (the gap between buy and sell prices), and short-leg borrow fees across both legs of a pair, which can reduce net profit.
Keep learning
Build Your Trading System
Turn scattered tactics into one system you can actually follow.
8 lessons quiz
Build your systemThe Trader Faculty Team writes and reviews every guide together — pairing hands-on market experience with a curriculum-first approach to trading education. One good syllabus, taught in the order that makes you better.





