eBay profit and margin
ebay_profitCalculate profit, margin, and break-even price for an eBay.com (US) order from price, costs, shipping, and ad rates. Returns itemized fee breakdown and assumptions.
Instructions
Calculate profit, margin and break-even price for an eBay.com (US) order from price, quantity, shipping, item cost, label cost and ads (Promoted Listings General rate plus any other ad spend). Margin = profit / seller revenue (sales tax excluded). Percent arguments (*_pct) are percents: 8.25 means 8.25%. Money is in whole cents. 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. | |
| ad_spend | No | Other ad spend you attribute to this order, USD (e.g. Promoted Listings Priority cost-per-click). Counted as a cost. Default 0. | |
| category | No | eBay final value fee category id. Default "most" (Most categories, 13.6%). See list_ebay_categories. | most |
| quantity | No | Units in the order (same item). Fee tiers apply per item; the per-order fee once. Default 1. | |
| item_cost | No | Your cost per unit, USD. Default 0. | |
| insertion_fee | No | true if this listing used up your 250 free monthly listings and paid the $0.35 insertion fee. Default false. | |
| international | No | true if the buyer is outside the US and the item is NOT shipped with eBay International Shipping (adds the 1.65% international fee). Default false. | |
| sales_tax_pct | No | Buyer's sales tax rate in percent. eBay charges its final value fee on the total INCLUDING tax, but the tax is not seller income. Default 0. | |
| shipping_charged | No | Shipping and handling the buyer pays for the whole order, USD. Default 0. | |
| seller_performance | No | Seller performance surcharge: none (Above Standard / Top Rated), below (+6%), below4 (+7%, 4+ months), inad (+5%, very high "not as described"), inad4 (+6%). Default none. | none |
| shipping_label_cost | No | What you pay for the shipping label and packaging for the whole order, USD. Default 0. | |
| promoted_listings_pct | No | eBay Promoted Listings General (cost-per-sale) ad rate in percent, charged on the total sale amount incl. shipping and tax. 0 (not promoted, or no sale via ad) or 2 to 100. 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 |