Skip to content

Free calculator

Stock Comparison Backtest

Enter up to four tickers and a period. The backtest invests the same amount in each on the first day they all trade, reinvests dividends and shows the growth, annualized return, volatility, max drawdown and calendar-year returns, before or after inflation.

Up to four, separated by commas or spaces. Use an exchange suffix outside the US, such as 0700.HK.

Period

Loading price history…

Daily closes adjusted for splits and dividends, from Yahoo Finance through the 1cc.ai API. Each ticker is priced in its own trading currency.

Historical returns before taxes and trading costs. Not a forecast, a recommendation or financial advice.

How it is calculated

Total return
Each ticker's daily close is adjusted for splits and dividends, so a dividend is reinvested in the same ticker on its ex-dividend date. Growth = amount × adjusted close on the date ÷ adjusted close on the start date.
Common start
Every ticker is bought on the first trading day on or after the chosen start date on which all of them have prices. A younger ticker moves the start later for the whole comparison.
Inflation
With inflation adjustment on, each value is multiplied by CPI-U on the start date ÷ CPI-U on that date, so every figure is in start-date dollars. Monthly CPI-U values are interpolated between months.
Statistics
Annualized return = (final value ÷ amount)^(1 ÷ years) − 1. Volatility is the standard deviation of daily returns, scaled to a year. Max drawdown is the largest fall from a previous peak.

What the result leaves out

Past returns do not predict future returns. The result is history for the period you choose, and a few years earlier or later can change the ranking.

Taxes on dividends, trading costs and fund fees beyond those already in a fund's price are not deducted. Prices are in each ticker's own trading currency without exchange-rate conversion, and the inflation adjustment always uses US CPI-U.

Track the holdings you actually own

In the 1cc.ai app, the stocks and ETFs you hold are valued with supported real-time prices, with estimated dividends, target allocation and net worth alongside. A read-only Longbridge connection can keep positions in sync.

Portfolio Tracker
Download free

Download 1cc.ai for iOS or Android and enter positions yourself or sync them from Longbridge. Core features are free forever; Pro is an optional subscription for AI and advanced option analysis.

Related

Frequently asked questions

Are dividends included?

Yes. The backtest uses closes adjusted for dividends and splits, which assumes each dividend is reinvested in the same ticker on its ex-dividend date, before tax.

What does inflation-adjusted mean here?

Values are shown in start-date dollars using the US Consumer Price Index for All Urban Consumers (CPI-U). A real return above zero means the investment bought more than it did at the start.

Why did my comparison start later than the date I chose?

All tickers are bought on the same day, so the comparison starts on the first day every ticker has prices. A fund launched in 2010 moves the start to 2010 for every ticker.

Which tickers can I enter?

US stocks and ETFs such as SPY or VTI, indices such as ^GSPC, and other markets with their exchange suffix, such as 0700.HK. Price history starts no earlier than January 1970.

Is my data stored?

The tickers you enter are sent to the 1cc.ai API to load price history. The backtest itself runs in your browser and nothing is saved to an account.

Is this financial advice?

No. It shows what happened to historical prices over the period you choose. It is not a forecast, a recommendation or financial advice.