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 $3000
Monthly net $2985
Annualized net $36,318

x402 vs Stripe vs no monetization

Rail Fee per txn Net per txn Monthly net Annual net
x402 (USDC on Base) $0.00 $0.05 $2985 $36,318
Stripe (2.9% + $0.30) $0.30 loss of $0.25 -$15,087 -$181,044
No monetization $0.00 $0 $0

At $0.05/request, Stripe can't carry this. The $0.30 flat fee exceeds the price itself — every card-rail txn is a $0.25 loss. x402 nets you $2985/mo on the same volume.

Not wiring any payments leaves $2985/mo ($35,820/yr) on the table.

Here's the math

  1. Daily paid requests 100,000 × 2% = 2,000
  2. Monthly paid requests (30d) 2,000 × 30 = 60,000
  3. Monthly gross 60,000 × $0.05 = $3000
  4. Protocol fee (0.5%) $3000 × 0.5% = $15.00
  5. Monthly net $3000 − $15.00 = $2985
  6. Annualized net $2985 × 12 ≈ $36,318

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.