Back to calculator
Shipping, Ecommerce & WarehouseGenerated accuracy model review: 2026-05-06

Ecommerce Gross Margin Calculator accuracy and testing

This page documents how Calwarden builds trust for this calculator: source notes, regression-style default tests, limitations, assumptions, unit handling, rounding, and visible change history.

Formula source

  • Gross profit = revenue - COGS - variable fees - shipping subsidy. Gross margin percent = gross profit / revenue x 100.

Test cases

Default input regression check

Generated from the checked-in default inputs and calculate function.

Inputs

  • Revenue: $120
  • COGS: $42
  • Variable Fees: $8.6
  • Shipping Subsidy: $6.5

Expected outputs

  • Gross Margin: 52.42%
  • Gross Profit: $62.90
  • Total Variable Cost: $57.10
  • Variable Cost Rate: 47.58%

Known limitations

  • These calculators do not fetch live carrier rates, marketplace fees, duty schedules, ad platform data, exchange rates, tax rates, or fulfillment provider pricing. Enter the current assumptions that apply to your store.

Assumptions

  • All prices, costs, rates, duties, shipping charges, and campaign assumptions are user-entered.
  • Calculations are deterministic and run locally in the browser without uploading ecommerce or customer data.
  • Results are planning estimates and do not include every tax, refund, chargeback, inventory, financing, or accounting adjustment.

Unit handling

  • Revenue accepts values in $.
  • COGS accepts values in $.
  • Variable Fees accepts values in $.
  • Shipping Subsidy accepts values in $.
  • Gross Margin is displayed as a percentage.
  • Gross Profit is displayed as currency.
  • Total Variable Cost is displayed as currency.
  • Variable Cost Rate is displayed as a percentage.

Rounding rules

  • Number displays use up to 2 decimal places in the calculator UI.
  • Currency outputs are displayed with standard US dollar formatting.
  • Percent outputs are displayed with two decimal places.
  • Input precision follows configured step values where provided.

Version history

1.0.0 - 2026-05-06

Generated accuracy and testing page from the current ecommerce-gross-margin-calculator calculator definition.

Change log

2026-05-06

Published default regression test documentation and metadata fallbacks for Ecommerce Gross Margin Calculator.

Calculator transparency

Accuracy pages are generated from checked-in calculator definitions and can be upgraded with curated review metadata over time.

Use calculator