---
license: cc0-1.0
task_categories:
- tabular-classification
- other
language:
- en
tags:
- finance
- risk-management
- forex
- trading
- position-sizing
- reference-data
size_categories:
- n<1K
pretty_name: Position Sizing Reference Data
---
# Position Sizing Reference Data
Interactive calculator: [positionsizetool.com](https://positionsizetool.com/) · Source and formulas: [GitHub](https://github.com/tk25719/position-sizing-data) · Citable archive: [doi:10.5281/zenodo.22840538](https://doi.org/10.5281/zenodo.22840538) · Packages: [PyPI](https://pypi.org/project/position-sizing-data/) · [npm](https://www.npmjs.com/package/position-sizing-data)
Four small CSVs behind the question "how many units should I trade?", with the formulas that generate them. No dependencies, no API keys.
## Formula
```
units = (risk_budget - commission) / ((|entry - stop| + spread) x quote_to_account_rate)
```
Tradable size is that result rounded **down** to the broker's unit step. Rounding up raises ri…