Calculate profit
calculate_profitCalculate ecommerce profit per unit on Amazon FBA, FBM, TikTok Shop FBT, or self-fulfilled. Returns fees, landed cost, margins after ads/returns/storage, and monthly P&L.
Instructions
Calculate ecommerce profit for one product on Amazon FBA, Amazon FBM, TikTok Shop FBT, or TikTok Shop self-fulfilled. Returns per-unit fees, landed cost, gross margin, net margin after ads/returns/storage, and monthly P&L. Free to use; no Profitlee API token required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| H | Yes | Height. US: inches; DE/JP: cm. | |
| L | Yes | Length. US: inches; DE/JP: cm. | |
| W | Yes | Width. US: inches; DE/JP: cm. | |
| fob | Yes | Unit manufacturing / FOB cost in the marketplace currency. | |
| duty | Yes | Import duty per unit. | |
| mode | Yes | Fulfillment mode. amazon: fba or fbm. tiktok_shop: fbt or self_fulfilled. | |
| price | Yes | Selling price per unit (gross; VAT-inclusive for DE/JP). | |
| region | Yes | Marketplace. US uses inches+pounds; DE/JP use cm+kg. | |
| weight | Yes | Unit weight. US: pounds; DE/JP: kg. | |
| ppcAcos | Yes | Advertising ACoS as a 0-1 decimal (0.15 = 15%). | |
| headShip | Yes | Inbound freight cost allocated per unit. | |
| platform | No | Sales platform. Default: amazon. | amazon |
| isApparel | Yes | Whether the product is apparel (affects some fees). | |
| returnRate | Yes | Return rate as a 0-1 decimal (0.05 = 5%). | |
| referralPct | Yes | Referral/commission fee as a 0-1 decimal (0.15 = 15%). Preferred. | |
| adSalesShare | No | Ad-attributed share of sales, 0-1. Omit to default to 1. | |
| inboundOption | No | Amazon FBA only: inbound placement option. | |
| monthlyVolume | Yes | Units sold per month. | |
| storageMonths | No | Amazon FBA only: number of months in storage. | |
| storageSeason | No | Amazon FBA only: storage season (octDec is the Q4 peak). | |
| pickPackPerUnit | No | FBM or TikTok self_fulfilled: pick & pack per unit. | |
| referralCategory | No | Advanced: a category slug that overrides referralPct. Leave unset and use referralPct. | |
| monthly3plStorage | No | FBM or TikTok self_fulfilled: total monthly 3PL storage. | |
| outboundShipPerUnit | No | FBM or TikTok self_fulfilled: outbound shipping per unit. | |
| unsellableReturnRate | No | Unsellable share of returned units, 0-1. Omit to default to 1. | |
| storageMonthsPastFree | No | TikTok fbt only: months stored past the 60-day free window (0 if shipped before it ends). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Profit calculation result from Profitlee, including fee breakdowns, landed cost, gross/net margin, and monthly P&L fields. |