{"uid":"cap_iqfCjVA8WkwbYEg3yS2Bm","slug":"saylor-innovations-profit-margin-markup-calculator-9f24a070","name":"Saylor Innovations Profit Margin & Markup Calculator","description":"Profit margin and markup calculator - margin percent, markup percent and profit from cost and price, or the price for a target margin","url":"https://saylorinnovations.com/api/calc/margin?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":["cost","price"],"properties":{"cost":{"type":"string","description":"Unit cost"},"price":{"type":"string","description":"Selling price (or give margin_percent)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["profit","margin_percent"],"properties":{"cost":{"type":"number"},"mode":{"type":"string","description":"Mode used"},"price":{"type":"number","description":"Price"},"profit":{"type":"number"},"checked_at":{"type":["string","null"],"description":"Time the check was run (UTC)"},"margin_percent":{"type":"number","description":"Margin, as a percentage"},"markup_percent":{"type":["number","null"],"description":"Markup, as a percentage"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CzUZYGV0CrEnDrdsi4F-N","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates profit margin percent, markup percent, and profit amount from cost and price inputs, or computes the selling price needed to achieve a target margin.","exampleAgentPrompt":"If I buy a product for $24.50 and sell it for $39.99, what's my profit margin percent, markup percent, and actual profit?","exampleUseCases":[{"title":"Retail product pricing check","prompt":"I'm selling handmade candles for $28 each and my cost per unit is $11.50 — can you tell me my profit margin and markup percentage?"},{"title":"Target margin price discovery","prompt":"I need to price a new software license so I hit a 65% gross margin. My unit cost is $17.80 — what selling price should I set?"},{"title":"E-commerce margin audit","prompt":"My supplier cost for a gadget is $42 and I'm listing it at $69.95 on Amazon. What are my margin percent, markup percent, and dollar profit on each unit?"}],"resultDescription":"Returns a JSON object containing: margin_percent (gross margin as a percentage), markup_percent (markup as a percentage of cost, may be null), profit (dollar profit), cost, price, mode (which calculation mode was used), and checked_at (UTC timestamp of the computation).","failureModes":["Missing required 'cost' or 'price' query parameters returns an error","Non-numeric values for cost or price result in a validation error","Zero cost value may cause division-by-zero errors for markup calculation","Negative values may produce unexpected or null results for markup_percent"],"whenToPreferThis":"Choose this endpoint when you need a quick, reliable server-side calculation of profit margin, markup percentage, and profit from cost/price inputs, or need to back-calculate a price from a target margin — especially in agentic workflows where you want consistent, timestamped results without implementing the math yourself. Prefer this over generic calculators when you need structured JSON output with both margin and markup simultaneously.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:55:07.423Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-profit-margin-markup-calculator-9f24a070"}