Skip to main content

Volatility Surface

What is a volatility surface?​

A volatility surface (also called an implied volatility surface or vol surface) is a three-dimensional chart of the implied volatility of options on one asset, plotted against strike price and time to expiry. If one volatility priced every option, the surface would be flat. Real surfaces tilt and curve across strikes and rise or fall with expiry.

A simulated implied volatility surface in a dark navy theme: a 3D surface of implied volatility against strike and days to expiry, highest for low strikes and short expiries, with an orange smile slice and a magenta term-structure slice drawn on it, and two linked 2D charts of the smile and the term structure with market quotes as white dots

A simulated equity index surface with its smile at one expiry and its term structure at one strike (sample data). Try the interactive version.

Key takeaways
  • Implied volatility is the volatility that makes an option pricing model, usually Black–Scholes, return the option's market price.
  • A volatility surface plots it against strike (or moneyness, or delta) and expiry. A cut at one expiry is the smile; a cut at one strike is the term structure.
  • Equity index surfaces slope down from low strikes to high ones, a skew that has persisted since the 1987 crash.
  • Surfaces are built by solving each quote for its implied volatility, fitting a smooth curve per expiry (for example SVI), and checking for arbitrage.
  • Cheap far-from-the-money quotes are the least reliable part of a surface: one cent can move them by more than half a volatility point.

This page explains how a volatility surface is read and built, and is not investment advice.

What is implied volatility?​

Implied volatility is the volatility you have to put into an option pricing model to get back the price the option trades at. A model such as Black–Scholes takes the stock price, strike, time to expiry, interest rate and volatility, and returns a price. Every input except volatility can be observed, so the market price fixes the volatility, and that value is the volatility the price implies.

It is quoted as an annualised standard deviation of returns, in percent. An implied volatility of 20% on an 84-day option corresponds to a one-standard-deviation move of about 20% × √(84/365) ≈ 9.6% over the option's life.

The Black–Scholes formula​

Black and Scholes (1973) priced a European call option, one that can only be exercised at expiry, on a stock paying no dividends as

C=S N(d1)−Ke−rTN(d2),d1=ln⁡(S/K)+(r+σ2/2) TσT,d2=d1−σTC = S\,N(d_1) - K e^{-rT} N(d_2), \qquad d_1 = \frac{\ln(S/K) + (r + \sigma^2/2)\,T}{\sigma\sqrt{T}}, \qquad d_2 = d_1 - \sigma\sqrt{T}

where SS is the stock price, KK the strike, TT the time to expiry in years, rr the risk-free rate, σ\sigma the volatility and NN the standard normal cumulative distribution function. The put price follows from put–call parity, P=C−S+Ke−rTP = C - S + K e^{-rT}. The model assumes one constant volatility for the life of the option and for every strike, which is why a chart of implied volatilities is a test of that assumption. If the market agreed with it, every option on the same stock would show the same implied volatility.

Implied volatility vs historical volatility​

Historical (or realised) volatility is measured from past price changes of the underlying. Implied volatility is read from option prices, so it looks forward and reflects what buyers and sellers of options will pay, including any premium for insurance against large moves. The two are often compared. For S&P 500 index options, implied variance has on average been higher than the variance later realised, a gap known as the variance risk premium (Carr and Wu, 2009).

How to read a volatility surface​

Read a volatility surface by its overall height, then by its two slices: across strikes at one expiry (the smile) and across expiries at one strike (the term structure).

A grid of implied volatility by strike, 70% to 130% of spot, and days to expiry, 14 to 728, coloured from dark blue for low volatility to green and yellow for high. The 84-day row is outlined in orange and drawn on the right as a smile curve, highest for low-strike puts and lowest just above the money. The 90% strike column is outlined in magenta and drawn as a term structure that dips over the first few months and then rises slowly

  • Axes. One horizontal axis is the strike, often as moneyness: strike divided by spot or by the forward price, or its logarithm. Currency markets use the option's delta instead. The other horizontal axis is time to expiry, in days or years. Height, and usually colour, is implied volatility.
  • Level. The general height of the surface is how much movement the market is pricing. At-the-money volatility, read at a fixed horizon such as 30 days, is the usual one-number summary.
  • The smile. Slice the surface at one expiry and you get implied volatility against strike. Its slope near the money is the skew, and how much it bends is the curvature.
  • The term structure. Slice it at one strike, usually at the money, and you get implied volatility against expiry.
  • From above. Looked at from directly overhead, a surface becomes a heatmap: colour for volatility, strike and expiry as the axes. Contour lines join strikes and expiries with equal implied volatility.

A template sentence for describing one: "At the 84-day expiry, implied volatility runs from 37% at the 70% strike down to 12% near the 110% strike, a steep put skew, while at-the-money volatility rises from 16% at two weeks to 23% at two years." Those are the values of the default surface in the demo on this page, shown in the grid above.

Volatility smile and volatility skew​

A volatility smile is a curve of implied volatility against strike that rises on both sides of the at-the-money strike; a volatility skew (or smirk) is one that slopes mostly one way.

Left: three curves of implied volatility against strike at one expiry. A flat dashed line is the single volatility that Black–Scholes assumes, a symmetric smile rises on both sides of the money, and an equity index skew falls from 39% at the 70% strike to about 14% above the money. Right: at-the-money implied volatility against days to expiry for three regimes: normal, rising slowly with expiry; inverted, falling from about 38% at two weeks; and an event bump, a jump just after an event at 30 days that fades for longer expiries

