HomeQuery LibraryAmazon

How much are FBA fees actually costing you — per SKU?

Revenue looks great until you subtract FBA fees. This query breaks down referral fees, fulfillment fees, and storage costs by SKU so you can see your real net after Amazon takes its cut.

📊 Amazon Seller Central👥 Amazon FBA sellers and finance teams🔤 Plain-English → SQL
Show me total FBA fees by SKU this quarter broken down by fee type
Amazon FBA Fee Impact by SKU — generated by Taptic Data AI
SELECT
  f.sku,
  ROUND(SUM(CASE WHEN f.fee_type ILIKE '%referral%'     THEN f.fee_amount ELSE 0 END)::numeric, 2) AS referral_fees,
  ROUND(SUM(CASE WHEN f.fee_type ILIKE '%fulfillment%'  THEN f.fee_amount ELSE 0 END)::numeric, 2) AS fulfillment_fees,
  ROUND(SUM(CASE WHEN f.fee_type ILIKE '%storage%'      THEN f.fee_amount ELSE 0 END)::numeric, 2) AS storage_fees,
  ROUND(SUM(f.fee_amount)::numeric, 2)                                                              AS total_fees,
  ROUND(SUM(i.item_price * i.quantity)::numeric, 2)                                                AS gross_revenue,
  ROUND(
    SUM(i.item_price * i.quantity)::numeric - SUM(f.fee_amount)::numeric
  , 2)                                                                                              AS net_revenue,
  ROUND(
    (SUM(i.item_price * i.quantity)::numeric - SUM(f.fee_amount)::numeric)
    / NULLIF(SUM(i.item_price * i.quantity)::numeric, 0) * 100
  , 1)                                                                                              AS net_margin_pct
FROM amazon_fba_fees f
LEFT JOIN amazon_order_items i ON i.sku = f.sku
LEFT JOIN amazon_orders o ON o.amazon_order_id = i.amazon_order_id
  AND o.purchase_date::date >= DATE_TRUNC('quarter', CURRENT_DATE)
  AND o.order_status NOT IN ('Canceled', 'Cancelled')
WHERE f.sku IS NOT NULL
GROUP BY f.sku
ORDER BY total_fees DESC
Schema-aware SQL generated from plain English22 lines

This query was generated by Taptic Data from plain English against a real Amazon Seller Central schema. In Taptic, you type the question — the AI writes the SQL, runs it, and returns the result. You can edit the SQL, ask for explanations, and save it as a refreshable report. This type of analysis is commonly used in amazon fba analytics and settlement reconciliation.

Breaking it down line by line

  1. CASE WHEN with ILIKE breaks out referral, fulfillment, and storage fees into separate columns in one pass
  2. Left joins order_items and orders to get gross revenue for the same SKUs in the current quarter
  3. Net revenue calculated as gross minus total fees — the real take-home per SKU
  4. Net margin percentage shows fee burden relative to revenue — high fees on low-margin SKUs are the danger signal
  5. NULLIF prevents division by zero for SKUs with no order revenue in the period

Result description

Per-SKU breakdown of referral fees, fulfillment fees, storage fees, total fees, gross revenue, net revenue, and net margin percentage — ordered by highest total fees.

The business impact

Many Amazon sellers discover that their best-selling SKUs by revenue are among their least profitable after fees. A 30% referral fee plus fulfillment and storage on a low-priced item can leave almost nothing. This query finds those SKUs before they quietly drain your margins.

All queries and use cases on this page relate to analyzing your Amazon Seller Central data in Taptic. To see the full analytics workflow, explore amazon fba analytics, settlement reconciliation.

Common questions

How do I generate a "Amazon FBA Fee Impact by SKU" query automatically?
In Taptic Data, type "Show me total FBA fees by SKU this quarter broken down by fee type" and the AI generates schema-aware SQL against your real Amazon Seller Central data — no manual writing required.
What database does this query work with?
This query is designed for Amazon Seller Central. Taptic reads your live schema so the generated SQL always matches your actual table and column names.
Can I edit the generated SQL?
Yes. Taptic shows you the exact SQL it generated. You can edit it directly, ask the AI to explain any line, or request a revision in plain English.
Can I save this as a scheduled report?
Yes. Once you run this query in Taptic, you can save it as a report, add charts and KPIs, and schedule it to email your team on any cadence — daily, weekly, or monthly.

Skip the SQL. Ask the question.

In Taptic Data, you type "Show me total FBA fees by SKU this quarter broken down by fe..." and this SQL runs automatically against your real Amazon Seller Central data.

Try Taptic Free — $29.99/mo

No credit card required. Connect your data source in under 5 minutes.