Snowflake cost forecasting means projecting where your bill will land from your own daily usage history. Start with billed credits per day and service type. Then project the rest of the month by weekday and convert credits to dollars at your rate. For a range, train Snowflake’s FORECAST model on the same data, and let budgets alert you when projected spend passes a threshold. Every fact and figure in this guide was checked against Snowflake’s documentation.
This article is part of our guide to Snowflake cost monitoring.
What data should you use to forecast Snowflake spend?
Use billed credits per day from the METERING_DAILY_HISTORY view for compute. Use the USAGE_IN_CURRENCY_DAILY view when you need the whole bill in your currency. Keep each service type on its own line, because some AI features bill in AI Credits, a different unit. Leave out today, since it is still incomplete.
METERING_DAILY_HISTORY returns billed credits per day and service type for the last 365 days and can lag up to 3 hours. Its CREDITS_BILLED column already includes the cloud services adjustment. The USAGE_VIEWER database role can read it, per the Account Usage overview.
Snowflake’s service types page gives each type’s unit. Most bill in credits, but AI_FUNCTIONS and CORTEX_AGENTS, for example, bill in AI Credits. Snowflake’s cost anomalies page says the two units cannot be added together, so forecast them separately.
Credits are not the whole bill
Compute credits leave out storage and data transfer, the other two usage types Snowflake bills. For the whole bill, use USAGE_IN_CURRENCY_DAILY in ORGANIZATION_USAGE, split by its RATING_TYPE column. However, it can lag up to 72 hours, a day’s figures can change until month close, and reseller customers cannot read it. To query it and the other billing views below, use GLOBALORGADMIN in the organization account, ACCOUNTADMIN in an account with ORGADMIN enabled, or a role granted ORGANIZATION_BILLING_VIEWER. For every account in an organization, see how to track Snowflake cost across accounts.
Which Snowflake cost forecasting method should you use?
Use a weekday run rate for this month’s bill, and Snowflake’s FORECAST model when you want a range or a longer outlook. Use budgets to get an alert, and a burn-down if you hold a capacity contract. Each answers a different question, so you can run more than one.
| Method | Input | Best for | Blind spot |
|---|---|---|---|
| Flat run rate | Month-to-date credits | A quick month-end number | Weekly pattern, growth |
| Weekday run rate | Last 28 days by weekday | This month’s bill | Growth, one-off events |
| Budget | Monthly credit limit | An alert when projected over | Default alert at 110% of limit |
| SNOWFLAKE.ML.FORECAST | Daily credits, up to a year | A range, 30 days or more | New workloads; needs retraining |
| Capacity burn-down | Balance and daily spend | Contract term and renewal | 72-hour delay |
How do you build a simple run-rate forecast?
Add the credits billed so far this month to an estimate for each remaining day. The flat version uses the month-to-date daily average. The weekday version uses each weekday’s average over the last four weeks, because weekday and weekend usage can differ. Then multiply the credits by your price per credit.
A worked example (illustrative)
Take an illustrative account on Enterprise Edition in AWS US East (Northern Virginia), on demand, at $3.00 per credit (Table 2(a) of Snowflake’s Service Consumption Table). It bills about 400 credits on weekdays and 100 on weekends. Twenty days into a 30-day month, it has used 6,500 credits over 15 weekdays and 5 weekend days. Ten days remain: 6 weekdays and 4 weekend days.
- Flat run rate: 6,500 credits over 20 days is 325 a day. The month lands at 9,750 credits, or $29,250.
- Weekday run rate: the days left add 2,800 credits. The month lands at 9,300 credits, or $27,900.
The flat method overstates this month by 450 credits, or $1,350 at that rate, because a larger share of the days left falls on weekends. These figures cover compute only; our Snowflake pricing examples show a full monthly bill.
SQL: month-end forecast by service type
This query applies the weekday method per service type. The view can lag up to 3 hours, so run it after 03:00 UTC.
-- Role: USAGE_VIEWER database role (or ACCOUNTADMIN).
-- Returns billed credits month to date, a weekday-based estimate for the rest of the month (today included)
-- and the month total, per service type. Latency up to 3 hours. Service types differ in unit (see Snowflake's
-- service types page), so never add AI Credit types to credit types. ALTER SESSION changes this session only.
ALTER SESSION SET TIMEZONE = 'UTC'; -- dates then match budgets and ORGANIZATION_USAGE
WITH daily AS (
SELECT service_type, usage_date, SUM(credits_billed) AS credits
FROM snowflake.account_usage.metering_daily_history
WHERE usage_date >= LEAST(DATEADD(day, -28, CURRENT_DATE()), DATE_TRUNC('month', CURRENT_DATE()))
AND usage_date < CURRENT_DATE()
GROUP BY 1, 2
),
weekday_avg AS ( -- the last 28 complete days hold each weekday 4 times; a day with no row counts as 0
SELECT service_type, DAYOFWEEKISO(usage_date) AS dow, SUM(credits) / 4 AS avg_credits
FROM daily
WHERE usage_date >= DATEADD(day, -28, CURRENT_DATE())
GROUP BY 1, 2
),
days_left AS ( -- today plus the next 30 days, trimmed to this month below
SELECT DATEADD(day, ROW_NUMBER() OVER (ORDER BY SEQ4()) - 1, CURRENT_DATE()) AS d
FROM TABLE(GENERATOR(ROWCOUNT => 31))
),
mtd AS (
SELECT service_type, SUM(credits) AS mtd_credits
FROM daily
WHERE usage_date >= DATE_TRUNC('month', CURRENT_DATE())
GROUP BY 1
),
rest AS (
SELECT w.service_type, SUM(w.avg_credits) AS rest_credits
FROM days_left dl
JOIN weekday_avg w ON w.dow = DAYOFWEEKISO(dl.d)
WHERE dl.d <= LAST_DAY(CURRENT_DATE())
GROUP BY 1
)
SELECT COALESCE(m.service_type, r.service_type) AS service_type,
ROUND(COALESCE(m.mtd_credits, 0), 1) AS month_to_date,
ROUND(COALESCE(r.rest_credits, 0), 1) AS rest_of_month,
ROUND(COALESCE(m.mtd_credits, 0) + COALESCE(r.rest_credits, 0), 1) AS month_forecast
FROM mtd m
FULL OUTER JOIN rest r ON r.service_type = m.service_type
ORDER BY month_forecast DESC;
Next, multiply the credit rows by your price per credit. On demand, that is the Table 2(a) list price; on capacity, it is list price less the Platform Credit Discount in your order form. RATE_SHEET_DAILY shows your effective rate. AI Credit rows use the AI Credit price in Table 2(b) instead, and the Platform Credit Discount does not apply to them.
Adjust for growth and known events
A four-week average lags when usage is climbing. So compare the last four weeks with the four before them, and scale the days left by any steady growth. Then add what history cannot know, such as a new pipeline or a backfill.
Can Snowflake forecast your spend for you?
Partly. Budgets use time-series forecasting and send a daily alert when projected spend passes a threshold, by default more than 10% above the limit. Snowsight’s Account Overview shows month-to-date average daily spend and budget status. For your own forecast with a range, train Snowflake’s FORECAST model on daily billed credits.
Budgets: an alert, not a plan
A budget sets a monthly credit limit for the account or a group of objects. When spending is on track to exceed it, Snowflake sends a daily notification based on time-series forecasting. By default, notifications begin only when projected spending is more than 10% above the limit.
With an illustrative 9,000-credit limit, the default alert waits for a projected 9,900 credits. If the budget’s own projection is 9,300 or 9,750, it stays silent, because both are over the limit but under that point. So lower the threshold with the SET_NOTIFICATION_THRESHOLD method, for example to 100.
A custom budget with objects added one by one forecasts their spend only from the days after it was enabled. For setup, see Snowflake budgets vs resource monitors.
Snowsight’s Account Overview
In Snowsight, Admin > Cost management > Account Overview shows the month-to-date average daily spend. Once an account budget is set, its Monthly budget utilization tile shows on-track status. Its data can be up to 72 hours old.
Snowflake’s FORECAST model
SNOWFLAKE.ML.FORECAST trains on a time series and returns a forecast with lower and upper bounds, a 95% prediction interval by default. It infers trend and seasonality; for daily data, its autoregressive season length is 7. When you create the model, set:
- One series per service type, so credits and AI Credits stay apart.
- aggregation_target SUM, so a missing day counts as zero instead of being interpolated.
- lower_bound 0, so the model never predicts negative credits.
Its main algorithm needs at least 12 rows per series; with 2 to 11, the forecast repeats the last value. Trained models cannot take new data, so Snowflake recommends retraining on a regular cadence. SHOW_EVALUATION_METRICS reports out-of-sample accuracy.
Warning: this block creates or replaces a view named daily_billed_credits and a model named credits_forecast in your current schema, so check those names are free. Training bills warehouse credits, and the model adds storage cost.
-- Role: USAGE_VIEWER database role; USAGE on the current database and schema; CREATE VIEW and
-- CREATE SNOWFLAKE.ML.FORECAST on the current schema; USAGE on the current warehouse.
-- Returns a 30-day daily forecast with a 95% prediction interval for each service type billed in the
-- last 28 days. Input data is up to 3 hours old, so run it after 03:00 UTC.
-- ALTER SESSION changes this session only. CREATE OR REPLACE overwrites objects with these names.
ALTER SESSION SET TIMEZONE = 'UTC';
CREATE OR REPLACE VIEW daily_billed_credits AS
SELECT service_type::VARIANT AS service_type, day, credits
FROM (
SELECT service_type, usage_date::TIMESTAMP_NTZ AS day, SUM(credits_billed)::FLOAT AS credits
FROM snowflake.account_usage.metering_daily_history
WHERE usage_date < CURRENT_DATE()
AND service_type IN ( -- skip service types that stopped billing, which would still get a forecast
SELECT service_type
FROM snowflake.account_usage.metering_daily_history
WHERE usage_date >= DATEADD(day, -28, CURRENT_DATE())
AND credits_billed > 0)
GROUP BY 1, 2
);
CREATE OR REPLACE SNOWFLAKE.ML.FORECAST credits_forecast(
INPUT_DATA => TABLE(daily_billed_credits),
SERIES_COLNAME => 'service_type',
TIMESTAMP_COLNAME => 'day',
TARGET_COLNAME => 'credits',
CONFIG_OBJECT => {'frequency': '1 day', 'aggregation_target': 'SUM', 'lower_bound': 0, 'on_error': 'skip'}
);
CALL credits_forecast!FORECAST(FORECASTING_PERIODS => 30, CONFIG_OBJECT => {'on_error': 'skip'});
How do you forecast a capacity contract burn-down?
Add your remaining capacity, rollover and free usage balances, divide by your recent daily spend in currency, then compare the result with the days left in your term. If the balance runs out first, you are heading for overage. If days remain, capacity may go unused.
REMAINING_BALANCE_DAILY holds end-of-day balances in currency, USAGE_IN_CURRENCY_DAILY holds daily spend, and CONTRACT_ITEMS holds term dates. Balances and spend lag up to 72 hours, so leave out today and the three days before it when you average.
Snowflake’s usage view describes usage beyond your capacity, rollover and free credits as usage paid at on-demand pricing; check your order form for the price that applies. Our Snowflake on-demand vs capacity guide has the full query and a worked example.
What breaks a Snowflake cost forecast?
Anything your history has not seen: new workloads, new warehouses, changed defaults and late data. A forecast built on last month assumes next month repeats it. So compare forecast with actuals every week, and add known changes by hand before they land.
- New warehouses default to Gen2. Since BCR-2250, a new standard warehouse defaults to Gen2 wherever Gen2 is available. A Medium Gen2 warehouse on AWS uses 5.4 credits per hour, against 4 for Gen1. That is 1.35 times as much on AWS and GCP, and 1.25 times on Azure (Tables 1(a) and 1(b)).
- Query Acceleration starts on. Since BCR-2373, Query Acceleration is on by default for new standard warehouses on Enterprise and above, and bills whenever a query uses it. Its credits appear as a QUERY_ACCELERATION line your history may lack.
How Seemore helps with Snowflake budget tracking
With Seemore’s budgets, you can track spend for specific warehouses, services or users and get timely alerts when spend approaches or exceeds each target. Cost Anomaly Detection compares each day’s spend for the accounts and warehouses its rules cover against the previous 14 days and explains the likely root cause of each spike or drop. The Seemore platform also attributes cost by user, domain and query tag, so you can see which tool or pipeline ran each query.
Frequently asked questions
What is Snowflake cost forecasting?
It is projecting future spend from your own usage history. You take billed credits per day and service type, project the remaining days by weekday or with a model, and convert credits to currency at your rate. Then compare it with your budget or capacity balance.
How do you estimate your Snowflake costs for the rest of the month?
Add month-to-date billed credits from METERING_DAILY_HISTORY to an estimate for each remaining day, using that weekday’s average over the last four weeks. Then multiply credit rows by your price per credit. Keep AI Credit rows apart, and take storage and data transfer from USAGE_IN_CURRENCY_DAILY in the organization account.
Do Snowflake budgets forecast your spend?
Partly. A budget uses time-series forecasting to send a daily notification when spending is on track to exceed its monthly credit limit, so it is an alert, not a plan. By default, notifications start only when projected spending is more than 10% above the limit, so lower the threshold for an earlier warning.
Can Snowflake's ML FORECAST function predict credit usage?
Yes. Train SNOWFLAKE.ML.FORECAST on daily billed credits, one series per service type, and it returns a forecast with a 95% prediction interval by default. Training bills warehouse credits, and the model adds storage. Retrain it on a schedule, because a trained model cannot take new data.
How much history do you need for Snowflake cost forecasting?
Four complete weeks give a weekday run rate four of each weekday. Snowflake’s FORECAST model needs at least 12 rows per series; with 2 to 11, it repeats the last value. METERING_DAILY_HISTORY keeps 365 days, while USAGE_IN_CURRENCY_DAILY goes back to June 2020 for year-over-year comparison.
Why is my Snowflake forecast different from actual spend?
Use CREDITS_BILLED, which includes the cloud services adjustment, rather than CREDITS_USED. Credit views leave out storage and data transfer, and AI Credits are a separate unit. Currency figures can also lag up to 72 hours and change until month close.