ShapeWhat it looks likeWhere it is typical
FlatOne implied volatility at every strikeOnly in the Black–Scholes model
SmileBoth wings above the at-the-money levelCurrency options in the major pairs
Skew (put skew)Low strikes well above high strikesEquity index options, many single stocks

Why do index options have a skew?​

Before October 1987, implied volatilities of S&P 500 index options were close to flat across strikes. After the crash, low-strike puts kept trading at much higher implied volatilities than high-strike calls, and that skew has stayed (Rubinstein, 1994). Two explanations are usually given, and both point the same way:

  • Crash risk. Index returns have a fatter left tail than the lognormal model behind Black–Scholes, and investors pay up for puts that protect portfolios against a fall.
  • Leverage. When a company's share price falls, its debt is a larger part of its value, so its equity becomes riskier and more volatile.

Currency options have no natural "down" direction, so smiles in the major pairs are closer to symmetric, though many pairs show a lasting skew towards one currency. Traders quote them by delta: the 25-delta risk reversal, the call's implied volatility minus the put's, measures the skew, and the 25-delta butterfly measures the curvature.

Term structure of volatility​

The term structure of volatility is how implied volatility changes with time to expiry at one strike, usually at the money.

  • Normal (upward sloping). In calm markets, short-dated implied volatility is low and longer expiries are higher. This shape is sometimes called contango, borrowing the futures term.
  • Inverted (downward sloping). In a sell-off, short-dated volatility jumps above longer-dated volatility, because traders expect the turbulence to calm down over time. Hull notes that volatility tends to rise with maturity when short-dated volatility is historically low and fall with maturity when it is historically high.
  • Event bump. A known event, such as an earnings release or a central bank decision, adds one expected jump. Every expiry after the event includes it, so the bump is largest for the first expiry after the event and is diluted for longer ones.

A worked event example: an event 30 days away with an expected move of 6% adds 0.06² = 0.0036 to the total variance, σ²T, of every later expiry. For a 56-day option with a base volatility of 16.3%, the implied volatility becomes √(0.163² + 0.0036 ÷ (56/365)) = 22.4%. The same move adds less than one point to a two-year option.

How a volatility surface is built from option prices​

A volatility surface is built by turning each option quote into an implied volatility, fitting a smooth smile to each expiry, and joining the expiries without creating arbitrage.

  1. Collect quotes. Take the mid-price between bid and ask for each strike and expiry. Use out-of-the-money options (puts below the forward, calls above it), because they trade more and have tighter spreads.
  2. Find the forward. Work out the forward price for each expiry, from put–call parity on near-the-money strikes or from interest rates and dividends. The smile is centred on the forward, not the spot.
  3. Solve for implied volatility. Black–Scholes can't be inverted in closed form, so each price is solved by root finding.
  4. Fit each expiry. Fit a smooth curve in log-moneyness through each expiry's implied volatilities, often weighted towards the tighter quotes.
  5. Join the expiries. Interpolate between expiries in total variance, σ²T, not in volatility, and check the result for arbitrage.

Worked example: from an option price to implied volatility​

A 3-month (T = 0.25) at-the-money call on a $100 stock, strike $100, rate 4%, trades at $4.49. Newton's method finds the volatility that reprices it in two steps. The first guess comes from the Brenner–Subrahmanyam approximation for at-the-money options, σ ≈ √(2π/T) × C/S = 5.013 × 0.0449 = 22.5%. Each step subtracts the pricing error divided by vega, the change in price per unit of volatility.

StepVolatility triedBlack–Scholes priceErrorVegaNext volatility
022.51%$4.9804+$0.490419.7422.51% − 0.4904 ÷ 19.74 = 20.03%
120.03%$4.4902+$0.000219.7220.02%
220.02%$4.4900$0.0000done

So the implied volatility is 20.02%. Repricing at exactly 20% gives $4.4852, which rounds to $4.49. Far from the money, vega is small and Newton's method can overshoot, so solvers keep a bracket and fall back to bisection when a step leaves it, as the demo on this page does.

SVI: fitting a smile to each expiry​

The SVI (stochastic volatility inspired) parameterisation, devised at Merrill Lynch in 1999 and published by Jim Gatheral in 2004, writes the total implied variance w=σ2Tw = \sigma^2 T at log-moneyness k=ln⁡(K/F)k = \ln(K/F) as

w(k)=a+b(ρ (k−m)+(k−m)2+s2)w(k) = a + b\left(\rho\,(k - m) + \sqrt{(k - m)^2 + s^2}\right)

with five parameters per expiry: aa sets the level, bb the steepness of the wings, ρ\rho tilts the smile (the skew), mm shifts it sideways and ss rounds off its bottom. Its wings grow linearly in kk, which matches the theoretical limit on how fast implied variance can grow at extreme strikes (Lee, 2004). Surface SVI (SSVI), from Gatheral and Jacquier (2014), ties the expiries together with the at-the-money total variance θT\theta_T, a correlation ρ\rho and a curvature function, and gives conditions under which the whole surface is free of arbitrage. The demo uses an SSVI surface.

No-arbitrage constraints​

