Build the Position Size Formula in Four Cells
Posted: Thu Oct 29, 2026 10:14 am
Build the Position Size Formula in Four Cells
Goal: a spreadsheet that returns the lot size from four inputs, so sizing never depends on mental arithmetic.
Layout. Put your equity in cell B1, the risk percentage in B2, the stop distance in pips in B3, and the pip value per standard lot in your account currency in B4. Label each one in column A.
The formula for the lot size, placed in B5, is:
=ROUNDDOWN(B1*B2/(B3*B4),2)
The ROUNDDOWN function with two decimals applies the 0.01 lot step and always rounds in the safe direction. If your broker allows 0.001 steps, change the 2 to 3.
Test with numbers. B1 is 10000, B2 is 0.01 (formatted as 1 percent), B3 is 25, B4 is 10. The formula computes 100 divided by 250, which is 0.4, and displays 0.40.
Add a check row. In B6, compute the actual risk after rounding:
=B5*B3*B4
For the test, that is 100 dollars. Next to it, in B7, show the percentage of equity:
=B6/B1
Try a case where rounding matters: equity 3800, stop 25, pip value 10. The raw lot size is 0.152, the formula returns 0.15, and the actual risk is 37.50 dollars, 0.99 percent.
Add a warning cell that turns red if the actual risk exceeds your limit. For example, in B8: =IF(B7>B2,"OVER","OK").
Keep the pip value cell linked to a conversion table, as in a later drill, so it updates when exchange rates change.
Exercise: build it, and verify against three trades you sized by hand.
Goal: a spreadsheet that returns the lot size from four inputs, so sizing never depends on mental arithmetic.
Layout. Put your equity in cell B1, the risk percentage in B2, the stop distance in pips in B3, and the pip value per standard lot in your account currency in B4. Label each one in column A.
The formula for the lot size, placed in B5, is:
=ROUNDDOWN(B1*B2/(B3*B4),2)
The ROUNDDOWN function with two decimals applies the 0.01 lot step and always rounds in the safe direction. If your broker allows 0.001 steps, change the 2 to 3.
Test with numbers. B1 is 10000, B2 is 0.01 (formatted as 1 percent), B3 is 25, B4 is 10. The formula computes 100 divided by 250, which is 0.4, and displays 0.40.
Add a check row. In B6, compute the actual risk after rounding:
=B5*B3*B4
For the test, that is 100 dollars. Next to it, in B7, show the percentage of equity:
=B6/B1
Try a case where rounding matters: equity 3800, stop 25, pip value 10. The raw lot size is 0.152, the formula returns 0.15, and the actual risk is 37.50 dollars, 0.99 percent.
Add a warning cell that turns red if the actual risk exceeds your limit. For example, in B8: =IF(B7>B2,"OVER","OK").
Keep the pip value cell linked to a conversion table, as in a later drill, so it updates when exchange rates change.
Exercise: build it, and verify against three trades you sized by hand.