# Estimate your WhatsApp API bill before Meta sends it

> A worked method and a Python estimator for Meta's WhatsApp charges: categories, the 1,000 free service messages per number, volume tiers and currency.

Published 2026-11-04. Z-API Omni team.

Meta bills each delivered message at the rate for its category and the recipient's market, so an estimate is a sum of counts times rates. Count delivered messages per market and category, take 1,000 free service messages off each business phone number, and apply volume tiers to utility and authentication. Then multiply by the rate card in your account's billing currency. Undelivered messages cost nothing, and "Meta does not charge for messages from users to businesses" ([Meta pricing, accessed 2026-11-04](https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing)). The arithmetic fits in a short script.

## What Meta counts

Every message gets one category and at most one charge. Templates are marketing, utility or authentication. A non-template message is service unless the Meta Business Agent Platform produced it. Such a message "is charged either as a Meta Business Agent message or as a service message, never both" ([Meta non-template pricing, accessed 2026-11-04](https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing/non-template-messages)).

| Category | Charged when | Free when | Volume tiers |
|---|---|---|---|
| Marketing | Delivered | Delivered in a free entry point window | None |
| Utility | Delivered, including inside an open customer service window since October 1, 2026 | Delivered in a free entry point window | Yes, counted across the business portfolio |
| Authentication | Delivered | Delivered in a free entry point window | Yes, counted across the business portfolio |
| Authentication-international | Delivered to a listed market by an eligible business based in another country, after its start time | Not stated by Meta | Not stated by Meta |
| Service | Delivered past the 1,000 free per business phone number per month | Within the first 1,000 per number each month, or in a free entry point window | None |

The market comes from the recipient. "Charges by message category vary based on the recipient WhatsApp phone number's country calling code." A named market has its own rate, and a regional market charges "that region's rate, across all markets within that region". One template sent to users in three countries becomes three lines in your estimate.

Two rules changed on October 1, 2026. Service messages past the free tier are charged again, and so are utility templates sent inside an open customer service window. Both had been free, and their webhook pricing `type` moved "from `free_customer_service` to `regular`". [Meta's service message charges](/academy/articles/meta-whatsapp-service-message-charges-october-2026/) covers that change in detail.

Meta Business Agent messages are priced apart, at US$2.00 per million tokens, and Meta keeps charging them inside free entry point windows. The estimator below leaves them out.

## Messages Meta does not charge

"Meta provides every business phone number with a free tier of 1,000 service messages per month." Unused messages "do not roll over", and the count resets "at 12am by Messaging account timezone". Meta "charges as of the 1,001st service message per month". Ten numbers get 10,000 free service messages between them, but a quiet number's spare allowance can't cover a busy one.

Free entry point windows remove the charge on everything else. A click-to-WhatsApp ad opens the window when the user taps it in Meta's Android or iOS app. The window "may remain open for up to 7 days". While it's open, "Meta does not charge for marketing, utility, authentication or service messages." Leave those messages out of your counts. [The free entry point guide](/academy/articles/whatsapp-click-to-whatsapp-ads-free-entry-point/) lists the conditions.

Eligible government and non-profit organizations stay free past the tier through December 31, 2027. Their status webhooks show `subtype` set to `paid_exempt`.

## Volume tiers are marginal and portfolio-wide

Tiers lower the rate for utility and authentication messages only. Marketing has none, and "Meta will not offer volume tiers for service messages" (non-template pricing page). Meta aggregates "at the business portfolio level, across all Messaging accounts owned by the portfolio". Count every account in the portfolio together, per market and category.

A tier rate applies only to the messages inside that tier. The first band is billed at list rate, the next band at the next rate, and so on. Meta writes the total as "Rate per tier x messages in each tier". "Only messages that are charged count toward the tiers", so free entry point messages don't move you up a band. The count resets to zero every month.

Meta's tier table on the pricing page is "illustrative and only highlights the dynamics of volume tiers". Its percentages are not real discounts. The real thresholds and rates are in the volume tiers file for your currency.

## Rates and currency

Use the card in your billing currency. Meta has 16 currencies enabled, each with a list rates CSV, a volume tiers CSV and a PDF. They're in the [rate cards section of the pricing page](https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing#rate-cards-and-volume-tiers) (accessed 2026-11-04). The current cards are "effective October 1, 2026". [How to read Meta's rate card](/academy/articles/whatsapp-api-pricing-by-country-rate-card/) walks through the USD file market by market.

