Skip to main content
This article is for educational purposes only and does not constitute financial advice. Trading involves risk of loss. Past performance does not guarantee future results. Consult a licensed financial advisor before making investment decisions.
Trading Strategies8 min readUpdated October 12, 2026
TW

Pairs Trading Strategy: A Complete Guide for 2026

Pairs trading profits from two correlated assets diverging. See a pairs trading strategy example with cointegration, z-score entries, exits, and sizing.

The idea, illustrated

Explore the ideas visually

Step through the key sections, then read the complete guide below.

Evidence & contextConcept model
Concept illustration, not market data. The steps use excerpts from this article; the diagram shows the broader topic.
1 / 4

Step 1 of 4: What Is Pairs Trading?. Paused.

Put this into practice with a watchlist

Build a watchlist, then review each signal’s entry, stop, target, and reasoning. Broker access is optional.

Starter watchlist: JPM, BAC, XLF.

Mentioned in this article. Not recommendations; you can edit them before anything is saved.

Public subscriptions are paper-only. Live beta enrolment, copy-trading expansion, and live MCP orders are frozen; a paid plan does not unlock them.

Track these tickers free

Pairs trading: Mean reversion tests whether a specified deviation tends to narrow; prices need not return to the reference.

What Is Pairs Trading?

Pairs trading is a market-neutral strategy that simultaneously buys one asset and short-sells a correlated asset, profiting from temporary divergences in their historical relationship rather than from overall market direction. If two stocks normally move together but one falls while the other holds steady, the strategy buys the underperformer and shorts the outperformer — betting on a reversion to their historical spread.

The strategy was pioneered by quantitative analysts at Morgan Stanley in the 1980s and became one of the first systematic market-neutral approaches accessible to retail traders. Its appeal lies in its theoretical elegance: by trading the spread rather than the direction, pairs trading is insulated from broad market moves that crash directional positions.

The Core Logic of Pairs Trading

Pairs trading rests on the concept of statistical arbitrage — the idea that two assets with a historically stable relationship will eventually revert to that relationship after temporary divergences.

Consider two airlines: Delta (DAL) and United Airlines (UAL). Both are exposed to the same macroeconomic forces — fuel prices, travel demand, economic cycles, regulatory changes. Over time, their stock prices tend to move together. When one temporarily underperforms the other (due to company-specific news, short-term sentiment, or random noise), a pairs trader steps in:

  • Buy the underperformer (bet it will recover relative to its pair)
  • Short the outperformer (bet it will give back some of its excess gains)

The profit is not from the absolute direction of either stock, but from the spread between them normalizing.

How to Find Tradeable Pairs

Not all correlated assets make good pairs trades. The best pairs share these characteristics:

The two assets should be exposed to similar economic forces — same industry, same customer base, or same commodity input costs. Pairs with genuine fundamental links are more likely to revert than those correlated purely by coincidence.

Strong pair categories:

  • Sector peers: DAL/UAL, JPM/BAC, XOM/CVX
  • Competitor stocks: SBUX/MCD, HD/LOW, COST/WMT
  • ETF and its largest holding: QQQ and AAPL (with appropriate hedge ratio)
  • Sector ETFs: XLF (financial sector) and XLK (tech sector) during risk-on/risk-off rotations

2. Statistical Cointegration

Two assets can be correlated without being cointegrated. Correlation measures whether they tend to move in the same direction. Cointegration is stronger: it means the spread between them is stationary — it does not drift away to infinity over time. True cointegration is the statistical foundation for a reliable pairs trade.

Test for cointegration using the Augmented Dickey-Fuller (ADF) test on the spread. A p-value below 0.05 indicates the spread is stationary and the pair is potentially tradeable.

3. Mean Reversion Speed

A cointegrated pair that takes 18 months to revert is less useful than one that reverts within 5-20 trading days. Calculate the half-life of mean reversion using an Ornstein-Uhlenbeck model. Target pairs with half-lives between 5 and 30 days for practical intraday and swing trading.

