Time Series Forecast Calculator
Forecast future values from historical data with nine methods, including moving average, exponential smoothing, Holt's trend and seasonal naive, with 95% prediction intervals.
Historical Data
Or drag & drop a CSV / TXT file anywhere in this box.
Forecast Method
Summary Statistics
Linear Trend Regression
Enter historical time-series data on the left to generate a forecast.
Related tools
What Is a Time Series Forecast Calculator?
A time series forecast calculator is a free tool that analyzes historical data and predicts future values using proven statistical forecasting techniques. It supports nine methods — Naive, Drift, Moving Average, Weighted Moving Average, Simple Exponential Smoothing, Holt's Linear Trend, Linear Trend, Polynomial Trend and Seasonal Naive — and ranks them on your own data so you can see which one fits best.
This tool accepts manually typed numbers, pasted single-column or two-column Date,Value datasets, or uploaded CSV and TXT files. It instantly fits the selected model to your history, projects future periods with a 95% prediction interval, calculates accuracy metrics like MAE, RMSE and MAPE, and visualizes historical, fitted and forecast values on an interactive chart.
Built for business analysts, financial analysts, sales teams, inventory managers, supply chain professionals, small business owners, students, and researchers, the calculator works with instant results, no signup, and support for large datasets.
How the Time Series Forecast Calculator Works
Each forecasting method uses a different formula to project future values from your historical data.
Core Formulas
Moving Average: Forecast = Σ(last N values) / N
Weighted Moving Average: Forecast = Σ(Value × Weight) / ΣWeights
Exponential Smoothing: Fₜ = αAₜ₋₁ + (1 − α)Fₜ₋₁
Holt: Forecastₜ₊ₕ = Levelₜ + h × Trendₜ
Linear Trend: y = a + bx
Drift: Forecastₕ = Last Value + h × ((Last − First) / (n − 1))
95% interval ≈ Forecast ± 1.96 × RMSE (wider further ahead)
- →Naive Forecast: Simply repeats the last observed value for every future period — the simplest possible baseline.
- →Drift Method: Extends a straight line between the first and last observations, projecting the average historical rate of change forward.
- →Moving Average / Weighted Moving Average: Averages the most recent N observations (equally or with increasing weight on recent data) and holds that value flat for future periods.
- →Exponential Smoothing: Weights recent observations more heavily than older ones using a smoothing factor α between 0.01 and 1.00, and holds the smoothed level flat for future periods.
- →Holt's Linear Trend: Smooths both the level and the trend (α and β), then projects the latest trend forward, adapting when growth speeds up or slows down.
- →Linear / Polynomial Trend: Fits a straight line or curve to the entire history using least-squares regression, then extrapolates it into future periods.
- →Seasonal Naive: Repeats the value from the same point in the previous seasonal cycle — ideal for data with a clear repeating pattern.
How to Use the Time Series Forecast Calculator
Step-by-Step Guide
- 1Enter Your Historical Data: Type or paste numbers one per line or comma-separated, paste Date,Value rows from a spreadsheet, or upload a CSV or TXT file.
- 2Choose a Forecasting Method: Select Naive, Drift, Moving Average, Weighted Moving Average, Exponential Smoothing, Holt's Linear Trend, Linear Trend, Polynomial Trend or Seasonal Naive, or pick the method with the lowest error in the comparison table.
- 3Adjust Method Parameters: Set the moving average window, the smoothing factors alpha and beta, or the seasonal period, depending on the selected method.
- 4Set the Forecast Period: Choose how many future periods to forecast, from 1 up to 365.
- 5Review the Chart and Table: Check the actual, fitted and forecast lines and the 95% prediction interval on the chart, along with the MAE, RMSE and MAPE accuracy metrics.
- 6Export Your Results: Copy the forecast, or download it as CSV, Excel-compatible CSV, JSON, PNG chart, or a printed report.
Key Features
- ✓Live forecasting with a 150ms debounced update
- ✓Nine forecasting methods in one tool
- ✓Compare all methods on your data, ranked by error
- ✓95% prediction interval for every forecast period
- ✓Single-column or Date,Value CSV parsing, including quoted numbers, semicolons and decimal commas
- ✓Adjustable window size, alpha, beta and seasonal period
- ✓Adjustable forecast horizon from 1 to 365 periods
- ✓Interactive chart with toggleable actual, fitted and forecast lines and the prediction interval
- ✓MAE, RMSE, and MAPE accuracy metrics
- ✓Drag-and-drop CSV and TXT file upload
- ✓Sample datasets and a random dataset generator
- ✓Copy forecast, results table, and full report independently
- ✓Copy chart to clipboard as an image
- ✓Download CSV, Excel-compatible CSV, JSON, and PNG
- ✓Print-friendly report generation
- ✓Forecast history — save and reload past results
- ✓Auto-saves your last session and restores it on return
- ✓Your inputs are not collected or stored
Real-World Use Cases
Sales Forecasting
A sales manager applies Linear Trend to six months of revenue data to project next quarter's targets and set realistic goals.
Inventory Demand Planning
An inventory planner uses Seasonal Naive with a 12-month period to forecast holiday-season stock needs from three years of order history.
Website Traffic Analysis
A marketing analyst smooths daily visitor counts with Exponential Smoothing (α = 0.3) to filter noise and track the underlying trend.
Financial Revenue Projection
A financial analyst forecasts upcoming quarterly revenue using the Drift Method on five years of historical financial statements.
Production Planning
An operations manager forecasts weekly production needs using a 4-week Moving Average to smooth short-term demand fluctuations.
Academic Forecasting Education
A student compares Naive, Moving Average, and Linear Trend forecasts on the same dataset to understand how each method differs in accuracy.
Tips & Common Mistakes
Pro Tips
- 💡Start with Naive or Moving Average as a baseline, then compare MAE and RMSE against more advanced methods to see if the added complexity actually helps.
- 💡Use Linear or Polynomial Trend only when your data shows a genuinely consistent directional pattern, not random fluctuation.
- 💡Only use Seasonal Naive when you have at least two full seasonal cycles of history — one cycle isn't enough to validate the pattern.
- 💡Check MAPE alongside RMSE — MAPE is easier to interpret as a percentage and works well for comparing accuracy across different datasets.
- 💡Look at the 95% interval, not just the forecast line: a wide band means the history is too noisy for a precise forecast.
Common Mistakes to Avoid
- ✕Don't use Linear Trend on data with a clear seasonal pattern — it will systematically miss the recurring peaks and troughs.
- ✕Don't apply Seasonal Naive without enough historical cycles — the forecast will just repeat a single, possibly unrepresentative, season.
- ✕Don't forecast too many periods ahead from a short history — long-range extrapolations from limited data become increasingly unreliable.
- ✕Don't ignore the accuracy metrics — a method with a much higher MAE or RMSE than another is a weaker fit for your specific dataset.
- ✕Don't set the Moving Average window larger than roughly a third of your dataset — it removes too much signal along with the noise.
Forecasting Method Reference Table
| Method | Best For | Key Parameter |
|---|---|---|
| Naive Forecast | Quick baseline, stable data | None |
| Drift Method | Data with steady overall change | None |
| Moving Average | Smoothing short-term noise | Window size |
| Weighted Moving Average | Emphasizing recent observations | Window size |
| Exponential Smoothing | Reactive short-term forecasting | Alpha (α) |
| Holt's Linear Trend | Trending data whose growth rate changes | Alpha (α), beta (β) |
| Linear Trend Regression | Consistent linear growth or decline | None |
| Polynomial Trend | Accelerating or decelerating growth | None |
| Seasonal Naive | Data with a repeating seasonal cycle | Seasonal period |
Frequently Asked Questions
What is a time series forecast calculator?
A time series forecast calculator is a free tool that analyzes historical data and predicts future values using statistical forecasting methods such as moving average, exponential smoothing, Holt's linear trend, linear trend regression and seasonal naive forecasting.
Which forecasting method should I use?
Use Naive or Drift for a quick baseline, Moving Average or Weighted Moving Average to smooth short-term noise, Exponential Smoothing when recent observations should matter more, Holt's Linear Trend or Linear Trend for data that keeps rising or falling, Polynomial Trend for growth that speeds up or slows down, and Seasonal Naive for data with a clear repeating cycle. The comparison table ranks every method on your data by its error, so you can start from the most accurate one.
How is the Moving Average forecast calculated?
The forecast equals the average of the last N values, where N is the window size. For example, with a window of 3 and the last three values 260, 280, 300, the forecast is (260 + 280 + 300) / 3 = 280.
How does the Drift Method work?
The Drift Method extends a straight line between the first and last observed values. The forecast for h periods ahead equals the last value plus h times the average change per period, calculated as (last value − first value) / (n − 1).
What is Holt's Linear Trend method?
Holt's method, also called double exponential smoothing, tracks both a level and a trend. Each period, the level moves toward the new value by a share alpha (α) and the trend moves toward the latest change in level by a share beta (β); the forecast h periods ahead is level + h × trend. Unlike a straight regression line, it adapts when the trend changes.
What is the difference between Linear and Polynomial Trend?
Linear Trend fits a straight line (y = a + bx) using least squares regression, best for data with a constant rate of change. Polynomial Trend fits a curve (y = a + bx + cx²), better suited to data whose growth rate is itself increasing or decreasing over time.
When should I use Seasonal Naive forecasting?
Use Seasonal Naive when your data repeats a pattern at a fixed interval, such as monthly sales with yearly seasonality (period 12) or daily traffic with weekly seasonality (period 7). It requires at least two full seasonal cycles of historical data.
What do MAE, RMSE, and MAPE mean?
They measure how far the method's forecasts were from what actually happened. MAE (Mean Absolute Error) is the average absolute error. RMSE (Root Mean Squared Error) penalizes larger errors more heavily. MAPE (Mean Absolute Percentage Error) expresses the average error as a percentage, useful for comparing accuracy across different scales. For the smoothing, moving average and naive methods, each error is a genuine one-step-ahead forecast error; for the trend regressions it is the gap between the data and the fitted line.
What does the 95% prediction interval mean?
It is the range the next values are likely to fall in about 95% of the time, if future errors behave like past ones: forecast ± 1.96 × RMSE, widened for periods further ahead. For 210, 240, 235, 260, 280 and 300 with the Naive method, the next forecast is 300 with a range of about 258 to 342. The range is approximate, and for trend lines it does not include the uncertainty of the line itself.
Can I upload a CSV file instead of typing data?
Yes. Use the Import CSV button or drag and drop a CSV or TXT file onto the input box. The calculator reads a single column of numbers, Date,Value rows separated by commas, semicolons or tabs, and numbers written as 1,200, "$1,350" or 120,5. A header row is skipped, and other rows it cannot read are listed as ignored.
How large a dataset can this calculator handle?
The calculator uses efficient algorithms and comfortably handles thousands of observations with instant, debounced recalculation and smooth chart rendering.
Is my data private when using this calculator?
Yes. We do not collect or store what you enter.
Who Uses This Calculator?
Business & Financial Analysts
Forecast revenue, sales, and financial trends using trend-aware methods.
Supply Chain & Inventory Managers
Forecast seasonal demand using Seasonal Naive to optimize stock levels.
Sales Teams
Track and project sales performance trends over upcoming periods.
Small Business Owners
Predict revenue and demand without needing Excel or specialized software.
Students & Researchers
Learn and compare forecasting methods with a clear, interactive tool.
Data Scientists
Quickly benchmark simple forecasting baselines before building complex models.
Related Tools
Standard Deviation Calculator
Calculate sample and population standard deviation with variance, quartiles, mode, and histogram/box plot visualization.
Time Complexity Calculator
Estimate Big-O complexity growth.
Download Time Calculator
Estimate download time.
Subnet Calculator
Calculate subnet mask, network, and hosts.
IP Range Calculator
Determine IP address range.
CIDR Calculator
Calculate CIDR notation details.
Bandwidth Calculator
Estimate bandwidth usage.
Data Transfer Calculator
Calculate transfer time based on speed.
Checksum Calculator
Compute checksum for data validation.
File Size Converter
Convert file sizes (KB, MB, GB).
Latency Calculator
Estimate network latency.
AI Token Cost Calculator
Estimate cost per token usage.