Transparency

Methodology & editorial standards

TradeRiskMath publishes free calculators and guides for traders and investors. Because we do not hold securities licenses, we ask you to trust the math, not us. This page documents every formula our tools use, where market data comes from and how fresh it is, the assumptions and limits behind each result, and the standards every guide must meet before it is published. If anything here does not match what a calculator shows, that is a bug, and we want to hear about it.

1. Calculator formulas

Every calculator runs entirely in your browser. The numbers you type are not sent to our servers unless you choose to save them to a free account. Share and contract counts are rounded down to whole units, because rounding up would put more money at risk than you asked for.

Position size (stocks and ETFs)

Shares = floor( Account × Risk % ÷ |Entry − Stop| )

Example: a $25,000 account risking 1% ($250) on a $100 entry with a $95 stop gives $250 ÷ $5 = 50 shares. Commissions and slippage are not included, so a gap through your stop can lose more than planned.

See it worked step by step: Sizing a stock trade

Options contracts

Contracts = floor( Risk $ ÷ (Premium × Stop % × 100) )

For a single call or put, risk per contract is the premium you would lose at your planned stop: premium × stop % × 100 (100 is the standard U.S. equity option multiplier). Example: a $3.20 premium with a 25% stop risks $80 a contract, so a $250 budget buys 3 contracts ($240 at risk). If you plan to hold to expiration with no stop, use a 100% stop: the whole premium is at risk. For spreads, max loss is the debit paid, or the width minus the credit, × 100. Early assignment and pin risk are outside the model.

See it worked step by step: Sizing an options trade

Futures contracts

Contracts = floor( Risk $ ÷ (Stop distance in ticks × Tick value) )

Tick sizes and values come from the exchange contract specifications (for example, the CME E-mini S&P 500 moves in 0.25-point ticks worth $12.50). Margin is shown for context only; it does not cap your loss.

Forex and metals lot size

Lots = Risk $ ÷ (Stop in pips × Pip value per standard lot)

Pip value is converted to your account currency at the latest quote. Gold, silver, platinum and palladium use ounce-based lot sizes, priced from the matching COMEX/NYMEX futures contract when spot data is unavailable.

Risk-to-reward and break-even win rate

R = (Target − Entry) ÷ (Entry − Stop); Break-even win rate = 1 ÷ (1 + R)

A 1:2 setup (R = 2) breaks even at a 33.3% win rate before costs. The calculator reports the ratio; it cannot tell you the probability that the target is reached.

Expectancy and profit factor

Expectancy = (Win % × Average win) − (Loss % × Average loss); Profit factor = Gross wins ÷ Gross losses

Expectancy is the average result per trade. A positive number only describes the sample you entered; small samples (under about 30 trades) can be badly misleading.

Expectancy in R = Expectancy ÷ Average loss; Kelly % = Win % − Loss % ÷ (Average win ÷ Average loss); Expected worst losing streak in N trades ≈ ln(N) ÷ −ln(Loss %)

Example: a 30% win rate with a $750 average win and a $250 average loss gives +$50 a trade, or 0.20R. Kelly is 0.30 − 0.70 ÷ 3 = 6.7%; most traders risk half of that or less. Over 100 trades, expect a worst run of about ln(100) ÷ −ln(0.70) ≈ 13 losses in a row, which is why the risk per trade matters more than the win rate.

See it worked step by step: Turning one trade into a system

Dividend income and yield

Annual income = Shares × Annual dividend per share; Yield = Annual dividend ÷ Price; Yield on cost = Annual dividend ÷ Cost per share

With reinvestment, dividends buy more shares at a price that rises at the same rate as the dividend, so the yield stays constant at your yield on cost; no taxes are deducted. Dividends are not guaranteed and can be cut; tax treatment depends on the holding-period rules in IRS Publication 550.

See it worked step by step: Building dividend income

Budget, net worth and emergency fund

Net worth = Assets − Liabilities; Emergency fund target = Monthly essential expenses × Months of cover

The budget tool supports 50/30/20 (needs, wants, savings) and zero-based plans (income − every allocation = 0). Emergency fund targets of 3 to 6 months are a common planning range, not a rule.

Debt payoff (avalanche vs snowball)