Calculating the Spread and Z-Score

The spread is the price difference between the two assets, adjusted for their relative scale (the hedge ratio):

spread = price_A - (hedge_ratio × price_B)
z_score = (spread - mean_spread) / std_spread

The hedge ratio is typically calculated using Ordinary Least Squares (OLS) regression of price_A on price_B. A hedge ratio of 1.5 means you need 1.5 shares of stock B to hedge one share of stock A.

The z-score expresses how many standard deviations the current spread is from its historical mean:

  • Z-score > +2.0: Spread is stretched positive — short A, long B
  • Z-score < -2.0: Spread is stretched negative — long A, short B
  • Z-score crosses 0: Spread has reverted — close the position

Pairs Trading Strategy Example: Entry and Exit Rules

A systematic pairs trading approach uses clear, quantified rules:

Entry signals:

  • Z-score exceeds ±2.0 standard deviations (aggressive) or ±2.5 standard deviations (conservative)
  • Both legs must have adequate liquidity (daily volume > 500K shares, bid/ask spread < 0.1%)
  • Market regime check: avoid entering pairs trades during extreme volatility regimes when correlations break down

Exit signals:

  • Z-score reverts to 0 (profit target — full reversion)
  • Z-score reverts to ±0.5 (partial take-profit)
  • Z-score extends beyond ±3.5 (stop-loss — the relationship may be breaking down)
  • Time stop: close after 20 trading days regardless of P&L

Position sizing: Each leg of a pairs trade should be sized so the dollar exposure is approximately equal. If you buy $10,000 of stock A, short $10,000 of stock B (adjusted for the hedge ratio). This creates the market-neutral exposure the strategy requires.

Risk Factors in Pairs Trading

Despite its market-neutral framing, pairs trading carries distinct risks:

Correlation breakdown: The biggest risk. Two airlines that have always moved together can diverge permanently if one files for bankruptcy, gets acquired, or undergoes a fundamental business transformation. News-driven divergences often look like pairs opportunities but may actually represent real fundamental change. This is called "correlation breakdown" or "regime change."

Liquidity risk: Both legs must be executable simultaneously. Illiquid stocks create slippage that erodes the statistical edge. Stick to liquid names with tight bid/ask spreads.

Margin requirements: Pairs trades involve short selling, which requires a margin account and consumes margin capacity. Calculate your broker's margin requirements for both legs before sizing positions.

Extended divergence: A spread can remain stretched for weeks or months before reverting. Size positions conservatively enough to survive extended drawdowns without being forced to close early.

Transaction costs: Pairs trading involves twice the commissions (two legs to open, two to close) plus potential stock borrow fees for the short leg. For small accounts, transaction costs can eliminate the theoretical edge.

Put the setup on a watchlist first

Use the rules in this guide to evaluate a signal’s entry, stop, target, and reasoning before deciding what, if anything, to do.

Starter watchlist: JPM, BAC, XLF.

Mentioned in this article. Not recommendations; you can edit them before anything is saved.

Public subscriptions are paper-only. Live beta enrolment, copy-trading expansion, and live MCP orders are frozen; a paid plan does not unlock them.

Track these tickers free

Pairs Trading vs. Other Market-Neutral Strategies

StrategyMechanismTypical Holding PeriodKey Risk
Pairs TradingStatistical arbitrage on two correlated assetsDays to weeksCorrelation breakdown
Long/Short EquityBuy undervalued, short overvalued stocksWeeks to monthsFactor exposure risk
Merger ArbitrageBuy acquiree, short acquirerDays to monthsDeal failure
Convertible ArbitrageConvertible bond + short underlyingWeeks to monthsCredit and vol risk

Pairs trading occupies a useful middle ground: more systematic than discretionary long/short equity but less capital-intensive than institutional merger arbitrage.

Automating Pairs Trading with AI

