Polar To Cartesian Calculator
Convert polar coordinates (r, θ) to Cartesian coordinates (x, y) and vice versa.
About
The polar to Cartesian conversion takes a point given in polar form (r, θ) — distance r from the origin, angle θ from the positive x-axis — and produces the equivalent Cartesian form (x, y) — horizontal and vertical distances from the origin. The conversion is a direct application of the unit-circle definitions of sine and cosine, scaled by the radius r.
The two conversion formulas are x = r · cos(θ) and y = r · sin(θ). Geometrically, the polar radius r becomes the hypotenuse of a right triangle with the Cartesian x and y as the legs. The adjacent leg (along the x-axis) has length r · cos θ; the opposite leg (along the y-axis) has length r · sin θ. This is the same right-triangle relation used in elementary trigonometry, generalized to any angle (including obtuse and reflex angles via the unit-circle definitions).
The most common pitfall is angle units. JavaScript's Math.sin, Math.cos, and Math.atan2 all expect angles in radians. If your input is in degrees (typical for engineering and navigation), you must first convert to radians by multiplying by π/180 ≈ 0.01745. Forgetting this conversion is the most frequent source of bugs in trigonometric code. The calculator handles the conversion internally — pick the unit you are working in and trust the result.
Polar coordinates are not unique: (r, θ + 2π), (r, θ − 2π), and (−r, θ + π) all describe the same point. Negative radius reflects the point through the origin (equivalent to rotating by π). The conversion formulas handle negative r automatically: x = (−r) · cos(θ) = −r · cos(θ) = r · cos(θ + π), which is the x-coordinate of the rotated point. For the reverse direction (Cartesian to polar), use the polar coordinates calculator in the related tools.
This focused converter is ideal when your input data is in polar form — from radar sweeps, antenna patterns, orbital mechanics, or complex number polar form (z = r · e^(iθ)) — and you need Cartesian coordinates for downstream algorithms. Line equations, distance formulas, polygon areas, and most analytic geometry tools all expect Cartesian input. For bidirectional conversion (when you sometimes need polar and sometimes Cartesian), use the full polar coordinates calculator instead.
How to Use
- 1Enter the polar radius rType the distance r from the origin. Any real number works — positive r places the point at angle θ from the positive x-axis; negative r reflects the point through the origin (equivalent to (|r|, θ + π)).
- 2Enter the polar angle θType the angle θ from the positive x-axis. Pick the unit (degrees or radians) in the Select dropdown first so the calculator interprets your input correctly. Negative angles are allowed and rotate clockwise.
- 3Read the Cartesian (x, y) on the heroThe hero shows the converted Cartesian coordinates. The breakdown lists the input polar form, the intermediate radian measure of the angle, and the sin/cos values used in the conversion.
- 4Inspect the worked exampleOpen the Worked Example section to see the conversion step-by-step: convert θ to radians, compute cos θ and sin θ, multiply by r to obtain x and y.
- 5Verify with the reverse conversionUse the polar coordinates calculator (related tool) to convert back from (x, y) to (r, θ). The result should match your original input modulo 2π — the round-trip confirms the conversion is correct.
Formula
Polar → Cartesian:
x = r · cos(θ)
y = r · sin(θ)
Angle unit conversion (when input is in degrees):
θ_radians = θ_degrees × π / 180
Right-triangle interpretation:
- r is the hypotenuse
- x is the adjacent side (along x-axis)
- y is the opposite side (along y-axis)
Negative radius:
- (−r, θ) is the same point as (r, θ + π)
- Formulas work identically with negative r
Worked Example
Convert polar (r = 5, θ = 53.13°) to Cartesian:
- Convert θ to radians: 53.13 × π/180 ≈ 0.9273 rad
- cos(0.9273) ≈ 0.6
- sin(0.9273) ≈ 0.8
- x = 5 × 0.6 = 3
- y = 5 × 0.8 = 4
- Cartesian: (3, 4)
- Check: r = √(3² + 4²) = 5 ✓
Negative radius example — (r = −5, θ = 0°):
- x = −5 · cos(0) = −5 · 1 = −5
- y = −5 · sin(0) = −5 · 0 = 0
- Cartesian: (−5, 0) — same as (5, 180°)
Tips
- Always convert degrees to radians before calling Math.sin or Math.cos — multiply by π/180 (or use Math.PI / 180).
- Negative radius is allowed: (−r, θ) is the same point as (r, θ + π). The conversion formulas handle this automatically.
- For the reverse direction (Cartesian → polar), use atan2(y, x) rather than atan(y/x) — atan2 correctly identifies the quadrant and handles x = 0.
- When converting many points programmatically, precompute cos θ and sin θ once per angle — sin and cos are expensive trigonometric calls.
- Complex number arithmetic in polar form: multiplication is r₁·r₂ with angles added (θ₁ + θ₂); powers are r^n with angle multiplied by n (De Moivre's theorem).
Common Mistakes
- Forgetting to convert degrees to radians before calling Math.sin or Math.cos.
- Confusing x = r · cos(θ) with x = r · sin(θ) — cos goes with x (adjacent), sin with y (opposite).
- Assuming polar coordinates are unique — (r, θ + 2π) and (−r, θ + π) describe the same point.
- Treating negative radius as an error — it is well-defined and reflects through the origin.
- Forgetting that the origin (r = 0) has an undefined polar angle (any θ works).
Frequently Asked Questions
- What does the polar to Cartesian converter do?
- It converts a point in the plane given in polar coordinates (r, θ) to its equivalent Cartesian representation (x, y) using the formulas x = r·cos(θ) and y = r·sin(θ). The angle θ can be in degrees or radians — choose the unit in the Select dropdown and the calculator handles the conversion internally. The result is the same point written with horizontal and vertical distances from the origin.
- Why convert polar to Cartesian?
- Many algorithms and equations are simpler in Cartesian form: line equations (y = mx + b), distance formulas, polygon area, and most analytic geometry. If your input data is in polar form (e.g., from radar or orbital mechanics), converting to Cartesian lets you use these tools directly. The reverse direction (Cartesian to polar) is handled by the polar coordinates calculator.
- How does the angle unit affect the conversion?
- The trigonometric functions Math.sin and Math.cos in JavaScript work in radians. If your angle θ is in degrees, the calculator first multiplies by π/180 to convert to radians, then applies sin and cos. The result (x, y) is the same regardless of the input unit — only the intermediate computation differs. Forgetting the conversion is the most common source of bugs in trigonometric code.
- What happens for negative radius or angle?
- Negative radius is allowed: (−r, θ) is the same as (r, θ + π) — the point is reflected through the origin. Negative angles simply rotate clockwise from the positive x-axis: (r, −90°) is the same point as (r, 270°) or (r, 360° − 90°). The calculator handles all real values of r and θ correctly via the standard formulas.
- Can this converter handle complex number polar form?
- Indirectly. A complex number z = a + bi has a polar form z = r·e^(iθ), where r = |z| and θ = arg(z). The Cartesian real and imaginary parts are a = r·cos(θ) and b = r·sin(θ) — exactly the same conversion as for points. So converting the polar form of a complex number to Cartesian reduces to this calculator. For full complex arithmetic (multiplication, division, powers) use the dedicated complex number tools.
- What is the inverse conversion (Cartesian to polar)?
- The inverse is r = √(x² + y²) and θ = atan2(y, x). The radius is always non-negative; the angle is in (−π, π] radians or (−180°, 180°]. The atan2 function correctly identifies the quadrant of the point, unlike the ordinary atan(y/x) which loses quadrant information. Use the polar coordinates calculator (related tool) for the reverse direction.
Right-triangle conversion
The polar radius r becomes the hypotenuse of a right triangle with the Cartesian x and y as the legs. The adjacent side (along the x-axis) has length r·cos θ, the opposite side (along the y-axis) has length r·sin θ. This is just the unit-circle definition of sin and cos scaled by the radius r.
Angle units: degrees vs radians
Trigonometric functions in JavaScript (and most programming languages) expect angles in radians. If your input is in degrees, multiply by π/180 to convert. Mathematics and physics universally use radians because the derivative identities d/dx[sin x] = cos x hold only in radians. Engineering and navigation use degrees for human-readable angles.
Negative radius is allowed
Polar coordinates are not unique. (−r, θ) describes the same point as (r, θ + π) — negating the radius reflects the point through the origin, equivalent to rotating by half a turn. The conversion formulas handle negative r automatically: x = (−r)·cos(θ) = −r·cos(θ) = r·cos(θ + π), which is the x-coordinate of the rotated point.
Conversion preserves distance
The conversion is an isometry — it preserves distances and areas. The polar radius r equals the Cartesian distance √(x² + y²) from the origin, and the angle θ equals atan2(y, x). Two points described in either system have the same Euclidean distance between them; only the labels on individual points change.
| Polar (deg) | Polar (rad) | Cartesian (deg) | Cartesian (rad) | Notes |
|---|---|---|---|---|
| (5, 0°) | (5, 0) | (5, 0) | (5, 0) | On the positive x-axis |
| (5, 90°) | (5, π/2) | (0, 5) | (0, 5) | On the positive y-axis |
| (5, 180°) | (5, π) | (−5, 0) | (−5, 0) | On the negative x-axis |
| (5, 270°) | (5, 3π/2) | (0, −5) | (0, −5) | On the negative y-axis |
| (5, 45°) | (5, π/4) | (3.536, 3.536) | (√12.5, √12.5) | First quadrant, r·cos 45 = r·sin 45 |
| (−5, 0°) | (−5, 0) | (−5, 0) | (5, π) | Negative radius = reflect through origin |
Authoritative References
- Wikipedia — Polar coordinate system— wikipedia.orgWikipedia's article on polar coordinates covers the conversion formulas, complex number polar form, and applications in physics and engineering.
- Wolfram MathWorld — Polar Coordinates— wolfram.comMathWorld's encyclopedic reference for polar coordinates covers the conversion formulas, history, and connections to complex numbers.
- Khan Academy — Polar coordinates— khanacademy.orgKhan Academy's precalculus unit covers polar coordinates and the conversion to and from Cartesian form with practice problems.
- OpenStax — Precalculus 2e— openstax.orgOpenStax's free Precalculus textbook covers polar coordinates in chapter 8 with worked examples and exercises.
Try our other free calculators
CalcGenius has 1,200+ free, ad-free, browser-based calculators for finance, health, math, science, and everyday life. No sign-up required.