Complete Suite: all 12 tools. 6 Premium desks inside.All 12 tools $606.98 one by one

$606.98 one by one $97 once Save $509.98Get the SuiteGet it

Backtest sample size calculator

Enter your win rate and R, or paste your trades, and see how many trades your backtest needs.

Updated 5 November 2026. Runs in your browser; nothing you type is uploaded.

Example: 45% at 1.8R0 of 16 paths hit the ruin line

From your backtest so far, or the rules' target.

1 R is the amount you risk on a trade.

Usually 1 with a fixed stop; more if stops slip.

Spread, commission and slippage as a share of 1 R.

How tightly you want the win rate pinned down.

Expectancy +0.21R a trade, spread 1.39R

170 trades for a 95% interval above zero

(1.96 × 1.393 ÷ 0.210)² ≈ 169.0, so from trade 170 on, the interval's lower end is above 0R. The smaller the edge against the spread, the more trades it takes.

Win rate within ±5 points

377 trades

How wide the 95% intervals stay at each sample size
TradesExpectancyWin rate
30−0.29R to +0.71R28.8–62.3%
50−0.18R to +0.60R32.1–58.7%
100−0.06R to +0.48R35.6–54.8%
200+0.02R to +0.40R38.3–51.9%
500+0.09R to +0.33R40.7–49.4%
1,000+0.12R to +0.30R41.9–48.1%

Share this calculator

Post on XPost to Reddit
Embed or cite it on your site

Free on any site, blog, Notion page or Substack: paste this code to show the live calculator. The credit line is optional; keep it, edit it, add rel="nofollow" or remove it.

<iframe src="https://proea.app/embed/tools/backtest-sample-size-calculator" title="Backtest sample size calculator" loading="lazy" referrerpolicy="strict-origin-when-cross-origin" style="display:block;width:100%;height:820px;border:0;border-radius:12px"></iframe>
<p style="font-size:12px">Backtest sample size calculator by <a href="https://proea.app/en/tools/backtest-sample-size-calculator?utm_source=embed&utm_medium=referral&utm_campaign=backtest-sample-size-calculator">ProEA</a></p>

Writing about it instead? Cite the method and link the page:

The math: trades ≈ (z × σ ÷ expectancy)²

How many trades should you backtest?

Enough for the edge to clear its own noise. At 45% wins, +1.8R / −1R and 0.05R of costs (+0.21R a trade), that is 170 trades at 95% confidence.

Why there's no single number

The count depends on two things: how big the average trade is (+0.21R here) and how much single trades swing around it (1.39R here). The interval around the average narrows with the square root of the trades, so the count grows with the square of swing ÷ edge. Raise the costs to 0.155R and the edge halves to +0.11R: the count goes from 170 to 677. That's why rules of thumb (30, 100, 500 trades) disagree: each fits some strategy. Our review plan turns the same arithmetic into check-points and kill rules you write down before you start.

Is 100 trades enough?

Often not. On the example above, 100 trades put expectancy anywhere from −0.06R to +0.48R at 95%: zero is still inside.

What 100 trades does tell you

It is plenty to find operational faults: a rule you can't apply the same way twice, a stop that slips, costs far above what you assumed. It tells a large edge from zero (a 55% system at 2R / 1R clears zero well before 100 trades); it rarely tells a small one. Paste your own R results into the calculator: it says whether your interval already clears zero, and if not, about how many more trades the same edge and spread would need.

How many trades to know your win rate?

To pin a 45% win rate within ±5 points at 95% confidence: 377 trades. A win rate on its own also says nothing about the edge.

The interval this uses

The Wilson score interval, the one our review plan uses: after 30 trades an observed 50% fits anything from 33.2% to 66.8%; after 100, 40.4% to 59.6%. A win rate only means something next to the average win and loss, which is why the calculator counts trades for expectancy first. The expectancy calculator gives the break-even win rate for your payoffs.

Count trades that are really separate

The arithmetic assumes each trade is independent. Ten trades taken in the same move are closer to one.

Spread the sample across conditions

