Profit Margin Calculator Amazon

Amazon profit margin calculator for sellers. Calculate cost breakdowns, profit margins, break-even points, and get pricing recommendations. Supports single p...

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 44 · 0 current installs · 0 all-time installs
byHenk Nie@phheng
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the included Python script and SKILL.md: both implement cost breakdowns, margin and break-even calculations, and batch/CSV input support. No unrelated capabilities (cloud access, secret retrieval, or system-level changes) are requested.
Instruction Scope
Runtime instructions are focused on providing product inputs and running the local script (python3 scripts/calculator.py). The SKILL.md does not instruct the agent to read unrelated system files, environment variables, or to exfiltrate data. It does include an example npx install command for adding the skill via an external package manager, but that is an installation convenience rather than a runtime requirement.
Install Mechanism
No formal install spec in registry metadata (instruction-only install). SKILL.md suggests using 'npx skills add nexscope-ai/eCommerce-Skills ...' which would fetch an external package — verify you trust that package/source before running npx, but the shipped files include the calculator.py so no remote fetch is strictly required to run the calculator locally.
Credentials
The skill declares no required environment variables, primary credentials, or config paths. The code uses only standard Python libraries and user-provided input (JSON/CSV), which is proportionate for the stated purpose.
Persistence & Privilege
The skill is not always-enabled and does not request persistence or elevated privileges. It does not modify other skills or system-level settings based on available information.
Assessment
This skill appears to do what it says: a local Python calculator that takes product inputs and returns margin/break-even analyses. Before installing or running: (1) inspect the full scripts/calculator.py file (the provided snippet is truncated) to ensure no unexpected network calls or file I/O; (2) be cautious about running the SKILL.md's npx command — that will fetch code from an external package (verify the package/owner); (3) run the script in a controlled environment (virtualenv/container) if you want to avoid risk from executing unreviewed code; and (4) be aware of minor coding issues (e.g., potential enum/name mismatches in the truncated code) that could cause runtime errors — these are quality issues, not indicators of malicious behavior.

Like a lobster shell, security has layers — review code before you run it.

Current versionv0.1.0
Download zip
latestvk97f4ey53jqarb1779vk4tk94h83c0x1

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

Profit Margin Calculator — Amazon 💰

Calculate product profitability for Amazon FBA sellers — cost breakdowns, profit margins, break-even analysis, and pricing recommendations. No API key required.

Installation

npx skills add nexscope-ai/eCommerce-Skills --skill profit-margin-calculator-amazon -g

Use Cases

ScenarioWhat You'll Get
New product evaluationProfitability forecast before sourcing
Existing product diagnosisMargin analysis with cost breakdown
Pricing adjustmentRecommended prices for target margins
Batch SKU analysisMulti-product comparison table

Usage Examples

Single Product Analysis

Calculate profit for my Amazon product:
- Selling price: $29.99
- Product cost: $6
- Shipping to FBA: $1.50
- FBA fulfillment fee: $5.50
- FBA storage: $0.30/month
- Ad spend: 10% of sales
- Category: Kitchen

Quick Analysis

Is this product profitable?
Price $19.99, cost $5, FBA fee $4.50, shipping $1

Batch Analysis

Analyze these SKUs:
A001, Yoga Mat, $29.99, cost $6, shipping $1.5, FBA $5.5
A002, Resistance Bands, $19.99, cost $3, shipping $0.8, FBA $4
A003, Foam Roller, $24.99, cost $8, shipping $2, FBA $6

Input Parameters

Required

ParameterDescriptionExample
selling_priceAmazon listing price$29.99
product_costFOB/sourcing cost per unit$6.00
fba_feeFBA fulfillment fee$5.50

Recommended

ParameterDescriptionDefault
shipping_costInbound shipping per unit$0
storage_feeMonthly FBA storage per unit$0.30
ad_ratioPPC spend as % of sales10%
categoryProduct category for referral feedefault (15%)

Optional

ParameterDescriptionDefault
return_rateExpected return rate3%
other_feesPackaging, labels, etc.$0

