Back to the Stocks Toolkit

Pair & Hedge Calculator

Compare two US-listed stocks and estimate their position sizes using the historical hedge ratio.

Included with: Professional Trading Masterclass: Stocks tools

Using the Pair & Hedge Calculator

Stocks tools: PTM

Included with the PTM course

Enrol through this site and this unlocks when your referral is verified.

Affiliate notice: I may earn a commission from marked enrolment links. You pay no extra.

Save 30% with code ptmrich30pct. Enrol at itpm.com through this link.

Read my PTM course review

Already enrolled through this site? Sign in

Illustrative example, not current market data

Calculation fields and action buttons are disabled in this preview. The example figures stay fixed until your access is verified.

Example

Illustrative example, not current market data.

The pair

Risk choice

KO vs PEP

250 overlapping sessions · daily EOD data
Hedge ratio (OLS log-price)
0.42
Correlation (daily returns)
0.71
Spread z-score
1.34
Beta KO on PEP
0.83

The spread is 1.34 standard deviations above its own mean.

Estimated pair size

Leg A: KO
235 sh

≈ 14,664 USD notional · @ 62.40

Leg B: PEP
36 sh

≈ 6,080.4 USD notional · @ 168.90

For a long-spread position: buy KO and sell PEP. Reverse both sides for a short spread. These are mechanical orientations, not trade recommendations.

Rounded notional ratio: 0.4146; target absolute ratio: 0.4200. Rounding leaves an unhedged difference.

Compare leg notionals

Money on each leg

Leg A: KO14,664
Leg B: PEP6,080.4

USD notional at these whole-share counts, on one shared scale. The historical hedge ratio does not imply equal money on each side.

Risk budget (USD)
500
Spread-model loss (USD)
498.58
Hedge ratio used
0.42

The spread-model loss is a linear approximation using leg A and the historical hedge ratio. It excludes the rounding imbalance, gaps, slippage and costs; actual losses can exceed the budget. This is not a market-beta-neutral portfolio. Use USD risk and USD-quoted US listings only.

Spread chart and benchmark details
KO beta vs SPY
0.55
PEP beta vs SPY
0.61

Spread

ln(KO) − 0.42·ln(PEP)
2024-08-012025-05-01
spread mean 1σ above mean · Leg A KO 1σ below mean · Leg B PEP latest

What this tool does

Compare a stock with the hedge you selected, then estimate both leg sizes using their historical log-price hedge ratio.

The full instructions, and the definition and limit of every number it produces, open with the tool itself.