Skip to content
TotalFinance

Fit a volatility smile

Fit SVI, SABR or monotone interpolation to implied-volatility quotes and check the fit for butterfly arbitrage.

Run it

Live, in your browser. Nothing leaves this page.

Local
$100.00

USD

One expiry (2026-03-20), valued at 2026-01-02T21:00:00Z. Volatilities are decimals: 0.25 = 25%. SVI needs at least five strikes.

StrikeImplied vol
4%

decimal

Change any input; everything updates.

At-the-money volatility
22.45%
at 100
Lowest-strike wing
36.07%
at 72.00
Highest-strike wing
22.34%
at 132.00
Butterfly arbitrage
None found
0 violations on the check grid
SVI smile for 2026-03-20Dots are your quotes; the line is the fitted smile, extended 10% beyond the outermost strikes. At the money: 22.5%.
  • Fitted smile
  • Quotes
Spot 100
Show data (68 rows)
SeriesStrike · USDImplied volatility
Fitted smile$72.0036.07%
Fitted smile$73.0035.56%
Fitted smile$74.0035.05%
Fitted smile$75.0034.54%
Fitted smile$76.0034.03%
Fitted smile$77.0033.52%
Fitted smile$78.0033.02%
Fitted smile$79.0032.51%
Fitted smile$80.0032.00%
Fitted smile$81.0031.50%
Fitted smile$82.0030.99%
Fitted smile$83.0030.49%
Fitted smile$84.0029.98%
Fitted smile$85.0029.47%
Fitted smile$86.0028.97%
Fitted smile$87.0028.47%
Fitted smile$88.0027.97%
Fitted smile$89.0027.47%
Fitted smile$90.0026.97%
Fitted smile$91.0026.48%
Fitted smile$92.0025.99%
Fitted smile$93.0025.50%
Fitted smile$94.0025.03%
Fitted smile$95.0024.56%
Fitted smile$96.0024.10%
Fitted smile$97.0023.66%
Fitted smile$98.0023.24%
Fitted smile$99.0022.83%
Fitted smile$100.0022.45%
Fitted smile$101.0022.10%
Fitted smile$102.0021.78%
Fitted smile$103.0021.49%
Fitted smile$104.0021.24%
Fitted smile$105.0021.03%
Fitted smile$106.0020.85%
Fitted smile$107.0020.71%
Fitted smile$108.0020.61%
Fitted smile$109.0020.54%
Fitted smile$110.0020.49%
Fitted smile$111.0020.47%
Fitted smile$112.0020.48%
Fitted smile$113.0020.50%
Fitted smile$114.0020.54%
Fitted smile$115.0020.59%
Fitted smile$116.0020.66%
Fitted smile$117.0020.73%
Fitted smile$118.0020.82%
Fitted smile$119.0020.91%
Fitted smile$120.0021.00%
Fitted smile$121.0021.10%
Fitted smile$122.0021.20%
Fitted smile$123.0021.31%
Fitted smile$124.0021.42%
Fitted smile$125.0021.53%
Fitted smile$126.0021.65%
Fitted smile$127.0021.76%
Fitted smile$128.0021.87%
Fitted smile$129.0021.99%
Fitted smile$130.0022.11%
Fitted smile$131.0022.22%
Fitted smile$132.0022.34%
Quotes$80.0032.00%
Quotes$90.0027.00%
Quotes$95.0024.50%
Quotes$100.0022.50%
Quotes$105.0021.00%
Quotes$110.0020.50%
Quotes$120.0021.00%

Assumptions & conventions

What the calculation assumed, echoed by the library rather than hidden.

conventionsVersion
0.0.1
dayCount
ACT/365F
compounding
continuous
asOf
1,767,387,600,000
model
vol-surface:svi

Diagnostics & warnings

No warnings. Engine, method and convergence details:

surface.engine
vol-surface
surface.method
svi+total-variance
surface.converged
true
arbitrage.engine
arbitrage-report
arbitrage.method
calendar + butterfly
arbitrage.converged
true

Use it in your project

volatilitySurface fits a smile per expiry from quotes and returns a VolatilitySurface. impliedVolatility(strike, expiry) reads the fitted smile; slices expose the fitted parameters; arbitrage() checks butterfly and calendar conditions.

Sample inputs

7 hypothetical implied-volatility quotes for one expiry. Copy setup + call includes the quotes and the fit.

Preview
[
  {
    "strike": 80,
    "impliedVolatility": 0.32
  },
  {
    "strike": 90,
    "impliedVolatility": 0.27
  },
  {
    "strike": 95,
    "impliedVolatility": 0.245
  }
]
Complete setup · included when you copy
First call
const result = {
  atTheMoney: surface.impliedVolatility(100, '2026-03-20'),
  butterflyFree: surface.arbitrage().checks.butterfly,
};
console.log(result);
Output of this example
{
  "atTheMoney": 0.22450756528166754,
  "butterflyFree": true
}
Reproduce this entire calculator
Full result object

Both examples use the inputs of the last successful calculation. Displayed metrics are rounded; copied programs keep exact values. Every copy on this page is type-checked and executed against the packed package in CI.

Ask your AI agent

With the TotalFinance MCP server connected, your agent runs this calculation with the totalfinance_volatility_surface tool (on by default). The prompt below uses your current inputs.

Prompt

Use the TotalFinance MCP tool totalfinance_volatility_surface to fit a SVI smile to these implied volatilities by strike (spot 100, risk-free rate 4%): 80: 32%, 90: 27%, 95: 24.5%, 100: 22.5%, 105: 21%, 110: 20.5%, 120: 21%. Report the fit quality and any arbitrage violations.

Connect Claude, Cursor, VS Code, Codex or ChatGPT

What this calculates

volatilitySurface turns option quotes into a fitted implied-volatility surface. With one expiry, that surface is a smile. impliedVolatility(strike, expiry) reads the fitted smile anywhere, the slice exposes the fitted parameters, and arbitrage() checks the fit for butterfly and calendar arbitrage.

Choosing a model

  • SVI (raw stochastic-volatility-inspired) fits total variance with five parameters and is the usual choice for equity smiles. It needs at least five strikes.
  • SABR with β = 0.5 fits a stochastic-volatility model's implied-volatility approximation.
  • Monotone interpolation (PCHIP) passes through every quote and makes no shape assumption beyond them.

Reading the chart

Dots are your quotes and the line is the fitted smile, extended beyond the outermost strikes. Where the line leaves the quotes, the model is extrapolating. The butterfly metric reports whether the fitted smile implies a negative probability density anywhere on its check grid.

Edit this page on GitHub ↗Every code block on this site is executed in CI against the library.