Amazon profit and margin (FBA or FBM)
amazon_profitCalculate Amazon FBA or FBM per-unit profit, margin, and break-even price from price, category, item cost, dimensions, and ad spend; get itemized fees and assumptions.
Instructions
Calculate profit, margin and break-even price for one unit sold on Amazon.com (US), FBA or FBM, from price, category, item cost, inbound cost (FBA) or label cost (FBM) and ad spend. FBA requires package dimensions and weight. Uses the same fee engine as the free calculators on shoptrueprofit.com. Returns an itemized fee breakdown, the assumptions used, the fee table version and date, official source URLs and a link to the matching free calculator. Inputs are validated strictly: invalid or unknown arguments are rejected with a message naming the field, never silently adjusted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | Item price per unit in USD (what the buyer pays for the item, excluding tax). | |
| ad_spend | No | Ad spend you attribute to this unit (e.g. Sponsored Products cost per sale), USD. Counted as a cost. Default 0. | |
| category | Yes | Amazon referral fee category id (required). See list_amazon_categories. | |
| width_in | No | FBA (required): packaged width in inches. | |
| gift_wrap | No | Gift wrap charge paid by the buyer, USD. Default 0. | |
| height_in | No | FBA (required): packaged height in inches. | |
| item_cost | No | Your cost per unit (product + packaging), USD. Default 0. | |
| length_in | No | FBA (required): packaged length in inches. Sides may be given in any order. | |
| ship_date | No | Date the unit ships (YYYY-MM-DD). Sets peak (Oct 15 - Jan 14) vs non-peak FBA rates, the fuel surcharge (from 2026-04-17) and storage season. Default: today in US Eastern time. | |
| weight_lb | No | FBA (required): packaged unit weight in pounds (16 oz = 1 lb). | |
| fulfillment | Yes | "fba" (Fulfilled by Amazon: FBA fulfillment + storage fees, needs package dimensions and weight) or "fbm" (merchant fulfilled: you ship; referral applies to item + shipping). | |
| inbound_cost | No | FBA only: your cost per unit to ship inventory into Amazon warehouses, USD. Default 0. | |
| product_type | No | FBA fee card: "standard", "apparel", or "dangerous" (hazmat). Default "standard". | standard |
| selling_plan | No | "pro" (Professional, $39.99/month) or "individual" ($0.99 per unit sold). Default "pro". | pro |
| storage_months | No | FBA: months the unit sits in Amazon storage before it sells (monthly storage fee x months, at the ship-date month's rate). Default 1. | |
| units_per_month | No | Professional plan only: units you sell per month, to spread the $39.99 subscription per unit. 0 = do not include the subscription. Default 0. | |
| shipping_charged | No | FBM only: shipping the buyer pays, USD. Must be 0 or omitted for FBA (Amazon sets FBA shipping). Default 0. | |
| shipping_label_cost | No | FBM only: what you pay per unit for the shipping label, USD. Default 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fees | No | ||
| tool | Yes | ||
| costs | No | ||
| inputs | Yes | ||
| profit | No | ||
| details | No | ||
| pricing | No | ||
| revenue | No | ||
| sources | Yes | ||
| summary | Yes | ||
| currency | Yes | ||
| warnings | Yes | ||
| fee_table | Yes | ||
| comparison | No | ||
| disclaimer | Yes | ||
| assumptions | Yes | ||
| marketplace | Yes | ||
| calculator_url | Yes |