{"uid":"cap_paP9zz4rdbY8P_9GUfyCX","slug":"investing-math-margin-call-price-calculator-eb56df44","name":"Investing Math – Margin Call Price Calculator","description":"Margin call price for shares bought on margin: your cash, the loan, the maintenance requirement and the trigger price.","url":"https://invest-math.x402tookit.com/margin-call?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":["shares","price"],"properties":{"price":{"type":"number","description":"Purchase price per share"},"shares":{"type":"number","description":"Shares bought"},"maintenancePct":{"type":"number","description":"Maintenance margin in percent of position value, 10 to 60 (default 25)"},"initialMarginPct":{"type":"number","description":"Share of the purchase paid with your own cash, 10 to 100 (default 50)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"loan":{"type":["null","number"]},"source":{"type":["null","string"]},"ownCash":{"type":["null","number"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"leverage":{"type":["null","number"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"dropToCallPct":{"type":["null","number"]},"positionValue":{"type":["null","number"]},"marginCallPrice":{"type":["null","number"]},"dropToWipeoutPct":{"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_uTZMxOL41CB8AdrBBR2fc","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 the margin call trigger price for shares bought on margin, given the number of shares, purchase price, cash invested, and maintenance margin requirement.","exampleAgentPrompt":"I bought 100 shares of a stock at $50 each using 50% initial margin — what price will trigger a margin call if the maintenance requirement is 25%?","exampleUseCases":[{"title":"First-time margin trader risk check","prompt":"I just bought 200 shares at $80 each on a 50% margin account — can you tell me at what price I'd get a margin call if the maintenance margin is 30%?"},{"title":"Active trader position review","prompt":"I'm holding a leveraged position: 500 shares bought at $120 with only 40% of my own cash and a 25% maintenance margin. What's my margin call price and how far is that from my entry?"},{"title":"Portfolio risk stress test","prompt":"If someone bought 1000 shares at $15 using 60% initial margin, what would the margin call trigger price be under a standard 25% maintenance requirement, and what percentage drop does that represent?"}],"resultDescription":"Returns the margin call trigger price, total loan amount, own cash contributed, current position value, leverage ratio, percentage drop required to trigger a margin call, percentage drop to full wipeout, a plain-language summary and verdict, plus a disclaimer. May include a list of factors not checked and a degraded flag if the calculation ran with limited information.","failureModes":["Missing required query parameters (shares or price) returns an error","Invalid values such as negative share counts or prices outside expected ranges may produce errors or unexpected results","Maintenance margin percentage outside 10–60 range may be rejected or clamped to defaults","Initial margin percentage outside 10–100 range may be rejected or defaulted to 50%","Network or service unavailability returns a non-200 response"],"whenToPreferThis":"Use this endpoint when you need a fast, precise margin call price calculation for a standard equity margin account given purchase price, share count, and margin percentages. It is purpose-built for this specific calculation and returns a structured breakdown including leverage, loan amount, and drop percentages — more detailed than a generic finance formula. Prefer it over general-purpose calculators or LLM math when accuracy and structured output matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:35:49.422Z","isFirstParty":false,"canonicalSlug":"investing-math-margin-call-price-calculator-eb56df44"}