Skip to content
TotalFinance

Analyze an option strategy

Build any multi-leg position, then read its expiration payoff, break-evens and maximum profit and loss.

Run it

Live, in your browser. Nothing leaves this page.

Local

Positive quantity is long, negative is short. Options trade in contracts of 100 shares; stock quantity is shares, with its entry price in the strike/price column.

TypeQuantityStrike / pricePremium

Change any input; everything updates.

Net debit
$267.00
USD paid to open
Maximum profit
$733.00
USD at expiration
Maximum loss
-$267.00
USD at expiration
Break-even
102.67
USD underlying
Profit or loss at expirationShaded green where the position makes money at expiration and red where it loses, including the premiums paid and received.
  • Net P&L at expiration
  • Profit
  • Loss
Break-even 102.67
Show data (121 rows)
Underlying price at expiration · USDNet P&L at expiration
$70.00-$267.00
$70.61-$267.00
$71.22-$267.00
$71.83-$267.00
$72.43-$267.00
$73.04-$267.00
$73.65-$267.00
$74.26-$267.00
$74.87-$267.00
$75.48-$267.00
$76.08-$267.00
$76.69-$267.00
$77.30-$267.00
$77.91-$267.00
$78.52-$267.00
$79.13-$267.00
$79.73-$267.00
$80.34-$267.00
$80.95-$267.00
$81.56-$267.00
$82.17-$267.00
$82.78-$267.00
$83.38-$267.00
$83.99-$267.00
$84.60-$267.00
$85.21-$267.00
$85.82-$267.00
$86.43-$267.00
$87.03-$267.00
$87.64-$267.00
$88.25-$267.00
$88.86-$267.00
$89.47-$267.00
$90.08-$267.00
$90.68-$267.00
$91.29-$267.00
$91.90-$267.00
$92.51-$267.00
$93.12-$267.00
$93.73-$267.00
$94.33-$267.00
$94.94-$267.00
$95.55-$267.00
$96.16-$267.00
$96.77-$267.00
$97.38-$267.00
$97.98-$267.00
$98.59-$267.00
$99.20-$267.00
$99.81-$267.00
$100.42-$225.33
$101.03-$164.50
$101.63-$103.67
$102.24-$42.83
$102.85$18.00
$103.46$78.83
$104.07$139.67
$104.68$200.50
$105.28$261.33
$105.89$322.17
$106.50$383.00
$107.11$443.83
$107.72$504.67
$108.32$565.50
$108.93$626.33
$109.54$687.17
$110.15$733.00
$110.76$733.00
$111.37$733.00
$111.98$733.00
$112.58$733.00
$113.19$733.00
$113.80$733.00
$114.41$733.00
$115.02$733.00
$115.63$733.00
$116.23$733.00
$116.84$733.00
$117.45$733.00
$118.06$733.00
$118.67$733.00
$119.28$733.00
$119.88$733.00
$120.49$733.00
$121.10$733.00
$121.71$733.00
$122.32$733.00
$122.93$733.00
$123.53$733.00
$124.14$733.00
$124.75$733.00
$125.36$733.00
$125.97$733.00
$126.57$733.00
$127.18$733.00
$127.79$733.00
$128.40$733.00
$129.01$733.00
$129.62$733.00
$130.23$733.00
$130.83$733.00
$131.44$733.00
$132.05$733.00
$132.66$733.00
$133.27$733.00
$133.88$733.00
$134.48$733.00
$135.09$733.00
$135.70$733.00
$136.31$733.00
$136.92$733.00
$137.52$733.00
$138.13$733.00
$138.74$733.00
$139.35$733.00
$139.96$733.00
$140.57$733.00
$141.18$733.00
$141.78$733.00
$142.39$733.00
$143.00$733.00

Assumptions & conventions

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

model
piecewise-linear expiration payoff
contractMultiplier
100
stockQuantity
shares, not scaled by the multiplier
premiums
caller-supplied, per share
costs
no commissions or slippage included
currency
USD

Diagnostics & warnings

  • Warning: Preset premiums are hypothetical Black–Scholes values, not market quotes. Expiration payoff is not the mark-to-market value before expiration.
bounded.profit
true
bounded.loss
true

Use it in your project

Returns a payoff report with named summary fields (netDebit, maxProfit, maxLoss, breakevens) and an ordinary points array. Each point has underlyingPrice and pnl; amounts include the 100-share multiplier and premiums. These explicit prices sample the same position as the chart.

First call
import { legs, strategy } from '@insiderfinance/totalfinance/strategy';

const position = strategy([
  legs.call({ strike: 100, premium: 3.02, quantity: 1 }),
  legs.call({ strike: 110, premium: 0.35, quantity: -1 }),
], { multiplier: 100 });
const underlyingPrices = [70,100,110,143];
const result = position.payoff({ prices: underlyingPrices });
console.log(result);
Output of this example
{
  "netDebit": 267,
  "netCredit": -267,
  "maxProfit": 733,
  "maxLoss": -267,
  "bounded": {
    "profit": true,
    "loss": true
  },
  "breakevens": [
    102.67
  ],
  "points": [
    {
      "underlyingPrice": 70,
      "pnl": -267
    },
    {
      "underlyingPrice": 100,
      "pnl": -267
    },
    {
      "underlyingPrice": 110,
      "pnl": 733
    },
    {
      "underlyingPrice": 143,
      "pnl": 732.9999999999995
    }
  ]
}
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_strategy_analyze tool (on by default). The prompt below uses your current inputs.

Prompt

Use the TotalFinance MCP tool totalfinance_strategy_analyze on this position: long 1 call strike 100 premium 3.02; short 1 call strike 110 premium 0.35. Report the breakevens, net debit or credit, maximum profit and maximum loss.

Connect Claude, Cursor, VS Code, Codex or ChatGPT

What this calculates

strategy(legs, { multiplier }) assembles a position from ordinary leg records. legs.call and legs.put take a strike, a per-share premium and a signed quantity (positive long, negative short); legs.stock takes a price and a signed share count. position.payoff() returns the net debit or credit, maximum profit and loss (or null when unbounded), the break-even prices and the P&L at every requested underlying price.

Reading the chart

The line is net profit or loss at expiration, including the premiums paid and received and the 100-share contract multiplier. Green shading is profit, red is loss, and dashed lines mark the break-evens. Before expiry a position is worth something different: use Explore scenarios to revalue it with time and volatility.

Presets are just legs

The preset menu fills the table with ordinary legs. Their premiums are hypothetical Black–Scholes values, not quotes. Edit any cell, add or remove legs, and the strategy is whatever the legs say: a named preset never constrains a custom combination. The full catalogue of named positions is in the strategy guide.

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