Monthly interest = Balance × APR ÷ 12; extra payment goes to the highest APR (avalanche) or smallest balance (snowball)

The schedule is simulated month by month until every balance reaches zero. Fees, promotional rates and minimum-payment changes are not modeled.

See it worked step by step: Paying off four debts

Charts: indicators and the trade plan overlay

SMA = average of the last N closes; EMA weight = 2 ÷ (N + 1); Bollinger = SMA 20 ± 2 standard deviations; RSI 14 and ATR 14 use Wilder smoothing; MACD = EMA 12 − EMA 26, signal = EMA 9 of MACD; VWAP = Σ(typical price × volume) ÷ Σ volume, typical price = (High + Low + Close) ÷ 3

When you place a trade plan on the chart, the stop starts 1.5 × ATR(14) from your entry and the target at 2R; you can drag either line. Size then uses the same formulas as the calculators above for the trade type you pick: shares for stocks, contracts × point value for futures, lots (rounded down to 0.01) for forex, and contracts for options. For options the chart estimates risk per share as the smaller of the premium and the stock's move to your stop × delta, a straight-line approximation that ignores gamma, time decay and volatility changes, so confirm the size in the options calculator. Example: a $200 entry with an ATR of $4 puts the stop at $194 and the target at $212; a $25,000 account risking 1% ($250) can buy floor($250 ÷ $6) = 41 shares, risking $246. VWAP is shown on intraday charts only, and it resets each session.

Try it: open the Charts tool

2. Market data: sources, delays and gaps

Quotes, price history, earnings dates, dividend dates and economic releases come from third-party feeds (Yahoo Finance for quotes and history, Nasdaq for earnings and dividend calendars, and Forex Factory for the economic calendar; the dividend calculator's ticker auto-fill uses StockAnalysis.com, cross-checked with Yahoo Finance where both publish data). To keep pages fast, shared market data can be cached for up to 5 minutes, and the providers themselves may delay quotes. Chart candles come from Yahoo Finance; daily and weekly bars include the current session, intraday bars (5-minute to 1-hour) can be delayed by about 15 minutes, and earnings markers come from Nasdaq. The market dashboard's weekly catalysts list is rebuilt every trading day at 8:00 AM Eastern time. Mutual funds and money market funds price once a day after the close, so their price will show the previous net asset value during the trading day. When a feed is unavailable we show an empty state rather than estimates. Data is for education and planning only; always confirm prices with your broker before you place an order.

3. Assumptions and limits

  • Results are hypothetical models of the inputs you provide. They are not recommendations to buy or sell anything.
  • Stops are treated as filled at the stop price. In real markets, gaps and fast moves can fill a stop order at a worse price (see the SEC bulletin linked below).
  • Taxes, commissions, borrowing costs and currency conversion fees are excluded unless a field asks for them.
  • Market holiday and early-close schedules follow the NYSE published calendar and are updated each year.

4. How guides are written and reviewed

Guides are published under the TradeRiskMath Editorial Team name. Every new or updated article is reviewed by the founder before publication (see who is behind TradeRiskMath). Our standards:

  • Worked examples are recalculated. Every number in an example is re-run before publishing, ideally through the matching calculator, so the guide and the tool agree.
  • Rules link to primary sources. Regulatory and contract facts (order types, options risks, futures specifications, tax holding periods) are checked against the SEC, CFTC, OCC, CME Group, IRS or Federal Reserve rather than secondary blogs.
  • Risks are stated next to the reward. Every strategy guide explains how it loses money, not only how it makes money.
  • No paid placements. We do not accept payment to mention or rank a broker, product or service. If that ever changes, the page will say so clearly.
  • Updates are dated. Each guide shows when it was last updated, and older guides are reviewed on a rolling basis.
  • AI tools are disclosed. We use AI writing tools to help research, draft and edit some guides, figures and examples. AI output is treated as a first draft, never as a source, and every guide meets the standards above, however it was drafted.

5. Corrections

If you find an error in a formula, an example or a fact, email support@traderiskmath.com with the page address and the section. We fix confirmed errors and update the page date. You can also reach us through the contact page.

6. Primary sources we rely on

TradeRiskMath is an educational tool, not a broker-dealer, commodity trading advisor or investment adviser, and nothing on this site is personalized advice. See the financial disclaimer and privacy policy.