Cost Components

Cost ItemDescriptionCalculation
Product CostFOB purchase priceUser input
Inbound ShippingSea/air freight to FBAUser input
FBA FulfillmentAmazon pick, pack, shipUser input
FBA StorageMonthly warehouse feeUser input
Referral FeeAmazon commission (8-20%)Auto × category rate
AdvertisingPPC spendPrice × ad ratio
ReturnsReturn processing lossReturn rate × handling
Other FeesPackaging, labels, prepUser input

Referral Fee Rates by Category

CategoryRate
Electronics / Computers8%
Camera / Photo8%
Automotive / Industrial12%
Most Categories (default)15%
Clothing / Apparel17%
Jewelry20%

Output Format

Cost Breakdown

Selling Price         $29.99   100.0%
───────────────────────────────────────
Product Cost          -$6.00    20.0%
Inbound Shipping      -$1.50     5.0%
FBA Fulfillment       -$5.50    18.3%
FBA Storage           -$0.30     1.0%
Referral Fee (15%)    -$4.50    15.0%
Advertising (10%)     -$3.00    10.0%
Returns (3%)          -$0.15     0.5%
Other Fees            -$0.50     1.7%
───────────────────────────────────────
Total Cost            $21.45    71.5%
Net Profit            $8.54     28.5%

Break-Even Analysis

Break-even Price:     $20.50
Current Margin:       +46.3% above break-even
Safety Margin:        31.6%

Pricing Recommendations

| Target Margin | Recommended Price | Profit/Unit |
|---------------|-------------------|-------------|
| 15%           | $23.10            | $3.47       |
| 20%           | $25.20            | $5.04       |
| 25%           | $27.72            | $6.93       |
| 30%           | $30.80            | $9.24       |

Profitability Status

Net MarginStatusRecommendation
>20%HealthyMaintain current strategy
5-20%⚠️ WarningOptimize costs or raise price
0-5%🔴 DangerNeeds adjustment
<0%💀 LossStop or restructure

Batch Input Format

CSV

sku,name,selling_price,product_cost,shipping_cost,fba_fee,storage_fee,ad_ratio,category
A001,Yoga Mat,29.99,6,1.5,5.5,0.3,0.1,sports
A002,Resistance Bands,19.99,3,0.8,4,0.2,0.12,sports
A003,Foam Roller,24.99,8,2,6,0.3,0.1,sports

Natural Language

Batch calculate:
SKU A001: Yoga Mat, $29.99, cost $6, shipping $1.5, FBA $5.5
SKU A002: Bands, $19.99, cost $3, shipping $0.8, FBA $4

Script Usage

# Default demo
python3 scripts/calculator.py

# Custom input
python3 scripts/calculator.py '{"selling_price": 29.99, "product_cost": 6, "fba_fee": 5.5}'

# Batch analysis
python3 scripts/calculator.py '[{"sku": "A001", ...}, {"sku": "A002", ...}]'

Handling Incomplete Input

If user doesn't provide enough info, ask:

To calculate your profit margin, I need:

**Required:**
- Selling price
- Product cost (FOB)
- FBA fulfillment fee

**Recommended (more accurate):**
- Inbound shipping cost per unit
- FBA storage fee per unit/month
- Ad spend ratio (% of sales)
- Product category (for referral fee)

Example:
"Price $25, cost $5, FBA $4.50, shipping $1, ads 10%, category: kitchen"

Integration with Other Skills

Looking for more e-commerce tools? Check out our other skill collections:

  • Amazon Skills — Specialized tools for Amazon sellers: keyword research, listing optimization, PPC campaigns
  • eCommerce Skills — Cross-platform tools for all e-commerce businesses

Limitations

This skill calculates margins based on user-provided costs. For real-time FBA fee lookups, exact category rates, and advanced analytics, check out Nexscope.


Part of Nexscope AI — AI tools for e-commerce sellers.

Files

2 total
Select a file
Select a file to preview.

Comments

Loading comments…