The currency is fixed when the Messaging account is created: "once selected, a currency cannot be changed." Meta's [currency migration APIs](https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing/change-billing-currency) move you to a new account in another currency (accessed 2026-11-04). Meta sets June 30, 2027 for eligible Brazil accounts to move to BRL, and December 31, 2026 for India accounts to move to INR.

Meta changes prices only on the first day of a quarter, with one month's notice for rate card changes. Write the card's effective date next to every rate you copy.

The authentication-international rate covers authentication templates delivered to certain markets when your business is based in another country and has become eligible ([Meta authentication-international rates, accessed 2026-11-04](https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing/authentication-international-rates)). Eligibility comes from sending "more than 750K messages outside of customer service windows in a moving 30-day period" to those markets. It is permanent, and the new rate starts 30 days after the eligibility date. Until your start time for a market, authentication templates to it bill at that market's authentication rate. Messages to your primary business location always bill at the domestic rate.

## A Python estimator

The script takes the rate card and the tier bands as inputs. Every rate and threshold in it is a placeholder, so replace each one with the figure from your card before you trust the total.

```python
# estimate_whatsapp_bill.py. Python 3.9 or later, standard library only.
# Every rate and threshold below is a PLACEHOLDER. Replace them with the figures
# from Meta's rate card and volume tiers file for your billing currency.
from decimal import Decimal

CURRENCY = "BILLING_CURRENCY"
RATE_CARD_EFFECTIVE = "RATE_CARD_DATE"  # the effective date printed on the card
FREE_SERVICE_PER_NUMBER = 1000          # per business phone number, per month

# List rate per delivered message, by market and category.
# EXAMPLE VALUES, NOT META'S RATES: replace with your rate card.
RATE_CARD = {
    "MARKET_A": {
        "marketing": Decimal("0.0400"),
        "utility": Decimal("0.0100"),
        "authentication": Decimal("0.0100"),
        "service": Decimal("0.0100"),
    },
    "MARKET_B": {
        "marketing": Decimal("0.0600"),
        "utility": Decimal("0.0200"),
        "authentication": Decimal("0.0200"),
        "authentication_international": Decimal("0.0500"),
        "service": Decimal("0.0200"),
    },
}

# Volume tiers, per market and category, for utility and authentication only.
# Each band is (last message in the band, rate). None means no upper limit.
# EXAMPLE VALUES: copy the real bands from the volume tiers file.
TIER_BANDS = {
    ("MARKET_A", "utility"): [
        (100_000, Decimal("0.0100")),
        (500_000, Decimal("0.0090")),
        (None, Decimal("0.0080")),
    ],
}

# Charged template messages expected this month for the whole business
# portfolio (every Messaging account in it), by market and category.
# Leave out messages delivered inside a free entry point window.
TEMPLATES = {
    ("MARKET_A", "marketing"): 20_000,
    ("MARKET_A", "utility"): 180_000,
    ("MARKET_B", "authentication"): 15_000,
}

# Service (non-template) messages expected per business phone number, by market.
SERVICE = {
    "PHONE_NUMBER_1": {"MARKET_A": 3_500, "MARKET_B": 400},
    "PHONE_NUMBER_2": {"MARKET_A": 700},
}

def tiered_cost(count, bands):
    """Marginal pricing: each band's rate applies only to the messages in that band."""
    total, floor = Decimal(0), 0
    for upper, rate in bands:
        top = count if upper is None else min(count, upper)
        if top > floor:
            total += (top - floor) * rate
        if upper is None or count <= upper:
            break
        floor = upper
    return total

def template_lines():
    for (market, category), count in sorted(TEMPLATES.items()):
        bands = TIER_BANDS.get((market, category))
        if bands and category in ("marketing", "service"):
            raise ValueError(f"Meta has no volume tiers for {category}")
        cost = tiered_cost(count, bands) if bands else count * RATE_CARD[market][category]
        yield f"{market} {category}", count, cost

def service_lines():
    for number, by_market in sorted(SERVICE.items()):
        free_left = FREE_SERVICE_PER_NUMBER
        # Meta does not say which market the free 1,000 fall in. Spending them
        # on the cheapest market first keeps the estimate on the high side.
        for market in sorted(by_market, key=lambda m: RATE_CARD[m]["service"]):
            count = by_market[market]
            free = min(free_left, count)
            free_left -= free
            charged = count - free
            yield f"{number} {market} service", charged, charged * RATE_CARD[market]["service"]

def main():
    total = Decimal(0)
    print(f"Rates in {CURRENCY}, card effective {RATE_CARD_EFFECTIVE}")
    for label, charged, cost in list(template_lines()) + list(service_lines()):
        total += cost
        print(f"{label:<36}{charged:>10,} charged {cost:>14,.2f}")
    print(f"{'Estimated total':<55}{total:>14,.2f}")

if __name__ == "__main__":
    main()
```