A surface that is fitted point by point can imply prices that allow a riskless profit, so two constraints are checked. Across strikes, call prices must fall as the strike rises, or a call spread would pay off for nothing, and must be convex in strike, or a butterfly spread (long one low and one high strike, short two in the middle) would cost less than nothing and the probability density implied by the smile would go negative somewhere. Across expiries, total implied variance at the same log-moneyness must not fall as expiry gets longer; if it does, a calendar spread is an arbitrage. Gatheral and Jacquier give Durrleman's condition, g(k) ≥ 0, as a direct test of the butterfly condition on a smile, and the demo applies both tests to every expiry.

3D surface vs heatmap vs slices​

A 3D surface shows the whole shape at once, a heatmap makes values easy to compare and read, and 2D slices are the most precise; most volatility tools show a surface or heatmap with linked slices.

ViewBest forWeak atGuide
3D surfaceSeeing the overall shape: skew, term structure and where they interactReading exact values; parts can hide behind ridges3D surface plot
Heatmap (from above)Comparing many strikes and expiries at once, and spotting outliersSmall differences in colour are hard to judgeHeatmap
Contour plotLines of equal implied volatility, for example how the 20% level movesValues between contoursContour plot
Smile slice (2D line)Exact values across strikes, quotes against the fitOnly one expiry at a timeLine chart of IV against strike
Term-structure slice (2D line)Events and regime changes across expiriesOnly one strike at a timeLine chart of IV against expiry

To compare a surface with an earlier one, chart the difference between the two as a heatmap, or overlay the smile slices from both dates.

Common volatility surface mistakes​

Most volatility surface errors come from bad input quotes and from interpolating the wrong quantity.

  • Trusting cheap wing quotes. Prices are quoted in cents, and a cheap option has a small vega. In the demo's default 84-day smile, one cent on the 115% call moves its implied volatility by 0.64 points (from $0.02 to $0.03), while one cent on the at-the-money put moves it by 0.05. Filter out quotes with no bid or very wide spreads before fitting.
  • Ignoring the forward. Centring the smile on the spot price instead of the forward, or getting dividends wrong, tilts the fitted skew and makes puts and calls at the same strike disagree.
  • Interpolating volatility across expiries. Interpolate in total variance, σ²T, and check that it rises with expiry. A straight line in volatility between two expiries can break the calendar constraint.
  • Extrapolating the wings freely. A polynomial fitted to the quoted strikes can curl up or go negative beyond them. Keep total variance growing at most linearly in log-moneyness.
  • Comparing surfaces on different axes. A surface by strike, by moneyness and by delta can look quite different. Use the same axis, and the same colour scale, for every snapshot you compare.
  • Reading the surface as a forecast. Implied volatility is a price. It includes what investors pay for protection, so it isn't an unbiased prediction of the volatility that will be realised.

How to create a volatility surface chart in JavaScript, React or Angular​

The demo below rebuilds a grid of 61 strikes by 52 expiries from an SSVI model, prices 104 out-of-the-money option quotes from it with noise, rounds them to the cent, solves each one back to implied volatility with Newton's method, and runs both arbitrage checks every time you change a setting. SciChart.js draws the surface and quotes with its WebGL and WebGPU 3D engine, and the two slices as 2D line charts.

Move Skew (ρ) to tilt every smile, and Smile curvature (η) to bend it; at the default skew the butterfly check fails from 2.8, and with a skew of −0.95 from 2.2. Switch Term structure between normal, flat, inverted and an event in 30 days, or pick Inverted too steeply to see the calendar check fail. Choose an Expiry and a Strike to move the orange smile slice and the magenta term-structure slice, toggle Show quotes, and set 3D view to from above to read the surface as a heatmap. The readout under the controls shows the selected quote's price and the implied volatility solved from it. Drag to rotate the 3D surface, scroll to zoom, double-click to reset, and hover for values.

Here is the code for this demo. The Black–Scholes pricer, the implied volatility solver, the SSVI surface and the arbitrage checks are plain JavaScript; SciChart.js draws the 3D surface, the quote spheres and the two slices. The React and Angular versions below draw a surface from your own grid of implied volatilities.

// An implied volatility surface with its smile and term-structure slices, charted with SciChart.js.
// The surface is simulated (SSVI-style smiles on a chosen term structure), and the "market quotes"
// are option prices made from it, rounded to the cent, then turned back into implied volatility.
const {
SciChartSurface,
SciChart3DSurface,
NumericAxis,
NumericAxis3D,
NumberRange,
Vector3,
UniformGridDataSeries3D,
SurfaceMeshRenderableSeries3D,
GradientColorPalette,
EDrawMeshAs,
XyzDataSeries3D,
PointLineRenderableSeries3D,
ScatterRenderableSeries3D,
SpherePointMarker3D,
XyDataSeries,
FastLineRenderableSeries,
XyScatterRenderableSeries,
EllipsePointMarker,
VerticalLineAnnotation,
ELabelPlacement,
ECameraProjectionMode,
SciChartJsNavyTheme,
CursorModifier,
LegendModifier,
ELegendPlacement,
MouseWheelZoomModifier,
ZoomPanModifier,
ZoomExtentsModifier,
OrbitModifier3D,
MouseWheelZoomModifier3D,
ResetCamera3DModifier,
TooltipModifier3D
} = SciChart;
// or, for npm, import { SciChartSurface, ... } from "scichart"

