Tools · free

x402 revenue calculator

Plug in your API traffic. I show the monthly gross, the net after the ~0.5% x402 protocol fee, the annualized total, and a side-by-side with Stripe so you can see exactly where micropayments beat card rails.

Results render from the URL, so every answer is shareable. Source: src/pages/tools/x402-calculator.astro.

Reset
Monthly gross $30,000
Monthly net $29,850
Annualized net $363,175

x402 vs Stripe vs no monetization

Rail Fee per txn Net per txn Monthly net Annual net
x402 (USDC on Base) $0.01 $1.99 $29,850 $363,175
Stripe (2.9% + $0.30) $0.36 $1.64 $24,630 $295,560
No monetization $0.00 $0 $0

x402 keeps $1.99 of every $2.00 request. Stripe keeps $1.64. The gap at this price is $0.35/txn in x402's favor — $5220/mo extra.

Not wiring any payments leaves $29,850/mo ($358,200/yr) on the table.

Here's the math

  1. Daily paid requests 50,000 × 1% = 500
  2. Monthly paid requests (30d) 500 × 30 = 15,000
  3. Monthly gross 15,000 × $2.00 = $30,000
  4. Protocol fee (0.5%) $30,000 × 0.5% = $150
  5. Monthly net $30,000 − $150 = $29,850
  6. Annualized net $29,850 × 12 ≈ $363,175

Wire it up

The x402 middleware is ~20 lines on a Hono/Express/Next route. It issues a 402 Payment Required with a USDC settlement challenge; the agent pays; you return the response. I ship this as a productized engagement: 1 week, $2,500 flat, USDC on Base. You keep the keys, the code, and every cent of revenue.

Wire x402 on your API in 1 week — $2,500 → Or ask a question first

Keyboard shortcuts

+ K
Focus search
Space
Play / pause current audio
Seek back / forward 5 seconds
J L
Seek back 10s / forward 30s (podcast-style)
[ ]
Jump to previous / next paragraph (post pages)
F
Toggle ✨ follow-along karaoke
T
Toggle 📝 transcript panel
C
Copy link at current audio timestamp
?
Toggle this dialog
Esc
Close this dialog

Audio controls work on any page with an <audio> — they follow whichever player is currently playing.