{"uid":"cap_svDUjHZ38O4iDJoCxUKkP","slug":"snell-s-law-refraction-calculator-cc653526","name":"Snell's Law Refraction Calculator","description":"Snell's law: refracted angle between two media (names or indices), critical angle and total internal reflection check.","url":"https://physics-calc.x402tookit.com/snell?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":["n1","n2","incidentAngleDeg"],"properties":{"n1":{"type":"string","description":"Index of the first medium: a number, or air, water, crown glass, diamond and more"},"n2":{"type":"string","description":"Index of the second medium"},"incidentAngleDeg":{"type":"number","description":"Angle of incidence from the normal, 0 to 90 degrees"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"n1":{"type":["null","number"]},"n2":{"type":["null","number"]},"asOf":{"type":["null","string"]},"source":{"type":["null","string"]},"medium1":{"type":["null","string"]},"medium2":{"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"}},"deviationDeg":{"type":["null","number"]},"brewsterAngleDeg":{"type":["null","number"]},"criticalAngleDeg":{},"incidentAngleDeg":{"type":["null","number"]},"refractedAngleDeg":{"type":["null","number"]},"speedRatioV2OverV1":{"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_B7JYxSPs30E2gEWLdu63t","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 refracted angle between two optical media using Snell's law, and checks for critical angle and total internal reflection.","exampleAgentPrompt":"What is the refracted angle when light hits the boundary between water and crown glass at an incident angle of 40 degrees, and does total internal reflection occur?","exampleUseCases":[{"title":"Fiber optic TIR threshold check","prompt":"I'm designing a fiber optic cable — what's the critical angle for total internal reflection at the boundary between crown glass (n≈1.52) and air, and if light hits at 35 degrees from the normal, does it reflect internally or escape?"},{"title":"Gemstone brilliance analysis","prompt":"Light inside a diamond hits a facet at 20 degrees from the normal going toward air — does it undergo total internal reflection, and what's the critical angle for diamond?"},{"title":"Underwater photography refraction","prompt":"A camera is in water filming something above the surface. If light from above enters the water at 60 degrees from the normal, what angle does it refract to inside the water?"}],"resultDescription":"Returns the resolved refractive indices for both media (with recognized names like air, water, crown glass, diamond), the refracted angle in degrees, the critical angle (if applicable), a verdict on whether total internal reflection occurs, the Brewster angle, the speed ratio of light between the two media, the angular deviation, and a human-readable summary.","failureModes":["Unknown medium name that cannot be resolved to a refractive index","Incident angle outside 0–90 degrees range","Missing required parameters (n1, n2, or incidentAngleDeg)","Invalid or non-numeric index values causing parse failure"],"whenToPreferThis":"Use this endpoint when you need a precise, physics-correct calculation of Snell's law refraction, including total internal reflection checks and Brewster angle — especially when working with named optical media (air, water, glass, diamond) rather than raw indices. Prefer it over generic math tools when the optics domain context and structured output (verdict, critical angle, summary) are needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T06:30:16.366Z","isFirstParty":false,"canonicalSlug":"snell-s-law-refraction-calculator-cc653526"}