const SPOT = 100; // underlying price; strikes are shown as % of spot
const RATE = 0.04; // continuously compounded interest rate, no dividends
const STRIKES = []; // 70% to 130% of spot, every 1%
for (let k = 70; k <= 130; k++) STRIKES.push(k);
const DAYS = []; // 14 days to two years, every 14 days
for (let d = 14; d <= 728; d += 14) DAYS.push(d);
const LISTED_DAYS = [14, 28, 56, 84, 182, 364, 546, 728]; // expiries with quotes
const QUOTED_STRIKES = [70, 75, 80, 85, 90, 95, 100, 105, 110, 115, 120, 125, 130];
const EVENT_DAYS = 30; // the "event" term structure: a one-day move of about 6% in 30 days
const EVENT_MOVE = 0.06;

// --- Black–Scholes pricing and implied volatility ---
// Standard normal CDF (Abramowitz and Stegun 26.2.17, error below 7.5e-8)
function normCdf(x) {
const t = 1 / (1 + 0.2316419 * Math.abs(x));
const d = 0.3989422804014327 * Math.exp(-0.5 * x * x);
const p = d * t * (0.31938153 + t * (-0.356563782 + t * (1.781477937 + t * (-1.821255978 + t * 1.330274429))));
return x >= 0 ? 1 - p : p;
}
const normPdf = (x) => 0.3989422804014327 * Math.exp(-0.5 * x * x);
// European option price: S spot, K strike, T years, r rate, sigma volatility
function bsPrice(isCall, S, K, T, r, sigma) {
const sd = sigma * Math.sqrt(T);
const d1 = (Math.log(S / K) + (r + 0.5 * sigma * sigma) * T) / sd;
const d2 = d1 - sd;
if (isCall) return S * normCdf(d1) - K * Math.exp(-r * T) * normCdf(d2);
return K * Math.exp(-r * T) * normCdf(-d2) - S * normCdf(-d1);
}
// Vega: how much the price changes per unit (100 points) of volatility
function bsVega(S, K, T, r, sigma) {
const d1 = (Math.log(S / K) + (r + 0.5 * sigma * sigma) * T) / (sigma * Math.sqrt(T));
return S * normPdf(d1) * Math.sqrt(T);
}
// Implied volatility: the sigma at which bsPrice equals the market price. Newton's method from the
// Brenner–Subrahmanyam guess, falling back to bisection if a step leaves the bracket
function impliedVol(isCall, price, S, K, T, r) {
let sigma = Math.max(0.01, (Math.sqrt((2 * Math.PI) / T) * price) / S);
const firstGuess = sigma;
let lo = 1e-4;
let hi = 5;
for (let i = 0; i < 50; i++) {
const diff = bsPrice(isCall, S, K, T, r, sigma) - price;
if (Math.abs(diff) < 1e-8) return { sigma, steps: i, firstGuess };
if (diff > 0) hi = sigma;
else lo = sigma;
const vega = bsVega(S, K, T, r, sigma);
let next = sigma - diff / vega;
if (!(next > lo && next < hi)) next = 0.5 * (lo + hi);
sigma = next;
}
return { sigma, steps: 50, firstGuess };
}

// --- The simulated surface ---
// At-the-money volatility for each term-structure shape (T in years)
function atmVol(T, shape) {
if (shape === "flat") return 0.19;
if (shape === "inverted") return 0.21 + 0.21 * Math.exp(-T / 0.2);
if (shape === "steep") return 0.15 + 0.6 * Math.exp(-T / 0.1);
return 0.15 + 0.07 * (1 - Math.exp(-T / 0.75)); // normal, and the base of "event"
}
// At-the-money total variance theta = sigma² × T; an event adds its squared move once it is inside the expiry
function atmVariance(T, shape) {
let theta = atmVol(T, shape) ** 2 * T;
if (shape === "event" && T * 365 >= EVENT_DAYS) theta += EVENT_MOVE * EVENT_MOVE;
return theta;
}
// SSVI smile (Gatheral and Jacquier): total variance at log-moneyness k = ln(K / F)
function totalVariance(k, theta, p) {
const phi = p.curvature / Math.sqrt(theta * (1 + theta));
const x = phi * k;
return (theta / 2) * (1 + p.skew * x + Math.sqrt((x + p.skew) ** 2 + 1 - p.skew * p.skew));
}
const logMoneyness = (strikePct, T) => Math.log((strikePct / 100) * SPOT / (SPOT * Math.exp(RATE * T)));
// Implied volatility (as a fraction) at a strike (% of spot) and days to expiry
function modelVol(strikePct, days, p) {
const T = days / 365;
return Math.sqrt(totalVariance(logMoneyness(strikePct, T), atmVariance(T, p.shape), p) / T);
}

// No-arbitrage checks on log-moneyness -0.5 to 0.5 (strikes about 61% to 165% of the forward)
function arbitrageChecks(p) {
let butterfly = null;
let calendar = null;
const h = 1e-3;
for (let i = 0; i < DAYS.length; i++) {
const theta = atmVariance(DAYS[i] / 365, p.shape);
const before = i > 0 ? atmVariance(DAYS[i - 1] / 365, p.shape) : 0;
for (let k = -0.5; k <= 0.5001; k += 0.01) {
const w = totalVariance(k, theta, p);
const up = totalVariance(k + h, theta, p);
const down = totalVariance(k - h, theta, p);
const w1 = (up - down) / (2 * h);
const w2 = (up - 2 * w + down) / (h * h);
// Durrleman's condition: g(k) >= 0 means the implied probability density is not negative
const g = (1 - (k * w1) / (2 * w)) ** 2 - ((w1 * w1) / 4) * (1 / w + 0.25) + w2 / 2;
if (g < 0 && !butterfly) butterfly = { days: DAYS[i], k };
// Total variance must not fall as expiry grows (same log-moneyness)
if (i > 0 && w < totalVariance(k, before, p) - 1e-12 && !calendar) calendar = { days: DAYS[i], k };
}
}
return { butterfly, calendar };
}

