Skip to content
Apps by Flavio

How to calculate position size for stocks, futures and forex

By Flavio

Divide the money you're willing to lose by what one share, contract or lot loses at your stop, then round down. Here's the math worked out for a stock, an ES and MES futures trade and two forex pairs, and the shorter way on a Mac.

You found the trade: the entry is here, the stop is there. Now the order ticket asks for a quantity, and you want the number that loses a fixed amount if the stop is hit, not a round number that felt right.

The short answer: work out how much you’re willing to lose on this trade, work out how much one share (or contract, or lot) loses between the entry and the stop, divide the first by the second, and round down.

A calculator for your own numbers, not financial advice. The 1% in these examples is an example, not a suggestion. The prices are made up.

What’s the formula?

Two numbers, then a division:

  • Risk budget = account × the risk you pick. With a $25,000 account and, for example, 1%, that’s $250.
  • Risk per unit = what one unit loses if the price goes from the entry to the stop.
  • Position size = risk budget ÷ risk per unit, rounded down to what your broker accepts.

Always down. Rounding up puts you over your budget.

The only part that changes between markets is the risk per unit:

MarketOne unit isRisk per unit
StocksOne shareEntry − stop
FuturesOne contractTicks to the stop × tick value
ForexOne lot (100,000 units)Pips to the stop × pip value per lot
CryptoOne coinEntry − stop
How a position size is worked outThe account times the risk you pick gives the risk budget. The distance from the entry to the stop, turned into money for one share, contract or lot, gives the risk per unit. The budget divided by the risk per unit, rounded down to what the broker accepts, is the position size. If it rounds down to zero, one unit is already more than the budget.YesNoAccount × risk youpickRisk budget, like$250Entry to stop, inmoney for one unitRisk per unitBudget ÷ risk perunitRound down toshares, contracts,lots or stepsMore than zero?Position sizeOne unit risks morethan the budget

How do I calculate it for a stock?

Entry 50, stop 48.50, a long trade, on that $25,000 account at 1%.

  • Risk per share: 50 − 48.50 = $1.50
  • Size: $250 ÷ $1.50 = 166.67, rounded down to 166 shares
  • Real risk: 166 × $1.50 = $249
  • Position value: 166 × $50 = $8,300, about a third of the account

That’s it for stocks. The rounding is why you risk $249 and not $250.

How do I calculate it for futures?

A futures contract moves in ticks, the smallest price step, and each tick is worth a fixed amount of money. The E-mini S&P 500 (ES) moves in ticks of 0.25 points, and each tick is $12.50 a contract, so one point is $50. The Micro E-mini (MES) has the same 0.25 tick, worth $1.25.

Entry 5000, stop 4990:

  • Distance: 10 points, or 10 ÷ 0.25 = 40 ticks
  • ES risk per contract: 40 × $12.50 = $500
  • Size: $250 ÷ $500 = 0.5, rounded down to 0 contracts

Zero is the right answer. One ES contract at that stop loses twice your budget. Your choices are a closer stop (20 ticks would fit one contract), a bigger budget ($500), or a smaller contract:

  • MES risk per contract: 40 × $1.25 = $50
  • Size: $250 ÷ $50 = 5 MES contracts, risking exactly $250

Notice how big those five contracts are: 5 × 5000 × $5 = $125,000 of exposure on a $25,000 account. Your broker asks for margin, not the full value, but the loss is counted on the full value.

How do I calculate it for forex?

A pip is the fourth decimal of most pairs (0.0001), or the second for pairs quoted in yen (0.01). A standard lot is 100,000 units of the first currency, a mini lot 10,000 and a micro lot 1,000.

On EUR/USD with a dollar account, one pip on a standard lot is 100,000 × 0.0001 = $10. Entry 1.0850, stop 1.0825:

  • Distance: 25 pips
  • Risk per lot: 25 × $10 = $250
  • Size: $250 ÷ $250 = 1.00 lot

When the pair is quoted in another currency, convert the pip value first. On EUR/GBP a pip on a lot is £10, so with 1 GBP = 1.27 USD it’s $12.70. Entry 0.8600, stop 0.8570:

  • Distance: 30 pips
  • Risk per lot: 30 × $12.70 = $381
  • Size: $250 ÷ $381 = 0.656 lots, rounded down to micro lots: 0.65 lots (65,000 units), risking $247.65

Crypto works like stocks, with the exchange’s step size instead of whole shares. Entry 60,000, stop 58,500 on a $250 budget gives 0.16666 coins, which is 0.1666 with a 0.0001 step.

