All tools

Position Size & Risk Calculator

Math

Given account size, risk percent per trade, entry price, and stop-loss price, compute the position size (share/unit count), dollar amount at risk, and the risk/reward ratio against an optional target price

Enter your account size, how much of it you're willing to risk on a single trade, and your entry and stop-loss prices, and this works out exactly how many shares or units to buy so a stop-out costs you that risk amount, not more. It floors the result to a whole unit, so the actual dollar risk at that size is reported alongside your target risk amount and is usually a touch lower. Add an optional target price to get the risk/reward ratio and a check that the target actually sits on the correct side of entry for the direction the stop implies. It is pure arithmetic over the numbers you type in: no live quotes, no brokerage connection, and nothing is sent anywhere.

financetradingrisk-managementposition-sizingstop-loss

How to use Position Size & Risk Calculator

  • 1.Enter your account size and the percent of it you're willing to risk on this trade.
  • 2.Enter the entry price and stop-loss price; the trade direction (long or short) is inferred from which side the stop sits on.
  • 3.Optionally add a target price to see the risk/reward ratio and whether the target is on the correct side of entry.

Frequently asked questions

Why is my actual dollar risk lower than the risk amount I set?
Position size is floored to a whole share or unit, since you can't buy a fraction of a share on most exchanges. That rounding means the actual dollar risk at the floored size is usually a little below your target risk amount, never above it.
How does it know if this is a long or short trade?
From the stop-loss price's position relative to entry: a stop below entry means long, a stop above entry means short. There's no separate direction field to set.
Does it check live prices or account balances?
No. This is a pure calculator over the numbers you type in. It never fetches a quote and never connects to a brokerage account.
What does it do if my target price is on the wrong side of entry?
It still computes a risk/reward ratio from the raw price distance, but flags that the target doesn't make sense for the inferred direction, for example a target below entry on a long trade.

Use via API, SDK, or MCP

cURL# Free: 1,000 req/day · Pro: 10,000 req/day
curl -X POST https://api.utilix.tech/v1/tools/position-size-risk-calculator \
  -H "Authorization: Bearer utx_live_..." \
  -H "Content-Type: application/json" \
  -d '{"accountSize":10000,"riskPercent":1,"entryPrice":50,"stopLossPrice":48,"targetPrice":56}'

Get an API key from your dashboard · Full API docs →