// Seeded random numbers, so the quote noise is the same every time
function makeRandom(seed) {
let s = seed >>> 0 || 1;
const random = () => {
s = (s + 0x6d2b79f5) >>> 0;
let t = s;
t = Math.imul(t ^ (t >>> 15), t | 1);
t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
};
return () => Math.sqrt(-2 * Math.log(1 - random())) * Math.cos(2 * Math.PI * random());
}
const quoteNoise = LISTED_DAYS.map((_, i) => {
const gaussian = makeRandom(1000 + i);
return QUOTED_STRIKES.map(() => gaussian());
});

// Market quotes: an out-of-the-money option at each listed expiry and strike, priced from the surface plus
// noise, rounded to the cent, then turned back into implied volatility as a real surface build would
function makeQuotes(p) {
const quotes = [];
LISTED_DAYS.forEach((days, i) => {
const T = days / 365;
QUOTED_STRIKES.forEach((strikePct, j) => {
const K = (strikePct / 100) * SPOT;
const isCall = K >= SPOT * Math.exp(RATE * T); // out of the money: puts below the forward, calls above
const k = logMoneyness(strikePct, T);
const noisyVol = modelVol(strikePct, days, p) + (0.004 + 0.02 * Math.abs(k)) * quoteNoise[i][j];
const price = Math.round(bsPrice(isCall, SPOT, K, T, RATE, noisyVol) * 100) / 100;
if (price < 0.01) {
quotes.push({ days, strikePct, isCall, price, iv: null });
return;
}
const solved = impliedVol(isCall, price, SPOT, K, T, RATE);
quotes.push({ days, strikePct, isCall, price, iv: solved.sigma, steps: solved.steps, firstGuess: solved.firstGuess });
});
});
return quotes;
}

const theme = new SciChartJsNavyTheme();
const titleStyle = { fontSize: 14 };
const axisTitleStyle = { fontSize: 13 };

// --- 1. The 3D surface: strike across, days to expiry into the screen, implied volatility up ---
const { wasmContext, sciChart3DSurface } = await SciChart3DSurface.create(ui.surfaceDiv, {
theme,
worldDimensions: new Vector3(300, 160, 300),
cameraOptions: { position: new Vector3(480, 350, -390), target: new Vector3(0, 30, 0) }
});
sciChart3DSurface.xAxis = new NumericAxis3D(wasmContext, {
axisTitle: "Strike (% of spot)",
labelPrecision: 0,
visibleRange: new NumberRange(70, 130)
});
sciChart3DSurface.yAxis = new NumericAxis3D(wasmContext, { axisTitle: "IV (%)", labelPrecision: 0 });
sciChart3DSurface.zAxis = new NumericAxis3D(wasmContext, {
axisTitle: "Days to expiry",
labelPrecision: 0,
visibleRange: new NumberRange(0, 730)
});
// yValues[expiryIndex][strikeIndex], in % volatility
const gridData = new UniformGridDataSeries3D(wasmContext, {
yValues: DAYS.map(() => STRIKES.map(() => 20)),
xStart: STRIKES[0],
xStep: 1,
zStart: DAYS[0],
zStep: 14,
dataSeriesName: "Implied volatility"
});
sciChart3DSurface.renderableSeries.add(
new SurfaceMeshRenderableSeries3D(wasmContext, {
dataSeries: gridData,
// Colour repeats the height: 10% volatility is dark blue, 70% and above is red
meshColorPalette: new GradientColorPalette(wasmContext, {
gradientStops: [
{ offset: 0, color: "#14233C" },
{ offset: 0.2, color: "#1F4FA8" },
{ offset: 0.4, color: "#2FB8D9" },
{ offset: 0.6, color: "#7CD992" },
{ offset: 0.8, color: "#F5E663" },
{ offset: 1, color: "#FF4D4D" }
]
}),
minimum: 10,
maximum: 70,
drawMeshAs: EDrawMeshAs.SOLID_WITH_CONTOURS,
contourInterval: 5, // a contour line every 5 volatility points
contourStroke: "#FFFFFF",
contourStrokeThickness: 1,
drawSkirt: false,
lightingFactor: 0.4
})
);
// The two slices drawn on the surface, and the quotes as spheres
const smileSlice3D = new XyzDataSeries3D(wasmContext, { dataSeriesName: "Smile slice" });
const termSlice3D = new XyzDataSeries3D(wasmContext, { dataSeriesName: "Term-structure slice" });
const quotes3D = new XyzDataSeries3D(wasmContext, { dataSeriesName: "Quotes" });
const quoteSpheres = new ScatterRenderableSeries3D(wasmContext, {
dataSeries: quotes3D,
pointMarker: new SpherePointMarker3D(wasmContext, { size: 6, fill: "#FFFFFF" })
});
sciChart3DSurface.renderableSeries.add(
new PointLineRenderableSeries3D(wasmContext, {
dataSeries: smileSlice3D,
stroke: "#FF9F1C",
strokeThickness: 4,
pointMarker: new SpherePointMarker3D(wasmContext, { size: 4, fill: "#FF9F1C" })
}),
new PointLineRenderableSeries3D(wasmContext, {
dataSeries: termSlice3D,
stroke: "#E04FD8",
strokeThickness: 4,
pointMarker: new SpherePointMarker3D(wasmContext, { size: 4, fill: "#E04FD8" })
}),
quoteSpheres
);
sciChart3DSurface.chartModifiers.add(
new OrbitModifier3D(),
new MouseWheelZoomModifier3D(),
new ResetCamera3DModifier(),
new TooltipModifier3D({
tooltipDataTemplate: (seriesInfo) => {
if (!seriesInfo || !seriesInfo.isHit) return [];
return [
`Strike ${seriesInfo.xValue.toFixed(0)}%, ${seriesInfo.zValue.toFixed(0)} days`,
`IV ${seriesInfo.yValue.toFixed(1)}%`
];
}
})
);

