Skip to main content
The total cost of processing payments, combining gateway fees and any additional user-defined transaction costs.

Formula

Total Transaction Cost = Gateway Cost + Other Transaction Cost

Formula Components

MetricDefinition
Gateway CostPayment gateway processing fees including flat and percentage-based fees
Other Transaction CostUser-defined transaction costs from order cost entries
Metadata
TypeCurrency
Data SourceShopify
AggregationSum

Example

Your store processed $125,000 in orders this month with $4,875 in total transaction costs:
ComponentAmount% of Revenue
Gateway Cost$3,7503.0%
Other Transaction Cost$1,1250.9%
Total Transaction Cost$4,8753.9%

How It Works

Total Transaction Cost aggregates all payment-related fees from your orders. Gateway costs are pulled from Shopify’s transaction data, while Other Transaction costs come from user-defined order cost entries with the “Transaction” category. This metric is deducted from CM1 to calculate CM2.

When to Use

ScenarioAction
Calculating contribution marginDeduct from CM1 alongside fulfillment costs
Evaluating payment processorsCompare total processing costs across gateways
Pricing strategyFactor transaction costs into product margins
Profitability analysisTrack how payment fees impact net margins

MetricRelationship
Gateway CostComponent: payment processor fees
Other Transaction CostComponent: user-defined transaction costs
Gateway Cost %Gateway fees as percentage of revenue
CM1Margin before transaction and fulfillment costs
CM2Margin after deducting this cost
See all Transaction Cost metrics →