Can I do it for free?

Yes, and for one market it’s quick.

  • The Calculator app that comes with the Mac does the division. You still look up the tick value or pip value, convert the currency, and round to the right step yourself.
  • A spreadsheet in Numbers or Excel can hold every formula above, with a table of tick values. You build it, keep it right, and keep the file open.
  • Free web calculators, like the position size calculators on Babypips and Myfxbook, do the forex math for you. They’re free and work well. Each trade means going back to the browser tab and filling in the form again.
  • Some broker platforms can size an order from a risk amount in the order ticket. If yours does, that’s the shortest way. Many tickets only show the order’s value.

Do it with Position Size Calculator

Position Size Calculator is a Mac app I made for this. It costs $19, paid once. It lives in the menu bar and opens from any app with Option-Command-P, with your account already filled in. The screenshots are from a test Mac with made-up prices.

Pick Stocks, Futures, Forex or Crypto, type the risk as % or an amount, then the Entry and the Stop. The size updates as you type. Here’s the stock trade from above:

Position Size Calculator on Stocks with Account 25000 USD, Risk 1 %, Long, Entry 50, Stop 48.50 and Target 54; the result reads 166 shares, Dollar risk $249.00 of $250.00 budget, Position value $8,300.00, 33.2% of account, Stop 48.5, 1.5 away, Reward : risk 2.67 : 1, the note Rounded down to whole shares, so you'd risk $249.00 of your $250.00 budget, and the Copy Size (166) button

Press Command-C or Return and 166 is on the clipboard, with no unit after it, ready for the quantity field. The calculation goes into History, so you can fill the form with it again later.

For futures, pick the Contract. ES and MES are two of the 16 CME Group contracts built in, with their tick values. With the same 5000 and 4990, ES gives 0 contracts and a sentence that says why:

Position Size Calculator on Futures with ES · E-mini S&P 500, Entry 5000 and Stop 4990: 0 contracts in orange, Risk per contract $500.00, 40 ticks away, and the warning Risk too small for one contract: one ES contract risks $500.00 at this stop (40 ticks × $12.50), more than your $250.00 budget, so the size is 0. One contract fits with a stop up to 20 ticks away, or a budget of at least $500.00. For comparison, one MES (Micro E-mini S&P 500) risks $50.00 at the same stop.

Switch the contract to MES and the menu bar calculator shows 5 contracts, with the orange warning about the $125,000 position:

The menu bar calculator on Futures with MES · Micro E-mini S&P 500, Entry 5000, Stop 4990: 5 contracts, Dollar risk $250.00 of $250.00 budget, Position value $125,000.00, 500% of account, Risk per contract $50.00, and a warning that the position is worth 5× the account and needs leverage or margin

For forex, type the pair and pick Round to micro, mini or standard lots. EUR/GBP on a dollar account brings up a Rate row, “1 GBP = [ ] USD”, where you type the rate from your broker. With 1.27 it shows the 0.65 lots worked out above, and the notes say what it converted and how it rounded.

Position Size Calculator on Forex with EUR/GBP, Round to Micro lots (1,000), Rate 1 GBP = 1.27 USD, Entry 0.8600, Stop 0.8570 and Target 0.8660: 0.65 lots (65,000 units), Dollar risk $247.65 of $250.00 budget, 30 pips away, Reward : risk 2 : 1, a leverage warning, and the notes Converted at 1 GBP = 1.27 USD and Rounded down to micro lots (1,000 units)

Which way should you use?

Calculator appSpreadsheetWeb calculatorPosition Size Calculator
CostFreeFreeFree$19, paid once
Tick and pip valuesYou look them upYou type them in onceForex built inBuilt in, plus your own contracts
Rounds to contracts, lots, stepsBy handWith formulasUsuallyYes
Explains a size of 0NoNoRarelyYes, in a sentence
Opens from any appNoNoBrowser tabOption-Command-P
Live pricesNoIf you connect themSomeNo, you type them

If you trade one stock market and the Calculator app takes you ten seconds, keep doing that. The app helps when you switch between stocks, futures and forex, and when you want the number on the clipboard without leaving the chart.

None of these ways include fees, commissions, slippage or spreads, and none knows your broker’s margin. The size is the loss at the stop if the order fills at your prices.

Get Position Size Calculator

Work out how many shares, contracts, lots or coins fit the risk you pick, for stocks, futures, forex and crypto, from the menu bar.

See Position Size Calculator → · Read the docs · $19. See the app page for tax details.

More trading and investing tutorials → · All app tutorials →