// --- 2. The smile: implied volatility against strike at the selected expiry ---
const cartesianModifiers = () => [
new CursorModifier({ showTooltip: true }),
new MouseWheelZoomModifier(),
new ZoomPanModifier(),
new ZoomExtentsModifier()
];
const smile = await SciChartSurface.create(ui.smileDiv, { theme, title: "Smile at the selected expiry", titleStyle });
smile.sciChartSurface.xAxes.add(
new NumericAxis(smile.wasmContext, {
axisTitle: "Strike (% of spot)",
axisTitleStyle,
labelPrecision: 0,
visibleRange: new NumberRange(68, 132)
})
);
smile.sciChartSurface.yAxes.add(
new NumericAxis(smile.wasmContext, {
axisTitle: "Implied volatility (%)",
axisTitleStyle,
labelPrecision: 0,
growBy: new NumberRange(0.1, 0.1)
})
);
const smileLine = new XyDataSeries(smile.wasmContext, { dataSeriesName: "Surface", dataIsSortedInX: true });
const smileQuotes = new XyDataSeries(smile.wasmContext, { dataSeriesName: "Quotes", dataIsSortedInX: true });
const smileQuoteSeries = new XyScatterRenderableSeries(smile.wasmContext, {
dataSeries: smileQuotes,
pointMarker: new EllipsePointMarker(smile.wasmContext, { width: 9, height: 9, fill: "#FFFFFF", stroke: "#22365B" })
});
smile.sciChartSurface.renderableSeries.add(
new FastLineRenderableSeries(smile.wasmContext, { dataSeries: smileLine, stroke: "#FF9F1C", strokeThickness: 3 }),
smileQuoteSeries
);
const strikeMarker = new VerticalLineAnnotation({
x1: 90,
stroke: "#E04FD8",
strokeDashArray: [4, 4],
showLabel: true,
labelValue: "Strike"
});
smile.sciChartSurface.annotations.add(strikeMarker);
smile.sciChartSurface.chartModifiers.add(
...cartesianModifiers(),
new LegendModifier({ showCheckboxes: false, placement: ELegendPlacement.TopRight })
);

// --- 3. The term structure: implied volatility against expiry at the selected strike ---
const term = await SciChartSurface.create(ui.termDiv, { theme, title: "Term structure at the selected strike", titleStyle });
term.sciChartSurface.xAxes.add(
new NumericAxis(term.wasmContext, {
axisTitle: "Days to expiry",
axisTitleStyle,
labelPrecision: 0,
visibleRange: new NumberRange(0, 740)
})
);
term.sciChartSurface.yAxes.add(
new NumericAxis(term.wasmContext, {
axisTitle: "Implied volatility (%)",
axisTitleStyle,
labelPrecision: 0,
growBy: new NumberRange(0.1, 0.1)
})
);
const termLine = new XyDataSeries(term.wasmContext, { dataSeriesName: "Surface", dataIsSortedInX: true });
const termQuotes = new XyDataSeries(term.wasmContext, { dataSeriesName: "Quotes", dataIsSortedInX: true });
const termQuoteSeries = new XyScatterRenderableSeries(term.wasmContext, {
dataSeries: termQuotes,
pointMarker: new EllipsePointMarker(term.wasmContext, { width: 9, height: 9, fill: "#FFFFFF", stroke: "#22365B" })
});
term.sciChartSurface.renderableSeries.add(
new FastLineRenderableSeries(term.wasmContext, { dataSeries: termLine, stroke: "#E04FD8", strokeThickness: 3 }),
termQuoteSeries
);
const expiryMarker = new VerticalLineAnnotation({
x1: 84,
stroke: "#FF9F1C",
strokeDashArray: [4, 4],
showLabel: true,
labelValue: "Expiry"
});
const eventMarker = new VerticalLineAnnotation({
x1: EVENT_DAYS,
stroke: "#F5E663",
showLabel: true,
labelPlacement: ELabelPlacement.TopRight,
labelValue: "Event"
});
term.sciChartSurface.annotations.add(expiryMarker, eventMarker);
term.sciChartSurface.chartModifiers.add(
...cartesianModifiers(),
new LegendModifier({ showCheckboxes: false, placement: ELegendPlacement.TopRight })
);