Manual pairs trading is tedious: calculating z-scores, monitoring multiple pairs simultaneously, and timing simultaneous entries and exits in two securities is nearly impossible to do well by hand.

AI-powered systems handle pairs trading better than manual execution in several ways:

Automated pair screening: Scan hundreds of potential pairs nightly, running cointegration tests and half-life calculations to identify the most promising setups for the next trading session.

Real-time z-score monitoring: Track current z-scores across all active pairs continuously during market hours, triggering entries and exits the moment thresholds are crossed.

Simultaneous execution: Enter both legs of a pairs trade within milliseconds, eliminating leg risk (the gap between entering one side and the other).

Dynamic hedge ratio updates: Re-estimate hedge ratios weekly or monthly to account for changes in the relationship between the two assets over time.

Correlation breakdown detection: Monitor for sudden changes in correlation that may indicate the pair relationship is breaking down, automatically closing positions before losses compound.

Tradewink includes a pairs-trading module for screening and monitoring spreads. Simultaneous long/short stock execution is not the default day-trade path (new shorts are exit-only in that pipeline). The published pairs-trade signal type is capped (about 20 tickers in the signals loop), and bearish signal directions are blocked platform-wide. Any two-leg automation runs on paper. Public subscriptions are paper-only. Live beta enrolment, copy-trading expansion, and live MCP orders are frozen; a paid plan does not unlock them.

Getting Started with Pairs Trading

For traders new to pairs strategies, a sensible progression:

  1. Paper trade first: Validate your pair selection, z-score thresholds, and sizing rules on paper before risking real capital. Most broker APIs (Alpaca, IBKR) support paper trading environments; the stock market simulator guide compares both with other practice platforms.

  2. Start with highly liquid pairs: DAL/UAL, JPM/BAC, or sector ETF pairs (XLF/XLK) have the most data, tightest spreads, and most reliable relationships.

  3. Keep position counts low: 3-5 active pairs at a time is manageable for a first implementation. Scaling to 20-50 pairs requires reliable automation.

  4. Track the half-life: If your pairs consistently fail to revert within the expected half-life window, the relationship may have changed. Re-run your cointegration tests quarterly.

  5. Measure edge separately from direction: Evaluate your pairs performance in terms of spread capture, not just net P&L. Isolating the systematic component helps distinguish skill from luck.

For a broader view of systematic strategies, see Algorithmic Trading Strategies and Quantitative Trading Guide.

Pairs trading: practical checks

Choose the reference and deviation scale before observing the recovery. Include persistent trends, event gaps and unavailable exits; adding to a losing trade changes exposure and must be modeled explicitly.

Read the Bailey et al., The Probability of Backtest Overfitting for the underlying definitions and limits. For a next step, use Walk-Forward Testing: Log Every Holdout Access and Algorithmic Trading Strategies: Types and Testing.

Try it with free tools

Put this article into practice on paper before you risk money.

  • Free signal sampler

    See what the free plan includes: build a watchlist and review up to 3 delayed sampler signals each day, each with reasoning. Trade setups also show entry, stop and target. No credit card required.

    See the free plan
  • Strategy backtester

    Test momentum, mean-reversion, breakout and moving-average rules on historical data, then review the equity curve, drawdown and trade log. No sign-up needed.

    Open the backtester
  • Stock market simulator guide

    Practice with fake money first: compare simulator options, learn the order ticket and keep a paper-trading journal.

    Read the simulator guide

Educational research, not investment advice. Backtests and paper trades are hypothetical and do not predict live results.

Frequently Asked Questions

What is pairs trading?

Pairs trading is a market-neutral strategy that simultaneously buys one asset and short-sells a correlated asset, profiting from temporary divergences in their historical relationship. Instead of betting on market direction, pairs traders bet that two historically correlated assets will revert to their normal spread after a temporary divergence. The strategy was pioneered by Morgan Stanley quants in the 1980s and is now widely used by hedge funds and systematic retail traders.

Is pairs trading profitable?

