Skip to content

Guides Guides

Probability of profit

Send any position, up to 8 option legs plus stock, to POST /pop and get the chance it makes money, where it breaks even, and the most it can make or lose.

A credit spread at your own prices

Give each leg's price (per share) to use your broker's fills instead of the delayed market price.

curl -X POST https://www.optionsprofitcalculator.com/api/v1/pop \
  -H "Authorization: Bearer $OPC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "symbol": "SPY",
    "legs": [
      {
        "type": "put",
        "action": "sell",
        "strike": 600,
        "expiry": "2026-12-18",
        "price": 5.1
      },
      {
        "type": "put",
        "action": "buy",
        "strike": 590,
        "expiry": "2026-12-18",
        "price": 2.7
      }
    ]
  }'

This spread takes in $2.40 a share, so netCost is -240 (a credit) and maxLoss is $760.

A covered call

Add a stock leg with a quantity in shares. Its price defaults to underlyingPrice.

curl -X POST https://www.optionsprofitcalculator.com/api/v1/pop \
  -H "Authorization: Bearer $OPC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "symbol": "AMD",
    "underlyingPrice": 165,
    "legs": [
      {"type": "stock", "action": "buy", "quantity": 100, "price": 165},
      {
        "type": "call",
        "action": "sell",
        "strike": 180,
        "expiry": "2027-03-19",
        "price": 4.1
      }
    ]
  }'

Reading the result

  • probabilityOfProfit: the chance of making at least $0.01 at the earliest expiry, from 0 to 1.
  • probabilityOf50PctMaxProfit, probabilityOf75PctMaxProfit, probabilityOfMaxProfit: useful for deciding when to take profits.
  • breakevens: stock prices at expiry, each with profitWhen above or below.
  • maxProfit and maxLoss, with maxProfitUnlimited / maxLossUnlimited for naked positions.
  • collateral: estimated margin for naked short options.

How it's calculated

A lognormal model of the stock price, with the 30-day implied volatility (IV30), the same as the calculator. Pass iv30 to use your own volatility, or underlyingPrice to evaluate at a different stock price.

Note

Probability of profit is a statistical estimate, not a prediction. Real prices jump, and volatility changes.