// --- Updating everything from the controls ---
function readSettings() {
return {
skew: Number(ui.skew.value),
curvature: Number(ui.curvature.value),
shape: ui.term.value,
days: Number(ui.expiry.value),
strikePct: Number(ui.strike.value),
showQuotes: ui.quotes.checked
};
}
let quotes = [];
let lastSurfaceKey = "";
function update() {
const p = readSettings();
ui.skewOut.textContent = p.skew.toFixed(2);
ui.curvatureOut.textContent = p.curvature.toFixed(1);
ui.strikeOut.textContent = `${p.strikePct}%`;

// Rebuild the surface and the quotes only when its shape changes
const surfaceKey = `${p.skew}|${p.curvature}|${p.shape}`;
if (surfaceKey !== lastSurfaceKey) {
lastSurfaceKey = surfaceKey;
const values = DAYS.map((days) => STRIKES.map((s) => 100 * modelVol(s, days, p)));
gridData.setYValues(values);
let top = 0;
for (const row of values) for (const v of row) top = Math.max(top, v);
sciChart3DSurface.yAxis.visibleRange = new NumberRange(0, Math.ceil(top / 10) * 10);
quotes = makeQuotes(p);
const shown = quotes.filter((q) => q.iv !== null);
quotes3D.clear();
quotes3D.appendRange(
shown.map((q) => q.strikePct),
shown.map((q) => 100 * q.iv),
shown.map((q) => q.days)
);
}
quoteSpheres.isVisible = p.showQuotes;
smileQuoteSeries.isVisible = p.showQuotes;
termQuoteSeries.isVisible = p.showQuotes;
eventMarker.isHidden = p.shape !== "event";

// Smile slice at the selected expiry
const smileVols = STRIKES.map((s) => 100 * modelVol(s, p.days, p));
smileLine.clear();
smileLine.appendRange(STRIKES, smileVols);
smileSlice3D.clear();
// Lift the slices a little above the surface so they aren't hidden in it
smileSlice3D.appendRange(STRIKES, smileVols.map((v) => v + 1), STRIKES.map(() => p.days));
const atExpiry = quotes.filter((q) => q.days === p.days && q.iv !== null);
smileQuotes.clear();
smileQuotes.appendRange(atExpiry.map((q) => q.strikePct), atExpiry.map((q) => 100 * q.iv));
smile.sciChartSurface.title = `Smile at ${p.days} days`;
strikeMarker.x1 = p.strikePct;

// Term-structure slice at the selected strike
const termVols = DAYS.map((d) => 100 * modelVol(p.strikePct, d, p));
termLine.clear();
termLine.appendRange(DAYS, termVols);
termSlice3D.clear();
termSlice3D.appendRange(DAYS.map(() => p.strikePct), termVols.map((v) => v + 1), DAYS);
const atStrike = quotes.filter((q) => q.strikePct === p.strikePct && q.iv !== null);
termQuotes.clear();
termQuotes.appendRange(atStrike.map((q) => q.days), atStrike.map((q) => 100 * q.iv));
term.sciChartSurface.title = `Term structure at ${p.strikePct}% strike`;
expiryMarker.x1 = p.days;
smile.sciChartSurface.zoomExtentsY();
term.sciChartSurface.zoomExtentsY();

// Readout: the selected quote, from price to implied volatility, and the no-arbitrage checks
const q = quotes.find((x) => x.days === p.days && x.strikePct === p.strikePct);
let text = `Quote: ${p.days}-day ${q.isCall ? "call" : "put"}, strike ${p.strikePct} (spot 100, rate 4%). `;
if (q.iv === null) {
text += `Its price rounds to <b>$0.00</b>, so no implied volatility can be read from it. `;
} else {
text +=
`Price <b>$${q.price.toFixed(2)}</b> → implied volatility <b>${(100 * q.iv).toFixed(2)}%</b> ` +
`(Newton's method, ${q.steps} steps from a first guess of ${(100 * q.firstGuess).toFixed(1)}%); ` +
`surface ${(100 * modelVol(p.strikePct, p.days, p)).toFixed(2)}%. `;
}
const checks = arbitrageChecks(p);
const where = (c) => `${c.days} days, k = ${c.k.toFixed(2)}`;
text += checks.butterfly
? `Butterfly check: <b>fails</b> (negative implied density at ${where(checks.butterfly)}). `
: "Butterfly check: passes. ";
text += checks.calendar
? `Calendar check: <b>fails</b> (total variance falls with expiry at ${where(checks.calendar)}).`
: "Calendar check: passes.";
ui.summary.innerHTML = text;
}

// From above, the surface reads like a heatmap: colour is implied volatility
function setView() {
const camera = sciChart3DSurface.camera;
if (ui.view.value === "above") {
// Straight down, without perspective: strike across, expiry up the screen
camera.projectionMode = ECameraProjectionMode.Orthogonal;
camera.orthoWidth = 420;
camera.orthoHeight = 420;
camera.position = new Vector3(0, 600, -0.1);
camera.target = new Vector3(0, 0, 0);
} else {
camera.projectionMode = ECameraProjectionMode.Perspective;
camera.position = new Vector3(480, 350, -390);
camera.target = new Vector3(0, 30, 0);
}
}

// Several slider events can arrive per frame; redraw at most once per frame
let pending = false;
const schedule = () => {
if (pending) return;
pending = true;
requestAnimationFrame(() => {
pending = false;
update();
});
};
for (const control of [ui.skew, ui.curvature, ui.strike]) control.addEventListener("input", schedule);
for (const control of [ui.term, ui.expiry, ui.quotes]) control.addEventListener("change", schedule);
ui.view.addEventListener("change", setView);
ui.expiry.value = "84";
update();