With the placeholder values it prints a total of 2,853.00, a number that means nothing until the rates are yours.

Meta charges "as of the 1,001st service message per month" and doesn't say which market the first 1,000 fall in. Meta also doesn't say whether service messages delivered in a free entry point window use up the free tier. The script assumes they don't. If many of your service replies go to ad leads, treat the service line as a range.

## Check the estimate against Meta's numbers

After the month closes, ask Meta for the same breakdown. The `pricing_analytics` field returns "pricing breakdowns for any messages delivered within a specified date range" for a Messaging account ([Meta analytics, accessed 2026-11-04](https://developers.facebook.com/documentation/business-messaging/whatsapp/analytics)). Adapted from Meta's sample request: monthly granularity, no country filter, placeholders for the IDs and timestamps.

```bash
curl 'https://graph.facebook.com/v26.0/WHATSAPP_BUSINESS_ACCOUNT_ID?fields=pricing_analytics.start(START_UNIX_TIME).end(END_UNIX_TIME).granularity(MONTHLY).dimensions(PRICING_CATEGORY,PRICING_TYPE,TIER,COUNTRY)' \
-H 'Authorization: Bearer ACCESS_TOKEN'
```

Each data point carries `country`, `pricing_category`, `pricing_type`, `tier`, `volume` and `cost`. `tier` reads like `"0:750000"`, so the upper bound minus `volume` tells you how far away the next tier is. Free messages have no tier. Results come per Messaging account while tiers count across the portfolio, so add up every account before you compare. On an account that shares a Solution Partner's credit line, `COST` doesn't come back and you get volume only. [What a provider bill contains](/academy/articles/whatsapp-api-provider-pricing-markup-hidden-costs/) covers that case, and [the analytics API guide](/academy/articles/whatsapp-business-analytics-api-pricing-analytics/) covers the other fields.

For a running count during the month, read the `pricing` object on status webhooks. Meta says it's "only included with sent status, and one of either delivered or read status", so count each message ID once ([status reference, accessed 2026-11-23](https://developers.facebook.com/documentation/business-messaging/whatsapp/webhooks/reference/messages/status)). `type` set to `regular` means charged, and `category` names the rate line ([Meta status webhook reference, accessed 2026-11-04](https://developers.facebook.com/documentation/business-messaging/whatsapp/webhooks/reference/messages/status)). When a Messaging account reaches a new tier, Meta sends an `account_update` webhook with `event` set to `VOLUME_BASED_PRICING_TIER_UPDATE`. If two arrive, Meta says to keep the one with the smaller `tier_update_time`.

*Z-API Omni team*
