Best Portfolio Backtesting Software in 2026, an Honest Comparison
Portfolio backtesting tools compared on price and what each is for, the five things that decide whether a backtest is trustworthy, and how to test a basket.
July 2026 · Indexes
Pick 2 to 10 holdings. Stocks, ETFs and crypto mix in one index.
The backtest did not run just now. Tap Backtest it to try again.
Educational only · Never places a trade
The best portfolio backtesting software depends on what you are testing: Portfolio Visualizer is the deepest tool for asset-allocation questions and charges $30 to $55 a month, testfolio is the fastest free option for quick fund comparisons, and Indexes is built for the case the others handle badly, testing a custom weighted basket of individual stocks or crypto and then keeping it tracked as a named index. Most people pick the wrong one because they never separate the two questions a backtest can answer. This article separates them, compares the real options with verified pricing, and covers the mistakes that make a backtest worse than useless. It is educational and is not investment advice.
Short on time? The custom index builder pricing comparison lines up every plan from Portfolio Visualizer, testfol.io, Composer, Koyfin and Indexes on one table.
Publishing a basket to readers? See model portfolio software for newsletters and research desks.
Two different questions, two different tools
Almost every backtesting question falls into one of two buckets, and the tools are not interchangeable between them.
The first is an allocation question: how would 60% stocks and 40% bonds have done against 80/20, what does adding gold do to the drawdown, how much does a monthly rebalance matter. You are testing a mix of broad funds, and the answer comes from decades of index history. This is the classic portfolio backtesting problem and it is well served.
The second is a construction question: I have twenty specific companies, what happens if I weight them equally instead of by market cap, how does that basket compare against the S&P 500, what would capping the largest position at 8% have done. You are testing a basket you designed, at the individual holding level. Most allocation tools handle this awkwardly because they were built around funds, not around an index you author.
Work out which question you have before you pick a tool. Choosing the deepest allocation platform for a construction question is how people end up fighting the software.
If you already know yours is the construction question and you want to backtest a portfolio of individual holdings you have chosen yourself, that is the workflow to start from rather than any of the fund-level tools compared below.
The options compared
Pricing verified in July 2026 from each vendor's own pages. Software pricing changes; confirm before subscribing.
| Tool | Pricing | Best for | Main limitation |
|---|---|---|---|
| Portfolio Visualizer | Free tier; Basic $30/mo; Pro $55/mo | Asset allocation, factor regressions, Monte Carlo | Free tier caps at 15 assets with limited history and no month-to-date |
| testfolio (pricing by tier) | Free to use, paid Pro tiers | Fast fund and allocation comparisons, simulated long histories | Fund-centric; not built for authoring a named index |
| Indexes | From $24/mo | Custom weighted baskets of individual stocks and crypto, kept tracked | Not an allocation research suite; no factor regressions |
| Spreadsheet | Free | Full control, auditable formulas | You build and maintain everything, and errors are silent |
Portfolio Visualizer's free tier is genuinely useful for a first look, but the limits bite quickly: up to 15 assets, limited history, and no current month-to-date results. The Basic and Pro plans lift that to 150 assets and add year-to-date figures, with Basic allowing 50 saved portfolio models and Pro 150.
What is the best free portfolio backtesting tool?
For allocation questions, Portfolio Visualizer's free tier and testfolio both do the job, and testfolio is faster for quick side-by-side fund comparisons. The honest caveat is that free tiers are designed to be outgrown: the asset caps, missing recent data and limited saved models are exactly the constraints that matter once you are doing this regularly rather than once. If you are testing a basket of twenty individual stocks with custom weights, the free tiers will not get you there at all. PortfoliosLab sits in the same free-first bracket with better crypto coverage, and our PortfoliosLab alternatives comparison covers when its risk reports are enough and when you need a tracked index instead.
What makes a backtest trustworthy
The software is the easy part. Whether the result means anything comes down to five things, and every one of them is on you rather than the tool.
Survivorship. If your holdings list only contains companies that still exist, your backtest has already been rigged in your favor. The companies that failed are missing, and their absence flatters the result in a way that no amount of extra history fixes.
Window selection. Start and end dates are the single largest lever on any backtest result, and it is very easy to choose them unconsciously. Run every test over multiple windows, always including at least one severe drawdown, and be suspicious of any strategy that only works from one particular start date.
Costs and taxes. A frictionless backtest overstates every strategy that trades. In a US taxable account each rebalance realizes gains, and a quarterly reset on a twenty-name basket generates a lot of them. The turnover that looks free on screen is the most expensive thing about many of these strategies.
Drawdown over return. The return figure tells you what the strategy earned. The maximum drawdown tells you whether you would still have been holding it at the end. Most abandoned strategies were abandoned because of the second number, not the first.
Degrees of freedom. Every parameter you tune, weighting scheme, rebalance cadence, drift band, holding count, is another chance to fit the past. Twenty variations tested means the best one is partly luck. More on this in backtesting pitfalls.
What investment research tools best support systematic stock backtesting with realistic slippage and commissions?
For systematic stock strategies where trading costs decide the result, QuantConnect's open-source LEAN engine is the strongest widely available choice, because fees and slippage are explicit models you control. Per its documentation, LEAN "uses transaction fee models in backtesting to model the live trading fees you would incur," and the default brokerage model applies the Interactive Brokers fee model to US equities. Slippage is the trap: the same default uses a null slippage model, "zero slippage for all securities," until you set one such as the volume-share model.
So the honest checklist for any tool is three questions. Does it charge a commission per order, and is that the schedule of the broker you will actually use? Does it model slippage at all, and is the default zero? Does slippage grow with your order size relative to the stock's traded volume, which is what matters for small caps? A tool that says yes to the first and quietly no to the second will flatter any high-turnover strategy.
Indexes sits at the other end of that spectrum on purpose. It answers the construction question for a basket you hold and rebalance a few times a year, and its methodology states plainly that no trading costs, taxes or slippage are deducted. For a quarterly-rebalanced twenty-name index that is a small error. For a strategy that trades daily it would be the whole answer, so use an engine built for execution modeling.
| Tool | Commissions modeled | Slippage modeled | Built for |
|---|---|---|---|
| QuantConnect (LEAN) | Yes, broker fee models (Interactive Brokers by default for equities) | Yes, but zero by default; volume-share and other models available | Coded systematic strategies, intraday to monthly |
| Indexes | No (stated in the methodology) | No | Custom weighted baskets rebalanced periodically, tracked as an index |
| Spreadsheet | Only if you build it | Only if you build it | One-off checks |
What software is best for finding a tangency portfolio from return data for 30 companies?
Portfolio Visualizer's Portfolio Optimization tool is the most direct answer: its optimization goals include "Mean Variance - Maximize Sharpe Ratio," which is the tangency portfolio, and it runs on the tickers you enter. The catch for 30 companies is the asset cap. The free tier stops at 15 assets, so a 30-stock tangency run needs the Basic plan ($30 a month) or Pro ($55), which lift the limit to 150.
Two cautions before you trust the output. Mean variance optimization is extremely sensitive to the expected returns you feed it, and with 30 stocks and a few years of history it will usually put most of the weight in the handful of names that happened to run hardest. Add a maximum weight per name, then backtest the result out of sample. That second step is where a custom index fits: take the optimizer's weights, cap them, backtest the weighted basket against the S&P 500 over a window that includes a drawdown, and keep it tracked so you can see whether the tangency weights hold up after you chose them.
How far back should a backtest go?
Far enough to include at least one full market cycle with a real drawdown, which in US markets means going back to 2020 at minimum and preferably to 2007 or earlier. A backtest that starts in 2010 and ends today covers one of the strongest equity runs in history and will make almost any long equity strategy look good. If your holdings have not existed that long, say so and treat the result as a fragment rather than evidence.
Testing a custom basket rather than an allocation
If the thing you want to test is a list of individual companies with weights you chose, the workflow looks different. You are not asking what mix of funds performs best. You are asking whether the specific construction you designed holds up: whether the weighting scheme matters more than the holdings list, whether one position is quietly driving the whole result, and how the basket sits against the S&P 500 through a drawdown.
Hold one variable constant at a time. Run the same list under cap weighting and under equal weighting and the difference is purely the scheme, which is often larger than people expect. Then hold the scheme constant and vary the holdings. Doing both at once tells you nothing about either. The scheme side of that experiment is covered in weighting schemes, and the fuller method in how to backtest a portfolio.
Before a company goes into the list at all, it is worth doing the boring work of reading what it actually earns and how the balance sheet looks, since a backtest will happily produce a beautiful curve for a basket of businesses you never examined. Tools that turn a ticker into a structured research card make that step fast enough that there is no excuse to skip it.
Can you backtest a crypto portfolio?
Yes, with two caveats specific to the asset class. The history is short, so a crypto backtest covers a handful of cycles at most and cannot tell you much about regime changes. And weighting dominates the result far more than it does in equities, because market-cap weighting collapses almost any crypto basket into a Bitcoin position. Test the equal-weighted version alongside the cap-weighted one or you have not really tested anything. The crypto index page covers that in detail.
Is portfolio backtesting software worth paying for?
It is worth paying for when you have crossed one of two thresholds. The first is complexity: once you are past the free tiers' asset limits or you need saved, versioned models you come back to, the free options stop being free in time terms. The second is repetition. A one-off curiosity does not justify a subscription. A basket you intend to hold, adjust and measure against a benchmark for years is a different thing, and the value is less in the backtest than in the tracking afterward. Choosing the reference you will be measured against for those years is its own decision, covered in portfolio benchmark.
That second point is the one most comparisons miss. A backtest is a single answer to a question asked once. What most people actually need is a named index they keep tracked, so that six months later they can see whether the thesis is playing out rather than re-running the same test from scratch with new dates. That is the difference between a backtesting calculator and a living index.
A practical recommendation
If your question is about asset allocation across broad funds, start with Portfolio Visualizer's free tier and upgrade to Basic at $30 a month only when the 15-asset cap gets in your way. If you want quick fund comparisons and nothing more, testfolio is free and fast. If you are designing a weighted basket of individual stocks or crypto and want to keep it tracked as an index against the S&P 500 afterward, that is the specific job backtesting a portfolio here is built for, from $24 a month.
Whichever you use, the discipline matters more than the software. Test multiple windows, include a crash, read the drawdown before the return, and resist the urge to keep tuning until the curve looks good. Indexes is educational and informational software. It never places trades, connects to a brokerage, or holds assets, and backtested results are hypothetical and do not predict future returns.
Working with clients? See the license differences in portfolio backtesting software for financial advisors.
Build your index and see how it backtests
Bundle stocks or crypto into your own weighted index, backtest it against real market history, and track it against the S&P 500 or BTC. Educational and informational only, and Indexes never places a trade.