MASTERMINDREADING ROOM阅览室
Calculator计算器

Trade Profit & Loss Calculator

Calculate the profit or loss of a long or short trade from entry, exit, quantity, and fees. Add open and close dates to see an honest annualized return.

Choose direction, fill in your prices and quantity. Add dates to see an annualized return — useful for comparing trades of different lengths.选择方向,填入价格和数量。添加日期可查看年化收益率——便于比较不同持仓时长的交易。

Direction方向
P/L盈亏

Fill in the fields to see your trade result.填入字段即可查看交易结果。

Return回报率
Annualized return年化回报率
Cost basis成本
Holding days持仓天数
Copied已复制

Trade profit and loss is the difference between your exit and entry, multiplied by your position size, minus fees. Whether you're long or short changes the sign: a long trade profits when price rises, a short trade profits when price falls.交易盈亏是出场价与入场价之差,乘以仓位大小,再减去费用。做多还是做空决定了符号:做多时价格上涨盈利,做空时价格下跌盈利。

01The formula公式

Long P/L = (Exit − Entry) × Qty − Fees做多盈亏 = (出场 − 入场) × 数量 − 费用
Short P/L = (Entry − Exit) × Qty − Fees做空盈亏 = (入场 − 出场) × 数量 − 费用
Return % = P/L ÷ (Entry × Qty) × 100回报率 = 盈亏 ÷ (入场 × 数量) × 100
Annualized % = ((1 + Return) ^ (365 ÷ days) − 1) × 100年化回报率 = ((1 + 回报率) ^ (365 ÷ 天数) − 1) × 100

The annualized return only appears when you supply both dates and the holding period is at least one day. It answers "what would this pace of return look like over a full year?" — a short, sharp gain looks enormous annualized, which is why the label reads "if repeated at this pace for a year."年化回报率仅在你提供两个日期且持仓时间至少为一天时才会显示。它回答的是"若以此节奏持续一整年会是什么样?"——短期大涨年化后看起来惊人,这就是为什么标签标注为"若以此节奏持续一年"。

02A worked example一个算例

Worked example算例

You buy 100 shares at $50, sell at $55, and pay $2 in total commissions.你以 $50 买入 100股,以 $55 卖出,共支付 $2 佣金。

  • P/L = (55 − 50) × 100 − 2 = $498盈亏 = (55 − 50) × 100 − 2 = $498
  • Return = 498 ÷ (50 × 100) × 100 = 9.96%回报率 = 498 ÷ (50 × 100) × 100 = 9.96%
  • Cost basis = $5,000成本 = $5,000

For the short-side fixture: sell short 10 shares at $200, cover at $210 with $0 fees. P/L = (200 − 210) × 10 = −$100, return = −5%. Price moved against the short.做空示例:以 $200 做空 10股,以 $210 平仓,费用为 $0。盈亏 = (200 − 210) × 10 = −$100,回报率 = −5%。价格对做空方向不利。

03The common trap常见陷阱

Ignoring fees on small positions忽视小仓位的费用

On a $500 position, a $10 round-trip commission is 2% — it means you need a 2% gain just to break even. Fees become a rounding error on large positions but can consume a meaningful slice of small ones. Always include total fees (both the open and close leg) in the calculation.对于$500的仓位,$10的往返佣金占2%——这意味着你需要2%的涨幅才能保本。费用在大仓位上只是零头,但在小仓位上可能吞噬可观的比例。计算时始终要将总费用(开仓和平仓两侧)都包括进去。

04Where this breaks它的局限

  • Partial fills and averages. If you built or exited a position in multiple lots at different prices, this calculator takes single entry and exit prices. Average your fills before entering.部分成交与均价。若你以不同价格分批建仓或平仓,本计算器只接受单一入场和出场价。请先自行计算加权均价后再填入。
  • Currency and FX risk. If your account is in a different currency from the stock, FX moves affect the real P/L. This tool assumes one currency throughout.货币与汇率风险。若你的账户与股票使用不同货币,汇率变动会影响实际盈亏。本工具假设全程使用同一货币。
  • Dividends and corporate actions. Dividends, splits, and spin-offs alter the economics of a trade and are not captured here.股息与公司行动。股息、拆股和分拆改变交易的经济学,本工具未作考虑。
The one line to remember记住这一句

Return % shows how efficiently your capital worked. Annualized return shows what that pace implies over a year — useful for comparison, not as a promise.回报率显示你的资本使用效率。年化回报率显示该节奏意味着一年能达到什么水平——用于比较,而非承诺。

Before you enter a trade, set a sensible risk with the 在入场前,用 risk-to-reward calculator盈亏比计算器. Want to track these results systematically? The 设定合理的风险。想系统追踪这些结果?可下载 trading journal spreadsheet交易日志表格 logs every trade with automatic P/L.自动计算每笔交易的盈亏。