Portfolio Lab
Build one or more stock and ETF portfolios, compare them with the S&P 500, Nasdaq, and Dow Jones, and see how different investment strategies would have performed through real market history. Analyze growth, drawdowns, dividend income, and recovery periods to make more informed long-term investing decisions.
Educational Use Only: Portfolio Lab provides hypothetical historical simulations for informational purposes only. Results do not represent actual investment results or future performance. Past performance does not guarantee future results. Not financial, legal, tax, or retirement planning advice. Consult a qualified professional regarding your individual circumstances.
How would you like to start?
Start from scratch or import investment accounts that contain stock or fund holdings from a saved retirement plan.
Start with a sample portfolio
Load a recognizable, publicly documented portfolio, then customize and backtest it. Loading creates an editable working copy and does not change your existing strategy settings.
Sample portfolios are provided for education and research only. SmartRetireCalc does not recommend or endorse any portfolio. Named creators and institutions are not affiliated with SmartRetireCalc and do not endorse it or these ETF implementations. Review the original source before making investment decisions.
Portfolios
| Ticker | Alloc % |
|---|---|
| VOO | 40.0% |
| SCHD | 30.0% |
| BND | 20.0% |
| CASH | 10.0% |
Strategy Options
What Is Portfolio Lab?
Portfolio Lab is a free, browser-based portfolio backtesting tool that lets you simulate how one or more investment strategies would have performed using real historical market data. Rather than guessing how a mix of ETFs or stocks might behave, you can run the numbers against actual price history — including bull markets, crashes, and slow recoveries — and see the results in clear charts and metrics.
Historical backtesting works by replaying your investment strategy month by month through past market conditions. The engine applies your chosen securities, allocation percentages, contribution schedule, and rebalancing rules to real historical price and dividend data. The output shows growth over time, how deep the worst drawdowns were, how long recovery took, and how much dividend income was generated.
You can compare up to several portfolios simultaneously — for example, a 100% equity portfolio versus a 60/40 stock-bond blend — and benchmark all of them against the S&P 500, Nasdaq-100, and Dow Jones Industrial Average. This makes it easy to see whether a more complex strategy actually outperformed a simple index fund over the same period.
Portfolio Lab is designed for educational purposes. The simulations are hypothetical: they assume no taxes, no trading costs, and perfect execution at month-end prices. They show what would have happened historically, not what will happen in the future. Past performance does not guarantee future results.
Whether you are evaluating a dividend growth strategy, stress-testing a 60/40 portfolio through the 2008 financial crisis, or comparing SPY versus QQQ over the past decade, Portfolio Lab gives you a data-driven starting point for building investment conviction.
What Can You Analyze?
Portfolio Lab covers the metrics that matter most when evaluating a long-term investment strategy:
Compound annual growth rate shows how fast a portfolio grew on an annualized basis after contributions and dividends are included. Compare CAGR across portfolios and benchmarks to see which strategy compounded wealth most efficiently.
The largest peak-to-trough loss during the period. A strategy with a 50% maximum drawdown may be hard to hold in practice even if the long-run return is strong. Use this to calibrate how much volatility each strategy requires you to endure.
How many months it took to climb back to the previous peak after a drawdown, measured on the same cash-flow-neutral basis as maximum drawdown so ongoing contributions don't make a recovery look faster than it was. A strategy with a 40% drawdown that recovered in 18 months is very different from one that took 60 months.
Total dividends received over the period, broken down year by year. Choose between reinvesting dividends (compounding returns) or taking them as cash (simulating an income-generating strategy).
Run any portfolio side by side against the S&P 500 (SPY), Nasdaq-100 (QQQ), Dow Jones (DIA), or any custom ticker you add.
Model monthly, quarterly, or annual contributions to simulate dollar-cost averaging over the period.
See whether periodic rebalancing (monthly, quarterly, or annually) improved or reduced risk-adjusted returns compared to a buy-and-hold approach.
Example Scenarios You Can Explore
Here are five common comparisons investors run in Portfolio Lab:
SPY vs QQQ Since 2010
Compare the S&P 500 (SPY) against the Nasdaq-100 (QQQ) from 2010 through today. QQQ delivered significantly higher CAGR over the period, but also experienced deeper drawdowns — notably a 33% decline in 2022. This scenario illustrates the classic growth-versus-diversification tradeoff and shows why higher returns come with higher volatility.
SCHD Dividend Strategy vs S&P 500
Run SCHD (Schwab U.S. Dividend Equity ETF) against SPY with dividends set to "Cash" to see the annual income stream a dividend-focused portfolio generates versus a total-return index fund. This helps dividend investors understand the income-versus-growth tradeoff and whether SCHD's lower growth is offset by the cash flow it produces.
60/40 Portfolio Through the Financial Crisis
Backtest a 60% SPY / 40% BND portfolio starting in 2006 to run it through the 2008–2009 financial crisis. Compare it against a 100% equity portfolio to see how the bond allocation cushioned the drawdown and whether the more conservative mix recovered faster — even though it sacrificed long-run growth.
Investing Monthly During COVID
Set a start date of January 2020 with a monthly $500 contribution and run any ETF through the COVID crash of March 2020. This demonstrates how dollar-cost averaging during a sharp crash — when many investors paused contributions — dramatically improved long-run outcomes compared to a lump-sum invested before the crash.
Buy-and-Hold vs Annual Rebalancing
Build a 60/40 portfolio and run it twice: once with "None" rebalancing and once with "Annual" rebalancing over a 15-year period. Rebalancing trims the winning asset class (equities) and buys the lagging one (bonds) each year, which historically reduced drawdowns but also slightly reduced peak returns in strong bull markets. The results quantify the tradeoff.
Methodology and Assumptions
Understanding what the engine assumes helps you interpret results correctly:
All price data uses adjusted close, which accounts for stock splits and other corporate actions. This ensures long-run return calculations reflect true investor experience.
Historical cash dividend events per share are sourced from the market-data provider, refreshed alongside each symbol's price history, and applied in the month the ex-dividend date falls. Real provider events are used as-is and are never smoothed. Where the provider has no event for a period a backtest reaches into, the engine estimates the distribution from the relationship between the dividend-adjusted and raw closing prices; a provider event always takes precedence over an estimate.
The engine supports fractional share purchases, so every dollar of a contribution or dividend is fully deployed at the allocation target — there is no cash drag from rounding to whole shares.
When "Reinvest" is selected, dividends buy additional fractional shares at the month-end price. When "Cash" is selected, dividends accumulate in a separate cash balance that earns 0% and is not reinvested.
Contributions are invested at the start of each applicable month, quarter, or year. They are allocated immediately at that period's opening price.
At each rebalance interval, the portfolio is reset to target allocation weights by selling overweight positions and buying underweight ones at month-end prices. No transaction costs, bid-ask spreads, or tax events are modeled.
The CASH ticker is held at face value for the entire backtest and is counted in total portfolio value under both dividend-handling modes. It earns 0% return — a conservative assumption that does not model money market yields, T-bill rates, or HYSA returns — and dampens a portfolio's overall return and volatility exactly as an idle cash sleeve would. This understates real-world cash returns but keeps the comparison conservative.
Simulations do not account for income taxes on dividends or capital gains, trading commissions, bid-ask spreads, behavioral factors, or liquidity constraints. Results represent a best-case historical scenario and should not be used to predict future performance.
Frequently Asked Questions
What is a portfolio backtest?
A portfolio backtest is a simulation that runs a hypothetical investment strategy through real historical market data to show how it would have performed. By applying your chosen assets, allocation percentages, contribution schedule, and rebalancing rules to actual past price and dividend history, backtesting reveals how a strategy would have grown, how deeply it would have fallen during market crashes, how long recovery took, and what dividend income it would have generated. It is an educational tool that helps investors understand the historical risk and return characteristics of different strategies before committing real money.
How does Portfolio Lab work?
Portfolio Lab uses a month-by-month simulation engine. You define one or more portfolios by selecting securities (ETFs, stocks, or CASH) and assigning allocation percentages that sum to 100%. You choose a date range, initial investment, contribution amount and frequency, rebalancing schedule, and how dividends are handled. The engine downloads historical adjusted closing prices and dividend data for each security, simulates monthly changes — including contributions, dividend events, and rebalancing — and computes metrics such as CAGR, maximum drawdown, recovery periods, and total dividend income. Results are compared against benchmark indexes you select.
Is Portfolio Lab free?
Yes, Portfolio Lab is completely free to use with no sign-up required. You can build and compare multiple portfolios, run backtests across any historical date range with available data, and view all charts, metrics, and tables at no cost. An optional account lets you save and reload your portfolio configurations across sessions, but the backtesting engine itself is fully accessible to all visitors.
Does Portfolio Lab use real market data?
Yes. Portfolio Lab uses historical adjusted closing prices and dividend event data sourced from financial data providers. Adjusted close prices account for stock splits and other corporate actions, ensuring that long-run return calculations are accurate. Dividend data reflects actual cash distributions per share paid by each security and is refreshed alongside the price history; where the provider has no dividend event for a period a backtest reaches into, the engine estimates it from the dividend-adjusted vs. raw closing-price relationship, and a real provider event always takes precedence. The data is cached server-side and refreshed periodically. Because market data providers may have gaps or corrections over time, results should be treated as estimates rather than audited figures. For a small number of securities with limited price history, an earlier period may instead use estimated returns from an approved substitute security — this is always clearly disclosed in your results. See our Methodology page for details.
Can I compare multiple portfolios?
Yes. You can build and backtest multiple portfolios simultaneously in Portfolio Lab. Each portfolio gets its own name, set of holdings, and allocation. All portfolios run through the same date range, contribution schedule, and rebalancing rules, so you can make a fair apples-to-apples comparison. Results are displayed side by side in the metrics grid, growth chart, drawdown chart, and strategy comparison table. This makes it easy to compare, for example, a 100% equity portfolio against a 60/40 blend, or a dividend-focused strategy against a total market index.
Can I analyze dividend income?
Yes. Portfolio Lab tracks dividends per security throughout the backtest period. You can choose between two dividend handling modes: Reinvest (dividends automatically purchase additional shares at the month-end price, compounding growth over time) or Cash (dividends accumulate in a separate cash balance). The results panel shows total dividends received, a year-by-year dividend income chart, and an annualized dividend yield for comparing portfolios. This makes Portfolio Lab useful for evaluating dividend growth strategies such as SCHD, VYM, or other dividend-focused ETFs.
Can I compare my portfolio with the S&P 500?
Yes. Portfolio Lab includes benchmark comparison against the S&P 500 (SPY), Nasdaq-100 (QQQ), and Dow Jones Industrial Average (DIA) by default. You can enable or disable any of these benchmarks, or add a custom ticker as an additional benchmark. Benchmark performance is shown on the same growth chart as your portfolios, and the strategy comparison table includes a side-by-side CAGR, drawdown, and final value comparison so you can see clearly how your strategy performed relative to major indexes over the same period.
Which benchmark indexes are available?
Portfolio Lab includes three default benchmarks: SPY (SPDR S&P 500 ETF), QQQ (Invesco Nasdaq-100 ETF), and DIA (SPDR Dow Jones Industrial Average ETF). You can also type any valid ticker symbol into the custom benchmark field to add additional comparisons — for example, BND for bonds, SCHD for dividend stocks, or GLD for gold. All benchmarks use the same date range and represent a simple buy-and-hold baseline with no contributions or rebalancing applied.
Is Portfolio Lab similar to Portfolio Visualizer?
Portfolio Lab shares the core concept with Portfolio Visualizer — both allow you to backtest investment strategies with real market data. Portfolio Lab is designed to be fast, free, and no sign-up required. Key features include multi-portfolio comparison, dividend income analysis, rebalancing simulation, drawdown and recovery tracking, and benchmark comparison. It is designed as a free educational alternative for investors who want to validate strategies using historical evidence, and integrates with the broader SmartRetireCalc retirement planning toolkit so you can move seamlessly from backtesting to full retirement projection.
Can I compare ETFs and stocks together?
Yes. Portfolio Lab supports individual stocks (AAPL, MSFT, JNJ), ETFs (VOO, QQQ, SCHD, BND, GLD) — including bond and sector ETFs — mutual funds (for example Fidelity or Vanguard index funds), and the special CASH ticker which represents a 0% cash allocation, for any symbol with historical price and dividend data available. You can mix stocks, ETFs, and mutual funds freely within a single portfolio. Options, futures, cryptocurrencies, currencies, and individual bonds are not supported as portfolio holdings; a market index (such as ^GSPC) can be added as a benchmark but not held as a position. The engine fetches historical data for each supported symbol and simulates the blended performance.
Does past performance guarantee future results?
No. Past performance does not guarantee future results. Portfolio Lab is an educational simulation tool that shows how strategies would have performed in historical market conditions. Those conditions — interest rate environments, economic cycles, geopolitical events, and sector dynamics — may not repeat in the same way. A strategy that outperformed over the past 15 years may underperform over the next 15. Backtesting also does not account for taxes, trading costs, emotional decision-making, or liquidity constraints. Use Portfolio Lab to understand historical risk and return patterns, not to predict future performance.
What is maximum drawdown?
Maximum drawdown (MDD) is the largest peak-to-trough decline in portfolio value during the backtest period, expressed as a percentage. For example, if a portfolio grew to $150,000 and then fell to $90,000 before recovering, the maximum drawdown is 40%. It measures the worst-case loss an investor would have experienced if they bought at the peak and held through the bottom. Maximum drawdown is a critical risk metric because it reflects emotional stress — a strategy with a 50% drawdown may be mathematically sound but psychologically very hard to hold through. Portfolio Lab displays MDD alongside CAGR so you can evaluate return-per-unit-of-risk for each strategy.
What is portfolio recovery time?
Portfolio recovery time is the number of months it took for the portfolio to climb back to its previous peak after a drawdown, measured on the same cash-flow-neutral basis as maximum drawdown — so ongoing contributions, which add nominal dollars without reflecting investment performance, never make a recovery look faster than it really was. A portfolio that fell 40% during the 2008 financial crisis might have taken 4–5 years to fully recover. Recovery time matters because it defines how long an investor must wait before they are "whole" again — especially important for retirees who may be withdrawing during the recovery period. Portfolio Lab displays the longest and average recovery across the drawdowns that closed within your backtest window.
How often is market data updated?
Market data in Portfolio Lab is cached server-side and refreshed periodically. Price history and dividend data for each security is downloaded from financial data providers when first requested and stored with a time-to-live expiry. Historical data rarely changes (adjustments for corporate actions are uncommon), so the cached data is generally accurate for backtesting purposes. Very recent months may have a short lag depending on when the cache was last refreshed. Portfolio Lab is intended for medium-to-long-term historical analysis (1–20+ years) rather than real-time or short-term research.