3D Point Calculator (Spherical to Cartesian)


3D Point Calculator from Spherical Coordinates

Instantly calculate a point in 3D space using cosine and sine. This tool converts spherical coordinates (radius, theta, phi) to Cartesian coordinates (X, Y, Z) for use in mathematics, physics, and computer graphics.



The distance from the origin (0,0,0) to the point. Unitless.



Angle in the XY-plane from the positive X-axis. Range: 0-360 degrees.



Angle from the positive Z-axis. Range: 0-180 degrees.


(X, Y, Z) = (6.12, 6.12, 5.00)
Theta (rad): 0.79
Azimuthal Angle in Radians
Phi (rad): 1.05
Polar Angle in Radians


The Cartesian coordinates (X, Y, Z) represent the point’s position along the three primary axes in 3D space.

Visual Representation

+X +Y Origin (Z-Axis)

Top-down view of the XY-plane. The blue dot shows the point’s projection, determined by radius and the theta (θ) angle.

What Does it Mean to Calculate a Point in 3D Space Using Cosine and Sine?

To calculate a point in 3d space using cosine and sine is to convert a point’s location from a spherical coordinate system to the more common Cartesian (X, Y, Z) coordinate system. The spherical system defines any point in space not by its X, Y, and Z values, but by a radius and two angles. This is incredibly useful in fields like physics, engineering, and 3D modeling, where rotations and distances from a central point are common.

The three components of spherical coordinates are:

  • Radius (r or ρ): The straight-line distance from the origin (0,0,0) to the point.
  • Azimuthal Angle (theta or θ): The angle of rotation in the horizontal XY-plane, measured from the positive X-axis. It’s like spinning around on a flat surface.
  • Polar Angle (phi or φ): The angle of elevation or inclination, measured from the positive Z-axis. It dictates how far “up” or “down” the point is relative to the vertical axis.

Using trigonometric functions—specifically sine and cosine—we can translate these three spherical values into the familiar (X, Y, Z) coordinates. Our Spherical to Cartesian Converter automates this complex calculation for you.

Formula to Calculate a Point in 3D Space (Spherical to Cartesian)

The conversion relies on right-triangle trigonometry projected into three dimensions. The formulas used to find the Cartesian coordinates (X, Y, Z) from the spherical coordinates (r, θ, φ) are as follows:

X = r * sin(φ) * cos(θ)
Y = r * sin(φ) * sin(θ)
Z = r * cos(φ)

It’s important to note that these formulas require the angles (θ and φ) to be in radians, not degrees. Our calculator handles this conversion automatically.

Variable Explanations for the 3D Point Calculation
Variable Meaning Unit (in this calculator) Typical Range
r Radius Unitless distance r ≥ 0
θ (theta) Azimuthal Angle Degrees 0° to 360°
φ (phi) Polar Angle Degrees 0° to 180°
X, Y, Z Cartesian Coordinates Unitless distance -r to +r

Practical Examples

Let’s walk through two examples to see how to calculate a point in 3d space using cosine and sine.

Example 1: A Standard Point

  • Inputs: Radius (r) = 20, Theta (θ) = 30°, Phi (φ) = 45°
  • Angle Conversion:
    • θ in radians = 30 * (π / 180) ≈ 0.524 rad
    • φ in radians = 45 * (π / 180) ≈ 0.785 rad
  • Calculation:
    • X = 20 * sin(0.785) * cos(0.524) = 20 * 0.707 * 0.866 ≈ 12.25
    • Y = 20 * sin(0.785) * sin(0.524) = 20 * 0.707 * 0.500 ≈ 7.07
    • Z = 20 * cos(0.785) = 20 * 0.707 ≈ 14.14
  • Result: The point is located at approximately (12.25, 7.07, 14.14).

Example 2: A Point on the XY-Plane

  • Inputs: Radius (r) = 100, Theta (θ) = 90°, Phi (φ) = 90°
  • Interpretation: A phi angle of 90° means the point lies directly on the horizontal XY-plane. A theta angle of 90° means it’s along the positive Y-axis.
  • Calculation:
    • X = 100 * sin(90°) * cos(90°) = 100 * 1 * 0 = 0
    • Y = 100 * sin(90°) * sin(90°) = 100 * 1 * 1 = 100
    • Z = 100 * cos(90°) = 100 * 0 = 0
  • Result: The point is at (0, 100, 0), exactly as expected. For more complex conversions, check out our Vector Math Guide.