Key points:

  • The surface is a SurfaceMeshRenderableSeries3D over a UniformGridDataSeries3D: a 2D array of implied volatilities on evenly spaced strikes (x) and expiries (z), with volatility as the height (y). setYValues replaces the grid when the model changes.
  • Fixed minimum and maximum on the series keep each colour tied to the same volatility, and EDrawMeshAs.SOLID_WITH_CONTOURS adds a contour every 5 points.
  • The quotes are a ScatterRenderableSeries3D with a SpherePointMarker3D, and the slices drawn on the surface are PointLineRenderableSeries3Ds over XyzDataSeries3Ds.
  • The smile and term structure are ordinary 2D charts: a FastLineRenderableSeries for the fit, an XyScatterRenderableSeries for the quotes and a VerticalLineAnnotation for the selected strike or expiry. Setting the 3D camera's position and target gives the view from above.

See it in the demo app: JavaScript 3D surface mesh chart · React 3D surface mesh chart · Angular 3D surface mesh chart. Related techniques: the React heatmap chart, React line chart and React synchronised multi-chart.

Go deeper: SciChart.js 3D surface mesh documentation, the 3D scatter chart and 3D line chart documentation, and the learning center guides to the 3D surface plot, the heatmap, the contour plot and the options payoff diagram. For the industry, see SciChart for financial and trading applications.

Charting the underlying as well​

A volatility surface sits next to the price chart of the underlying in most trading tools, and SciTrader.js, SciChart's financial charts SDK, covers that side. Its Bollinger Bands and Average True Range studies measure the historical volatility of the price, the number traders compare with implied volatility, on candlestick charts. It has no volatility surface series of its own; build the surface with SciChart.js 3D as in the demo above. See what it can do on the JavaScript stock charts page.

Frequently asked questions​

What is a volatility surface?​

A volatility surface is a 3D chart of the implied volatilities of options on one asset, against strike price and time to expiry. Each point is the volatility that makes the Black–Scholes model match one option's market price. A flat surface would mean the model's single constant volatility is right; real surfaces show a smile or skew across strikes and a term structure across expiries.

What is implied volatility?​

Implied volatility is the volatility that, put into an option pricing model such as Black–Scholes, gives back the option's market price. It is found by root finding, for example with Newton's method, because the model can't be solved for volatility directly. It is quoted as an annualised percentage and reflects the move the market is pricing, not a forecast.

What is the difference between volatility smile and volatility skew?​

Both describe how implied volatility changes with strike at one expiry. A smile rises on both sides of the at-the-money strike, as in currency options. A skew slopes mainly one way: equity index options have much higher implied volatility for low-strike puts than for high-strike calls, a pattern that has persisted since the 1987 crash.

What does an inverted volatility term structure mean?​

An inverted term structure means short-dated options have higher implied volatility than longer-dated ones. It usually appears during market stress, when traders expect turbulence now but calmer markets later. The normal shape slopes upward. A bump at one expiry often marks a known event, such as an earnings release, that falls before that expiry.

How is a volatility surface constructed?​

Take mid-prices of out-of-the-money options at each strike and expiry, solve each for implied volatility, and fit a smooth curve per expiry, often with the SVI parameterisation. Then interpolate between expiries in total variance (volatility squared times time) and check that call prices are convex in strike and total variance rises with expiry, so the surface has no arbitrage.

How do I plot a volatility surface in JavaScript?​

Put the implied volatilities on a regular grid of strikes and expiries, then draw the grid as a 3D surface mesh with volatility as the height and colour. Add the smile and term structure as linked 2D line charts. In SciChart.js, a SurfaceMeshRenderableSeries3D over a UniformGridDataSeries3D draws the surface, and scichart-react or scichart-angular host the same code in React or Angular.

Sources​

  • Black, F. and Scholes, M. (1973), The Pricing of Options and Corporate Liabilities. Journal of Political Economy, 81(3), 637–654. The option pricing model and formula.
  • Hull, J. C. (2022), Options, Futures, and Other Derivatives, 11th edition. Pearson. The chapter on volatility smiles and surfaces: equity skew and its explanations, currency smiles, term structure, and implied vs historical volatility.
  • Rubinstein, M. (1994), Implied Binomial Trees. Journal of Finance, 49(3), 771–818. The S&P 500 index option smile before and after October 1987.
  • Gatheral, J. (2006), The Volatility Surface: A Practitioner's Guide. Wiley. SVI, surface dynamics and no-arbitrage conditions.
  • Gatheral, J. and Jacquier, A. (2014), Arbitrage-free SVI volatility surfaces. Quantitative Finance, 14(1), 59–71. SSVI, Durrleman's condition, butterfly and calendar arbitrage.
  • Lee, R. W. (2004), The moment formula for implied volatility at extreme strikes. Mathematical Finance, 14(3), 469–480. The limit on how fast implied variance can grow in the wings.
  • Brenner, M. and Subrahmanyam, M. G. (1988), A Simple Formula to Compute the Implied Standard Deviation. Financial Analysts Journal, 44(5), 80–83. The at-the-money starting guess for the implied volatility solver.
  • Carr, P. and Wu, L. (2009), Variance Risk Premiums. Review of Financial Studies, 22(3), 1311–1341. Implied variance above realised variance for index options.
  • Clark, I. J. (2011), Foreign Exchange Option Pricing: A Practitioner's Guide. Wiley. Delta quoting, risk reversals and butterflies for currency smiles.