Shopify Profit Calculator
AI-powered profit analysis agent for Shopify stores — calculates your true net profit after every fee, cost, and ad dollar is accounted for.
Paste your order data, describe your cost structure verbally, or ask about specific products. The agent computes real margins, flags danger zones, and shows exactly where your money is going.
Commands
CODEBLOCK0
What Data to Provide
The agent works with:
- - Order exports — paste Shopify order CSV rows (revenue, product, shipping collected)
- Verbal description — "I sell a $49 product, COGS $12, Shopify Basic plan, running $800/mo Facebook ads, average shipping $6"
- Product details — price, COGS, ad spend per unit, shipping cost, return rate
- Screenshots — Shopify analytics, ad dashboards, payment processor summaries
No API keys needed. No setup required.
Workspace
Creates ~/shopify-profit/ containing:
- -
memory.md — saved store profiles, COGS tables, fee structures - INLINECODE2 — past profit reports (markdown)
- INLINECODE3 — per-SKU cost and margin records
Fee Structure Reference
Shopify Platform Fees (transaction fees on top of plan cost)
| Plan | Transaction Fee (non-Shopify Payments) |
|---|
| Basic | 2.0% |
| Shopify |
1.0% |
| Advanced | 0.5% |
| Plus | 0.15% |
| Shopify Payments | 0% transaction fee |
Payment Processing Fees (Shopify Payments)
| Plan | Online Rate |
|---|
| Basic | 2.9% + 30¢ |
| Shopify |
2.6% + 30¢ |
| Advanced | 2.4% + 30¢ |
Stripe (if used instead of Shopify Payments)
- - Standard: 2.9% + 30¢ per transaction
- Plus Shopify transaction fee on top
Analysis Framework
1. Revenue Breakdown
- - Gross revenue (order total)
- Refunds and chargebacks deducted
- Net revenue = Gross - Refunds
2. Cost Stack (deducted from net revenue)
- 1. COGS — product cost, packaging, manufacturing
- Shopify platform fee — transaction % based on plan
- Payment processing fee — Stripe/Shopify Payments % + fixed
- Shipping cost — label cost minus any shipping collected from customer
- Ad spend attribution — ad spend / units sold (blended) or per-order if tracked
- Returns/refunds reserve — estimated return rate × avg order value
- Other variable costs — fulfillment center fees, insert cards, etc.
3. Profit Margin Benchmarks
| Status | Net Margin | Action |
|---|
| Healthy | > 20% | Maintain, scale ad spend |
| Warning |
10–20% | Audit fees and COGS, reduce waste |
| Danger | < 10% | Stop scaling, fix cost structure immediately |
| Loss | < 0% | Pause ads, renegotiate COGS or raise price |
4. Contribution Margin Analysis
- - Contribution Margin = Revenue - Variable Costs (COGS + fees + shipping + ads)
- Fixed costs (Shopify plan, apps, staff) allocated across unit volume
- Break-even units = Fixed Costs / Contribution Margin per Unit
5. Ad Attribution Methods
- - Blended ROAS: Total Revenue / Total Ad Spend (store-wide view)
- Per-product: Ad spend tagged to product × units sold
- MER (Marketing Efficiency Ratio): Total Revenue / Total Marketing Spend (most reliable for multi-channel)
6. Trend Analysis
- - Month-over-month margin movement
- Margin erosion detection (fees crept up, COGS increased, shipping surcharge added)
- Best and worst performing SKUs by net margin
Output Format
Every profit calculation outputs:
- 1. Net Profit Summary — revenue, total costs, net profit, net margin %
- Cost Waterfall — each deduction line-item with $ amount and % of revenue
- Margin Status — Healthy / Warning / Danger / Loss with color signal
- Highest Impact Fix — single biggest lever to improve margin
- Comparison — vs. industry benchmark and vs. prior period if data available
Rules
- 1. Always ask for COGS and Shopify plan before calculating — these are the two biggest variables
- Never assume payment processor; ask if Shopify Payments or Stripe/other is in use
- Show every deduction line by line — no black-box totals
- Flag if ad spend attribution is blended vs. per-order (blended understates product-level margin)
- Warn when a product's contribution margin is positive but net margin is negative (fixed cost allocation issue)
- Save COGS data to
~/shopify-profit/products.md when set cogs command is used - Always express margin as both $ per unit and % of revenue
Shopify 利润计算器
基于AI的Shopify店铺利润分析助手——在核算所有费用、成本和广告支出后,计算您的真实净利润。
粘贴您的订单数据、口头描述您的成本结构,或询问特定产品。该代理计算真实利润率,标记危险区域,并准确显示您的资金去向。
命令
profit calc # 计算净利润(粘贴订单/产品数据或描述)
profit by product # 分解每个SKU的利润率
profit by order # 计算特定订单的净利润
profit trend # 显示利润率随时间的变化趋势(需要保存数据)
set cogs <产品> <成本> # 保存产品的销货成本到记忆
profit report # 生成完整的损益汇总报告
profit save <店铺名称> # 将店铺资料和销货成本表保存到工作区
需要提供的数据
该代理可处理:
- - 订单导出 — 粘贴Shopify订单CSV行(收入、产品、已收运费)
- 口头描述 — 我销售一款49美元的产品,销货成本12美元,Shopify基础版套餐,每月投放800美元Facebook广告,平均运费6美元
- 产品详情 — 价格、销货成本、每单位广告支出、运费、退货率
- 截图 — Shopify分析、广告面板、支付处理商摘要
无需API密钥。无需设置。
工作区
创建 ~/shopify-profit/ 目录,包含:
- - memory.md — 已保存的店铺资料、销货成本表、费用结构
- reports/ — 历史利润报告(Markdown格式)
- products.md — 每个SKU的成本和利润率记录
费用结构参考
Shopify平台费用(套餐费用之外的交易费)
| 套餐 | 交易费(非Shopify Payments) |
|---|
| 基础版 | 2.0% |
| Shopify版 |
1.0% |
| 高级版 | 0.5% |
| Plus版 | 0.15% |
| Shopify Payments | 0%交易费 |
支付处理费(Shopify Payments)
| 套餐 | 在线费率 |
|---|
| 基础版 | 2.9% + 30¢ |
| Shopify版 |
2.6% + 30¢ |
| 高级版 | 2.4% + 30¢ |
Stripe(如果使用而非Shopify Payments)
- - 标准:每笔交易2.9% + 30¢
- 外加Shopify交易费
分析框架
1. 收入分解
- - 总收入(订单总额)
- 扣除退款和拒付
- 净收入 = 总收入 - 退款
2. 成本堆叠(从净收入中扣除)
- 1. 销货成本 — 产品成本、包装、制造
- Shopify平台费 — 基于套餐的交易百分比
- 支付处理费 — Stripe/Shopify Payments百分比 + 固定费用
- 运费 — 标签成本减去向客户收取的运费
- 广告支出归因 — 广告支出/售出单位数(混合)或按订单追踪
- 退货/退款准备金 — 预估退货率 × 平均订单价值
- 其他可变成本 — 履约中心费用、插卡等
3. 利润率基准
| 状态 | 净利润率 | 行动 |
|---|
| 健康 | > 20% | 维持,扩大广告支出 |
| 警告 |
10–20% | 审计费用和销货成本,减少浪费 |
| 危险 | < 10% | 停止扩张,立即修复成本结构 |
| 亏损 | < 0% | 暂停广告,重新谈判销货成本或提高价格 |
4. 贡献利润率分析
- - 贡献利润 = 收入 - 可变成本(销货成本 + 费用 + 运费 + 广告)
- 固定成本(Shopify套餐、应用、员工)按单位数量分摊
- 盈亏平衡单位数 = 固定成本 / 每单位贡献利润
5. 广告归因方法
- - 混合ROAS:总收入 / 总广告支出(店铺整体视角)
- 按产品:广告支出标记到产品 × 售出单位数
- MER(营销效率比):总收入 / 总营销支出(多渠道最可靠)
6. 趋势分析
- - 月度利润率变动
- 利润率侵蚀检测(费用上升、销货成本增加、运费附加费增加)
- 按净利润率划分的最佳和最差SKU
输出格式
每次利润计算输出:
- 1. 净利润摘要 — 收入、总成本、净利润、净利润率%
- 成本瀑布图 — 每项扣除明细,含金额和占收入百分比
- 利润率状态 — 健康/警告/危险/亏损,带颜色信号
- 最高影响修复 — 改善利润率的单一最大杠杆
- 对比 — 与行业基准对比,如有数据则与前期对比
规则
- 1. 计算前始终询问销货成本和Shopify套餐——这是两个最大的变量
- 绝不假设支付处理商;询问是使用Shopify Payments还是Stripe/其他
- 逐行显示每项扣除——不设黑箱总额
- 标记广告支出归因是混合还是按订单(混合会低估产品级利润率)
- 当产品的贡献利润为正但净利润为负时发出警告(固定成本分配问题)
- 使用set cogs命令时将销货成本数据保存到 ~/shopify-profit/products.md
- 始终以每单位美元金额和收入百分比两种方式表示利润率