Pairs trading can be profitable with careful pair selection, disciplined risk management, and systematic execution. Academic research consistently shows positive returns from cointegration-based pairs strategies, though profitability has declined as the strategy became more widely adopted. The edge is best preserved in less-crowded pairs (mid-cap stocks, international pairs) and with faster execution that captures short-lived divergences. Transaction costs are the primary drag — pairs strategies work best with zero or near-zero commission brokers.

What is a good z-score threshold for pairs trading?

Most systematic pairs traders enter positions when the z-score exceeds ±2.0 standard deviations and target reversion to 0. A ±2.0 threshold means the spread is two standard deviations from its mean — statistically unusual and likely to revert. More conservative traders use ±2.5, which reduces the number of trades but increases the probability of reversion on each one. Stop-losses are typically placed at ±3.5 to ±4.0, limiting losses when the spread continues to extend rather than revert.

What is the difference between correlation and cointegration?

Correlation measures whether two assets tend to move in the same direction simultaneously. Cointegration is stronger: it means the spread between two assets is stationary — it returns to a long-run mean rather than drifting away. You can have high correlation without cointegration (two stocks that generally go up together but with an ever-widening spread), but pairs trading requires cointegration. Use the Augmented Dickey-Fuller (ADF) test to verify cointegration statistically before committing to a pair.

What are the biggest risks in pairs trading?

The biggest risk in pairs trading is correlation breakdown — when two assets that have historically moved together permanently diverge due to a merger, bankruptcy, regulatory change, or fundamental business transformation. This can turn a statistical "buy the dip" signal into a trend-following disaster. Other key risks include extended divergences that require holding losing positions for weeks, liquidity risk from trading illiquid names, and short-selling costs (stock borrow fees) that erode returns over time.

What is a simple pairs trading strategy example?

Take two companies in the same industry whose prices have historically moved together. Build the spread between them, standardize it into a z-score, and treat an unusually wide reading as a signal to buy the laggard and short the leader in equal risk terms. You exit when the z-score returns toward zero, and you stop out if the relationship keeps widening, since that usually means the historical link has broken rather than stretched.

What makes a good pairs trading candidate?

Look for two liquid instruments with an economic reason to move together, such as competitors in the same sector or two ETFs tracking overlapping exposure. Statistically, you want evidence of cointegration rather than correlation alone, because correlated series can still drift apart permanently. Also confirm that both legs are easy to short and cheap to borrow, since borrow cost quietly erodes a market-neutral spread.

Keep learning with a related guide before putting an idea on your watchlist.

Try AI signals on your watchlist

Send yourself a signal preview, then add tickers to see ranked entries, exits, and risk notes in Tradewink.

Enter the email address where you want to receive a Tradewink AI signal preview.

Sources cited in this guide

TW

Tradewink builds explainable AI trading signals for US stocks and ETFs. Build a watchlist, see what Winkie rejected and why, and paper-track ideas before you decide. Public subscriptions are paper-only. Live beta enrolment, copy-trading expansion, and live MCP orders are frozen; a paid plan does not unlock them.

How we write, source, and correct guides

How this guide is reviewed

Tradewink reviews educational content against its documented market-data sources, risk controls, and product methodology. See our data sources and evaluation methodology for the evidence and limitations behind the platform, and our editorial standards for how guides are sourced, dated, and corrected.

Comments

Comments are reader opinions, not investment advice. A moderator reviews your first comment before it appears, and moderators can remove any comment later.

Loading comments…

Important disclosures

Informational purposes only

Tradewink is published by Tradewink LLC, which is not a registered investment adviser, broker-dealer, commodity trading advisor, or financial planner. All data, signals, and analytics on this page are general, impersonal, and for informational purposes only. They do not constitute investment advice, financial advice, or a recommendation to buy or sell any security or other instrument.

Trading risk

Past performance does not guarantee future results. Trading involves substantial risk of loss, including the possibility of losing more than your initial investment. You are solely responsible for your own trading decisions.