{"uid":"cap_fvwwyTl2AfSv8cSPBECmy","slug":"investing-math-risk-reward-calculator-c46232c2","name":"Investing Math – Risk/Reward Calculator","description":"Reward-to-risk ratio from entry, stop and target, the win rate needed to break even, and expectancy at your win rate.","url":"https://invest-math.x402tookit.com/risk-reward?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["entry","stop","target"],"properties":{"stop":{"type":"number","description":"Stop-loss price"},"entry":{"type":"number","description":"Entry price"},"target":{"type":"number","description":"Profit target price"},"winRatePct":{"type":"number","description":"Your expected win rate in percent, for expectancy"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"direction":{"type":["null","string"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"winRatePct":{"type":["null","number"]},"expectancyR":{"type":["null","number"]},"riskPerUnit":{"type":["null","number"]},"positiveEdge":{"type":["boolean","null"]},"rewardToRisk":{"type":["null","number"]},"rewardPerUnit":{"type":["null","number"]},"expectancyPerUnit":{"type":["null","number"]},"breakEvenWinRatePct":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Q3StRpdd40y5p57TX9qCF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates reward-to-risk ratio, break-even win rate, and expectancy for a trade given entry, stop-loss, and profit target prices.","exampleAgentPrompt":"Can you calculate the risk-reward ratio for a trade where I enter at $150, my stop-loss is at $145, and my profit target is $162, and also tell me the break-even win rate and expectancy assuming I win 55% of the time?","exampleUseCases":[{"title":"Pre-trade risk evaluation for stock","prompt":"I'm thinking of buying a stock at $85, putting my stop at $81, and my target at $97 — what's the reward-to-risk ratio, what win rate do I need to break even, and if I win 50% of the time what's my expectancy?"},{"title":"Options trade edge assessment","prompt":"Check if this options trade has a positive edge: I'm entering at $4.20, stop at $2.50, target at $9.00, and my historical win rate on similar setups is 40%."},{"title":"Crypto scalp setup review","prompt":"For a crypto scalp where I buy at $30,200, stop at $29,900, and target $30,800, calculate my risk-reward ratio and tell me the minimum win rate I'd need just to break even."}],"resultDescription":"Returns the reward-to-risk ratio, risk per unit (entry minus stop), reward per unit (target minus entry), break-even win rate percentage, and — if a win rate is provided — the expectancy in R-multiples and per unit. Also includes a summary verdict, direction (long or short), and whether the setup has a positive edge.","failureModes":["Missing required parameters (entry, stop, target) returns a 400-level error","Entry equal to stop (zero risk) causes division-by-zero or invalid ratio","Nonsensical price combinations (e.g. stop above entry for a long) may produce negative or unexpected direction values","winRatePct outside 0-100 range may produce unreliable expectancy values","Network or payment authorization failure returns a 402 or 5xx error"],"whenToPreferThis":"Use this endpoint when you need a fast, precise, single-trade risk/reward computation — especially when you want break-even win rate and expectancy together in one call. Prefer it over manual calculation or general-purpose LLM math when accuracy and structured output (R-multiples, per-unit values, edge verdict) matter. It complements position sizing endpoints but focuses purely on trade quality metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:11:15.252Z","isFirstParty":false,"canonicalSlug":"investing-math-risk-reward-calculator-c46232c2"}