x402 turns the HTTP "402 Payment Required" status code into a real pay-per-call rail — an AI agent hits your API, gets a 402, signs a stablecoin payment, and retries. The protocol itself is free, but the underlying blockchain settlement fee and any facilitator cut still come out of a price that might be one cent. Enter your per-call price, chain, and volume to see the real net margin, break-even price, and monthly P&L.
✓ Last verified: 2026-08-24· Chain presets are illustrative typical settlement fees, not a live feed — use /network-fees.html for live data· Reference estimate — report change →
Net margin per call
—
Same price and volume, every chain preset
Your entered price and daily call volume, run against each chain's typical settlement fee (facilitator fee applied the same way to all). The best margin is highlighted.
Chain
Net fee
Margin/call
Margin %
Break-even price
Monthly net
How it works
Net margin per call is price − network settlement fee − (price × facilitator fee%). The network settlement fee is a flat dollar cost per payment regardless of the payment's size — it is the real on-chain cost of the underlying stablecoin transfer that x402 wraps in an HTTP 402 handshake. The facilitator fee, if any, is a percentage of the price itself, charged by whichever service verifies and relays the payment for you (the base x402 protocol itself charges 0%). Break-even price is the smallest price at which margin is not negative: network fee ÷ (1 − facilitator% ÷ 100) — below that price the network fee alone consumes the entire payment. Monthly figures scale margin-per-call out across your entered daily call volume over a 30-day month.
Reading the numbers
At the defaults — $0.01 per call, Base L2's $0.0005 settlement fee, 0% facilitator fee, 10,000 calls/day — net margin is $0.0095/call, a 95% margin, with a break-even price of just $0.0005. At 10,000 calls/day that's $2,850/month in net margin on $3,000/month of gross revenue. Switch the chain preset to Ethereum L1 (illustrative $0.50 settlement fee) at the same $0.01 price and every single call loses $0.49 — the break-even price jumps to $0.50, meaning you'd have to charge fifty times more per call just to cover settlement, which is exactly why agentic micropayments run on Base, Solana or Stellar-style rails instead of L1.
What is x402 and why does per-call pricing need its own margin calculator?
x402 is an open payment standard, built around the long-dormant HTTP 402 'Payment Required' status code, that lets an AI agent or piece of software pay for an API response in stablecoins in-band with the request itself — the server replies 402, the caller signs a small USDC (or similar) payment, attaches proof, and retries. The protocol itself charges zero fee, but the payment still has to settle on a real blockchain, and that settlement has a real cost: a network fee for the underlying transaction, plus, depending on how you're set up, a percentage cut taken by the facilitator or gateway service that verifies and forwards the payment on your behalf. When you're pricing an API call at $0.001 to $0.05, a fee that would be a rounding error on a $50 checkout can eat 5%, 30%, or literally all of your margin — this calculator turns those fractions-of-a-cent inputs into an actual per-call margin, a break-even price, and a monthly number.
How is the break-even price calculated?
Every x402 payment pays a fixed network settlement fee (the on-chain cost of the underlying transfer) regardless of how small the payment is, and on top of that some facilitators take a percentage of the payment amount itself for verifying and relaying it. If your facilitator fee is a flat percentage of the charged price, then price minus network fee minus (price × facilitator%) must be at least zero for you to not lose money on the call: price × (1 − facilitator%) ≥ network fee, so break-even price = network fee ÷ (1 − facilitator% ÷ 100). Below that price, the network fee alone consumes your entire receipt and you are paying to serve the request. This is exactly why chain choice matters so much for agentic micropayments — a $0.50 Ethereum L1 settlement fee makes anything under roughly $0.50 per call unprofitable outright, while a $0.00001 Stellar-style fee leaves the break-even price effectively at zero.
Does x402 itself charge a protocol fee?
No — as of 2026 the core x402 protocol (originated by Coinbase and stewarded by the x402 Foundation) charges zero protocol-level fee on top of a payment; it is deliberately built as thin, open plumbing rather than a toll booth. The costs that actually hit your margin come from two other places: the underlying blockchain's own network/settlement fee for the transaction (which varies enormously by chain — Base and Solana are commonly used specifically because their fees are low enough for sub-cent payments to make sense, and Stellar's fees are lower still), and, optionally, a percentage or flat fee charged by whichever facilitator service verifies and settles the payment for you if you're not running settlement infrastructure yourself. This calculator defaults the facilitator fee to 0% to match the base protocol, with a field to add one back in if your specific facilitator or gateway charges for the service.
Why do people say micropayments only work on certain chains?
A micropayment only makes economic sense if the fee to move it is a small fraction of the payment itself — pay $0.30 in card-network-style fees to move a $0.01 payment and the entire model is upside down before you even count your own margin. Base and Solana became the default rails for x402 largely because typical fees there sit in the sub-cent to low-single-cent range, small enough that a payment of a cent or more can still clear with meaningful margin; Stellar pushes that further with fees quoted near $0.00001, viable even for sub-cent payments. Ethereum L1, by contrast, routinely charges tens of cents to several dollars per transaction depending on congestion, which makes it structurally unsuited to per-API-call pricing — this calculator's chain presets exist specifically to make that gap visible in dollar terms rather than as an abstract warning.
How much does facilitator fee percentage actually matter at these price points?
More than it looks like at first glance, because it's a percentage of a number that's already tiny, so it compounds against you fastest when your price is closest to the network fee floor. At a $0.01 price with a $0.0005 Base network fee, a facilitator taking 0% leaves a 95% margin; a facilitator taking 10% takes another $0.001 off the top, dropping the margin to roughly 85% — noticeable but survivable. At a lower price point closer to the break-even line, the same 10% facilitator cut can be the difference between a small profit and an outright loss per call, because there's much less margin left to absorb it. The monthly-volume view in this calculator is where that shows up concretely: at high call volumes, a few percentage points of facilitator fee turns into a real month-over-month revenue gap, not just a rounding difference.