Skip to main content
Gateway Cost measures the total payment gateway processing fees charged by payment processors like Stripe, PayPal, or Shopify Payments.

Formula

Gateway Cost = SUM ( Payment Gateway Fees )

Formula Components

MetricDefinition
Payment Gateway FeesFlat fees + percentage-based fees charged per transaction by payment processors
Metadata
TypeCurrency
Data SourceShopify
AggregationSum

Example

Your store processed $125,000 in revenue across 1,247 orders in January. With a 2.9% + $0.30 fee structure:
ComponentCalculationAmount
Percentage fees$125,000 × 2.9%$3,625
Flat fees1,247 × $0.30$374
Total Gateway Cost$3,999

How It Works

Gateway Cost aggregates all payment processing fees from your payment processor. This includes both the percentage-based fee (typically 2.4-3.5% of transaction value) and any flat per-transaction fees ($0.30 is common). The metric pulls from Shopify’s transaction data.

When to Use

ScenarioAction
Evaluating payment processorsCompare Gateway Cost across different processors to find the best rates
Calculating contribution marginDeduct from revenue at CM2 level for accurate profitability
Benchmarking processing costsTarget 2-3% of revenue for typical e-commerce
Analyzing per-order economicsCombine with per-order metrics to understand unit costs

MetricRelationship
Gateway Cost Per OrderAverage gateway fee per order
Gateway Cost %Gateway fees as percentage of net revenue
Total Transaction CostGateway Cost + Other Transaction costs
See all Transaction Cost metrics →