Azure Application Gateway Calculator
Work out Application Gateway v2 capacity units from connections and throughput, then price the fixed and CU charges.
About Azure Application Gateway Calculator
Application Gateway v2 charges a fixed hourly rate plus capacity units, and a capacity unit is defined by whichever of three dimensions is most stretched: 50 new TLS connections per second, 2,500 persistent connections, or 2.22 Mbps of throughput. Because the maximum wins, a TLS-heavy API with modest bandwidth can need far more capacity units than its Mbps figure suggests. TLS handshakes, not bandwidth, are what usually drive Application Gateway cost, so session reuse and keep-alive tuning translate directly into fewer capacity units; the minimum capacity you reserve is billed continuously, so treat it as a floor for your bill as well as your latency.
Formula
Azure Application Gateway
capacity units = max(new TLS connections ÷ 50, persistent connections ÷ 2,500, throughput Mbps ÷ 2.22); monthly = fixed rate × 730 + capacity units × CU rate × 730.
- capacity unit
- v2 billing unit combining compute, persistent connections and throughput
- 2.22 Mbps
- Throughput one capacity unit sustains
- minimum capacity
- Instances you reserve so the gateway does not scale from cold
Worked example
With the default values below, Azure Application Gateway Calculator returns Capacity Units Needed of 45.1. Change any input above and every figure here is recalculated in your browser.
Inputs used
- New TLS connections per secondaccepts 0–1,000,000 conn/s
- 200 conn/s
- Concurrent persistent connectionsaccepts 0–10,000,000 connections
- 6,000 connections
- Throughputaccepts 0–100,000 Mbps
- 100 Mbps
- Minimum capacity units reservedaccepts 0–125 CU
- 2 CU
- Fixed gateway rateaccepts 0–20 USD/hour
- 0.246 USD/hour
- Price per capacity unitaccepts 0–5 USD/CU-hour
- 0.008 USD/CU-hour
- Billed hours per monthaccepts 1–744 hours
- 730 hours
Results
- Capacity Units Needed
- 45.1 CU
- Monthly Cost
- $442.96
- Fixed Gateway Charge
- $179.58
- Capacity Unit Charge
- $263.38
- Dimension That Sets Capacity
- Throughput at 2.22 Mbps per capacity unit
- Headroom Above the Minimum
- 0.1%
Step by step
- 1Values used
- 2Azure Application Gateway
- 3Capacity Units Needed= 45.1 CU
- 4Monthly Cost= 442.96
- 5Fixed Gateway Charge= 179.58
- 6Capacity Unit Charge= 263.38
- 7Dimension That Sets Capacity= Throughput at 2.22 Mbps per capacity unit
- 8Headroom Above the Minimum= 0.1
Assumptions and limits
- The result is derived only from the 7 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
- Figures are rounded for display to 2 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
Frequently Asked Questions
How is Azure Application Gateway calculated?
capacity units = max(new TLS connections ÷ 50, persistent connections ÷ 2,500, throughput Mbps ÷ 2.22); monthly = fixed rate × 730 + capacity units × CU rate × 730. Application Gateway v2 charges a fixed hourly rate plus capacity units, and a capacity unit is defined by whichever of three dimensions is most stretched: 50 new TLS connections per second, 2,500 persistent connections, or 2.22 Mbps of throughput. Because the maximum wins, a TLS-heavy API with modest bandwidth can need far more capacity units than its Mbps figure suggests.
Why does Azure Application Gateway matter?
TLS handshakes, not bandwidth, are what usually drive Application Gateway cost, so session reuse and keep-alive tuning translate directly into fewer capacity units; the minimum capacity you reserve is billed continuously, so treat it as a floor for your bill as well as your latency.
What values do I need to enter?
This calculator takes 7 inputs: New TLS connections per second, Concurrent persistent connections, Throughput, Minimum capacity units reserved, Fixed gateway rate, Price per capacity unit, Billed hours per month. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.
Related Calculators
You might also need
- Azure Firewall CalculatorCommonly used together
- Azure App Service Cost CalculatorCommonly used together
- Azure Load Balancer CalculatorCommonly used together
- Azure CDN Cost CalculatorCommonly used together
- Azure Blob Storage CalculatorAlso in Microsoft Azure
- Azure Advisor Savings CalculatorAlso in Microsoft Azure
