The Greeks and Option Risk Management › Delta Hedging and Delta-Neutral Portfolios
Quantitative FinanceAll chapters The Greeks and Option Risk Management › Delta Hedging and Delta-Neutral PortfoliosOne section · Sections in this chapter8 / 14 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
Delta hedging is the practice of trading the underlying asset to offset the delta of an option position, creating a portfolio that is (to first order) immune to small price movements. This technique is fundamental to options market making and forms the basis of more sophisticated hedging strategies.
Constructing a Delta-Neutral Position
If you own a call option with , your portfolio gains $0.60 for every $1 increase in the stock. To neutralize this exposure, you short 0.6 shares. The combined position has:
where:
- : net delta of the position
- : delta of the option
- : delta of the stock (always 1)
A delta-neutral portfolio does not profit or lose from small movements in the underlying price. This allows you to isolate other sources of profit or risk, such as time decay or volatility changes. You typically maintain delta-neutral books so you can focus on earning the bid-ask spread without taking directional risk.
Dynamic Hedging
The hedge is only valid at a point in time. As the stock price moves, delta changes (that's gamma), so you must continuously rebalance. In practice, you rehedge at discrete intervals, perhaps hourly or daily, or when delta drifts beyond a threshold. The frequency of rebalancing involves a trade-off: more frequent hedging keeps the portfolio closer to delta-neutral but incurs more transaction costs.
The following simulation demonstrates dynamic hedging. We generate a geometric Brownian motion price path and rebalance the hedge at each time step, tracking the cash flow and shares held to verify if the portfolio value tracks the option price:
import numpy as np
import pandas as pd
def simulate_delta_hedge(S0, K, T, r, sigma, n_steps, seed=42):
"""Simulate delta hedging over the option's life."""
np.random.seed(seed)
dt = T / n_steps
sqrt_dt = np.sqrt(dt)
# Generate price path
Z = np.random.standard_normal(n_steps)
S = np.zeros(n_steps + 1)
S[0] = S0
for i in range(n_steps):
S[i + 1] = S[i] * np.exp(
(r - 0.5 * sigma**2) * dt + sigma * sqrt_dt * Z[i]
)
# Track hedge
results = []
shares_held = 0
cash = 0
for i in range(n_steps + 1):
t_remaining = T - i * dt
if t_remaining <= 0:
t_remaining = 0.0001 # Avoid division by zero
delta = black_scholes_delta(
S[i], K, max(t_remaining, 0.0001), r, sigma, "call"
)
option_price = black_scholes_price(
S[i], K, max(t_remaining, 0.0001), r, sigma, "call"
)
# Rebalance hedge
trade = delta - shares_held
shares_held = delta
cash -= trade * S[i] # Buy shares (cash outflow)
cash *= np.exp(r * dt) # Earn interest on cash
hedge_portfolio_value = shares_held * S[i] + cash
results.append(
{
"step": i,
"time": i * dt,
"stock_price": S[i],
"delta": delta,
"option_price": option_price,
"shares_held": shares_held,
"hedge_value": hedge_portfolio_value,
}
)
return pd.DataFrame(results)# Simulation parameters
S0 = 100
K = 100
T = 0.25
r = 0.05
sigma = 0.20
n_steps = 63
# Run simulation
hedge_df = simulate_delta_hedge(S0, K, T, r, sigma, n_steps)

Hedging Costs and Gamma
Delta hedging is not free. Each rebalancing trade incurs transaction costs (bid-ask spread, commissions). The hedging process also has an expected cost related to gamma and realized volatility.
When you're short gamma (short options), you systematically buy high and sell low: you buy more shares after the stock rises and sell shares after the stock falls. This "buying high, selling low" pattern loses money on average when volatility is positive, which is the theta you earn for being short options. You earn theta precisely because you must engage in this unfavorable trading pattern to maintain your hedges.
Conversely, when you're long gamma, you sell high and buy low during rebalancing, capturing the realized volatility. This is the core mechanism behind volatility arbitrage strategies. If you buy an option at an implied volatility of 20% and the stock realizes 25% volatility, your gains from delta hedging will exceed your losses from theta, generating a profit.