How to Use This 3D Point Calculator

Using our calculator is a simple, three-step process to transform your spherical coordinates into Cartesian ones.

  1. Enter the Radius (r): This is the total distance of the point from the center of the 3D space.
  2. Enter the Azimuthal Angle (θ): Input the rotational angle in the horizontal plane in degrees (0-360).
  3. Enter the Polar Angle (φ): Input the vertical angle from the Z-axis in degrees (0-180).

The calculator will instantly update, showing you the final (X, Y, Z) coordinates, the intermediate angle values in radians, and a visual plot of the point’s position on the XY-plane. You can learn more about coordinate systems in our Coordinate Systems Explained article.

Key Factors That Affect the 3D Point Calculation

Understanding these factors is crucial to correctly interpret the results when you calculate a point in 3d space using cosine and sine.

  • Radius (r): This is a simple scaling factor. Doubling the radius will double the absolute value of X, Y, and Z, moving the point further from the origin along the same vector.
  • Azimuthal Angle (θ): This controls the point’s rotation around the Z-axis. At 0°, the point is over the X-axis. At 90°, it’s over the Y-axis. At 180°, it’s over the negative X-axis, and so on.
  • Polar Angle (φ): This controls the elevation. A value of 0° places the point directly on the positive Z-axis. 90° places it on the XY-plane. 180° places it on the negative Z-axis.
  • Angle Units: All trigonometric formulas in programming and mathematics fundamentally operate on radians. Using degrees directly in the core formula will produce wildly incorrect results. Our calculator shows the radian conversion for clarity.
  • Coordinate System Handedness: This calculator assumes a standard right-handed coordinate system, which is common in mathematics and physics.
  • Order of Operations: The sine and cosine of the angles must be calculated before multiplying by the radius. This is a fundamental principle of the formula. Our Trigonometry Calculator can help with individual function calculations.

Frequently Asked Questions

1. What’s the difference between the Azimuthal (theta) and Polar (phi) angles?
Think of theta (θ) as ‘longitude’—it controls the rotation around the equator. Think of phi (φ) as ‘latitude’—it controls the position from pole to pole (north pole being the Z-axis).
2. Why are the angles converted to radians?
The core mathematical definitions of sine and cosine are based on the geometry of a unit circle where angles are measured in radians. All standard computational libraries (like JavaScript’s `Math` object) expect radian inputs for these functions.
3. What happens if I use a phi angle greater than 180 degrees?
The calculation will still work, but it’s redundant. For example, a phi of 270° gives the same result as a phi of 90° but with an inverted X and Y, a situation more easily described with a different theta angle. The standard convention keeps phi between 0° and 180°.
4. Can the radius be negative?
Mathematically, a negative radius is not used in the standard definition of spherical coordinates. It would be equivalent to a positive radius with the angles adjusted by 180 degrees.
5. What is a “right-handed” coordinate system?
It’s a convention. If you point your right-hand thumb along the positive Z-axis, your fingers curl from the positive X-axis towards the positive Y-axis. This is the most common standard in science. See our guide on Understanding 3D Space.
6. What are some practical applications for this calculation?
It’s used everywhere from creating 3D graphics in video games (placing a camera or object) and GPS systems to mapping satellite orbits and describing magnetic fields in physics.
7. How do I convert from Cartesian (X,Y,Z) back to Spherical?
That’s the reverse calculation, which involves arctangents and square roots. We offer a dedicated Cartesian to Spherical Calculator for that purpose.
8. What does a phi (φ) angle of 0 mean?
A phi of 0 means the point lies directly on the positive Z-axis, regardless of the theta angle. The coordinates will be (0, 0, r).

© 2026 Your Website. All Rights Reserved. This tool helps you calculate a point in 3D space using cosine and sine for educational and professional purposes.



Leave a Reply

Your email address will not be published. Required fields are marked *