{"uid":"cap_Y99HMl7lw8XsVI6ZLrjUm","slug":"1d-collision-calculator-c427cd64","name":"1D Collision Calculator","description":"Head-on collision of two masses: velocities after impact, momentum and kinetic energy lost, elastic to perfectly inelastic.","url":"https://physics-calc.x402tookit.com/collision-1d?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":["m1","v1","m2","v2"],"properties":{"m1":{"type":"number","description":"Mass of body 1 in kg (body 1 starts to the left)"},"m2":{"type":"number","description":"Mass of body 2 in kg"},"v1":{"type":"number","description":"Velocity of body 1 in m/s (positive = rightward)"},"v2":{"type":"number","description":"Velocity of body 2 in m/s"},"restitution":{"type":"number","description":"Coefficient of restitution 0 to 1 (default 1, elastic; 0 sticks together)"}}}},"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"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"restitution":{"type":["null","number"]},"velocityAfter1":{"type":["null","number"]},"velocityAfter2":{"type":["null","number"]},"totalMomentumKgMS":{"type":["null","number"]},"kineticEnergyLostJ":{"type":["null","number"]},"kineticEnergyAfterJ":{"type":["null","number"]},"centreOfMassVelocity":{"type":["null","number"]},"kineticEnergyBeforeJ":{"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_mR_NieI-Xd9gAt8WTjjSN","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 post-collision velocities, momentum, and kinetic energy loss for a head-on collision between two masses with configurable restitution.","exampleAgentPrompt":"A 2 kg ball moving right at 5 m/s hits a 3 kg ball moving left at 2 m/s — what are their velocities after impact, and how much kinetic energy is lost? Use a coefficient of restitution of 0.8.","exampleUseCases":[{"title":"Elastic billiard ball collision","prompt":"I have a 0.17 kg cue ball rolling right at 3 m/s that hits a stationary 0.17 kg target ball — what are both balls' velocities after the collision, assuming it's perfectly elastic (restitution = 1)?"},{"title":"Perfectly inelastic car crash energy loss","prompt":"Two cars crash head-on: car A is 1200 kg going 20 m/s to the right, car B is 900 kg going 15 m/s to the left. They crumple and stick together (restitution = 0). What's their combined velocity and how much kinetic energy is lost?"},{"title":"Partial restitution Newton's cradle analysis","prompt":"A 0.5 kg steel ball hits a 0.5 kg stationary ball with a velocity of 4 m/s. With a restitution coefficient of 0.9, what are the post-collision velocities and how much energy is dissipated?"}],"resultDescription":"Returns the post-collision velocities of both bodies (m/s), kinetic energy before and after the collision (J), kinetic energy lost (J), total momentum (kg·m/s), centre-of-mass velocity, and the restitution coefficient used. Also includes a summary and any relevant warnings or disclaimers.","failureModes":["Missing required parameters (m1, v1, m2, v2) returns an error","Restitution coefficient outside 0–1 range may return an error or unexpected result","Non-numeric values for mass or velocity cause a bad request error","Negative mass values may be rejected or produce nonsensical output"],"whenToPreferThis":"Choose this endpoint when you need to compute the outcome of a one-dimensional collision between two point masses with any degree of elasticity, from perfectly elastic (restitution=1) to perfectly inelastic (restitution=0). It is ideal for physics homework, engineering simulations, game physics validation, or any scenario requiring both velocity outcomes and energy/momentum accounting in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:11:15.249Z","isFirstParty":false,"canonicalSlug":"1d-collision-calculator-c427cd64"}