Trades taken in the same session, on correlated pairs or in one trend move tend to win or lose together, so they count for less than their number. Spread the backtest across months and market conditions (a trend, a range, a news-heavy week): 300 trades from one quiet month say less than 300 from three different years. And a backtest you tuned on the same data it's scored on will look better than it trades; keep the last stretch of history unseen until the rules are fixed. The Monte Carlo simulator shows how far equity paths drift apart on the same edge.

Where manual backtest trades come from

Bar replay: the chart hides the future and you trade it one bar at a time. TradingView and FX Replay both do it, with different limits.

FX Replay's limits per plan, read
FX Replay planSessionsTrades per sessionHistory kept
Beginner (free)2501 week
Intermediate102006 months
ProUnlimitedUnlimitedforever

From FX Replay's Plans & Pricing Compared (updated 3 October 2026), which also says the session limit “counts every session on your account. It doesn't reset when your subscription renews”. So the free plan holds 100 trades at a time, Intermediate 2,000, and Pro has no cap. TradingView's Bar Replay works on every plan for daily bars and needs a paid plan for minute bars: how to backtest on TradingView has its limits and steps. The FX Replay plan picker works out which FX Replay plan the rest of your setup needs.

Method and privacy

Method: Trades needed = the smallest n where expectancy's two-sided interval, E ± z·σ/√n, sits above 0R. With planned numbers each trade is a win of the average win or a loss of the average loss, so σ = (win + loss)·√(p(1 − p)); with pasted results, σ is your trades' own standard deviation. The win-rate count uses the Wilson interval. Both assume independent trades and an edge that doesn't change; they can't see overfitting, a different market regime or costs you leave out.

Calculations run entirely in your browser — nothing you type is uploaded. Your last numbers stay in this browser so you can pick up where you left off; Forget them clears them. A link with your numbers carries them after the # sign, which browsers do not send to servers, and the page takes them out of the address before any analytics loads. Copy and download actions save your calculation locally. The site may record coarse tool actions under its privacy policy, without inputs, results, file contents or filenames.

Common questions

How many trades do you need to backtest a strategy?

As many as it takes for the edge to stand clear of its own noise, so it depends on your numbers. A strategy that wins 45% of the time at an average win of 1.8R, an average loss of 1R and 0.05R of costs earns +0.21R a trade, and needs 170 trades before the 95% interval on that average sits above zero. Halve the edge and you need about four times the trades.

Is 100 trades enough for a backtest?

Often not. On the numbers above, 100 trades still put expectancy anywhere from −0.06R to +0.48R at 95% confidence, which includes zero. A bigger edge or steadier trades need fewer; a small edge, or trades whose results vary a lot, need more.

How many trades do I need to know my win rate?

More than most people think. To pin a 45% win rate within ±5 points at 95% confidence takes 377 trades; within ±10 points, 92. After 30 trades, an observed 50% is still consistent with anything from 33.2% to 66.8%.

Why does a smaller edge need so many more trades?

Because the count grows with the square of spread divided by edge. The interval narrows with the square root of the number of trades, so to make it half as wide you need four times as many.

Do backtest trades in bar replay count as a sample?

Yes, as evidence about the rules on the period you replayed, with the fills and costs you assumed. Spread them across different months and market conditions; 300 trades from one quiet month say less than 300 from three different years.

Can I paste my own trades?

Yes: switch to "My trades, in R" and paste one result per trade, with a full loss as −1. The calculator uses your trades' own average and spread, says whether the interval already clears zero, and if not, roughly how many more trades the same edge would need. Nothing is uploaded.

Test a strategy, or measure your own trades

  • Pine Quant Studio Five kill-gates for a TradingView strategy: one in-sample/out-of-sample split, real costs, Monte Carlo and a deflated Sharpe. $59 once.
  • TradeLens journal Imports your MT4, MT5 or CSV history and prices your biggest leaks in dollars: revenge trades, trades without a stop, oversized trades.

Goes deeper

Limits and trading risk

These tools calculate from your inputs, supported historical records or explicitly labelled teaching examples. They do not verify a live account, predict future returns or confirm that a broker or prop-firm rule has been met. Missing costs, floating losses and changed market conditions can materially change outcomes. Trading can lose the capital committed to it; check the stated method and your account specifications.

Read the risk disclosure