Plenty of drawings dimension features by a radius and an angle: a slot end at 30°, a set of points at 22.5° steps around a bore, a chamfer corner on a round part. To program or check those features you need straight-line distances: how far across (X) and how far up (Y) the point is from the centre. The Angle Length Calculator in the Shader7 CNC Machinist hub does exactly that, for one angle or for a whole list of angles in one go.
What you enter
The input panel has five settings:
- Circle Diameter in mm. The app halves it to get the radius.
- Angles in degrees. Enter one angle, or several separated by commas, for example
22.5, 45, 67.5. Each angle must be between 0° and 90°. - Angle Measured From: Horizontal Line (the usual case, angle measured up from the X axis) or Vertical Line (angle measured from the Y axis, common on drawings that dimension from a centre line).
- Decimal Places: 1, 2 or 3.
- Calculate and Reset buttons.
What you get back
The output panel shows the diameter, radius and number of angles, then a table with one row per angle:
| Column | Meaning |
|---|---|
| Angle | The angle you entered |
| Radius / Hypotenuse | The radius, which is the sloped line from the centre to the point |
| Horizontal Length | The X distance from the centre to the point |
| Vertical Height | The Y distance from the centre to the point |
| Point Coordinate | The same point written as X = …, Y = … |
Below the table, the app draws the circle with each angle's radius line and the matching horizontal and vertical legs, labelled with their values. The diagram is a quick way to make sure you entered the angle from the right reference line.
The formulas
For an angle θ measured from the horizontal:
Radius = Diameter ÷ 2
Horizontal length = Radius × cos(θ)
Vertical height = Radius × sin(θ)
If you choose Vertical Line, the app converts the angle to its complement (90° − θ) first, so the horizontal and vertical values swap compared with the horizontal reference.
Example from the app: diameter 357 mm gives a radius of 178.5 mm. At 45°, horizontal and vertical are both 178.5 × 0.70711 = 126.22 mm. At 22.5°, horizontal is 164.91 mm and vertical is 68.31 mm. At 67.5° the two values swap.
Where it helps on the shop floor
Points in other quadrants
The calculator works in the first quadrant (0° to 90°), which is enough for any point because the other quadrants only change the signs:
| Quadrant | Angle range | X sign | Y sign |
|---|---|---|---|
| I | 0° to 90° | + | + |
| II | 90° to 180° | − | + |
| III | 180° to 270° | − | − |
| IV | 270° to 360° | + | − |
For a point at 150°, enter 30° (180° − 150°) and make X negative. For 300°, enter 60° (360° − 300°) and make Y negative.
Several points at once
If a drawing calls for points at 15°, 30°, 45° and 60°, type them all into the Angles field. You get one table you can work down while programming or jogging, instead of four separate calculations.
Checking a CAM output
When a CAM post or a colleague gives you an arc endpoint, enter the radius as a diameter (radius × 2) and the angle. If the X and Y from the app match the program, the endpoint is right.
Chamfers and slots on round parts
A slot or flat that ends at a given angle on a round part needs the X and Y of that end point. The radius line gives the point; the horizontal and vertical legs give the coordinates to program from the part centre.
Tips
- Work from the centre. All results are relative to the circle centre. Add your centre's X and Y if the part origin is elsewhere.
- Use enough decimals. On large diameters, choose 3 decimal places; a rounding error of 0.01 mm on the radius is small, but the angle error matters more on long radii.
- Check the reference line. Drawings that dimension angles from a vertical centre line are common. If the diagram looks mirrored, switch Angle Measured From.
- Need a full triangle? For triangles that are not tied to a circle, use the Universal Triangle Solver. For full bolt circles with G-code, use the PCD Generator.
Worked example: points every 22.5° on a 120 mm circle
You need to program a ring of engraving points every 22.5° around the first quadrant of a 120 mm circle.
- Enter Circle Diameter = 120.
- Enter Angles = 0, 22.5, 45, 67.5, 90.
- Leave Angle Measured From on Horizontal Line and choose 3 decimal places.
- Press Calculate.
The radius is 60 mm, and the table gives:
| Angle | Horizontal (X) | Vertical (Y) |
|---|---|---|
| 0° | 60.000 | 0.000 |
| 22.5° | 55.433 | 22.961 |
| 45° | 42.426 | 42.426 |
| 67.5° | 22.961 | 55.433 |
| 90° | 0.000 | 60.000 |
For the other three quadrants, reuse the same numbers with the sign changes from the quadrant table above. That gives all 16 points from one calculation.
Common mistakes
- Entering the radius as the diameter. The app halves whatever you enter. If the drawing gives R60, enter 120.
- Angles over 90°. The app accepts 0° to 90° only. Reduce larger angles to their first-quadrant equivalent and apply signs.
- Wrong reference line. If your values look swapped compared with the drawing, switch Angle Measured From between horizontal and vertical.
- Forgetting the part origin. Results are from the circle centre. Add the centre position if your G54 is at a corner.
Using the numbers on the machine
- Manual mills with DROs: zero the DRO on the circle centre and move to each X/Y from the table.
- CNC programs: paste the X and Y values into G00/G01 moves, or into a drilling cycle for holes on a partial circle.
- Inspection: check positions with a height gauge or CMM using the horizontal and vertical values as nominal dimensions.
Frequently asked questions
Can I enter more than one angle?
Yes. Separate angles with commas, such as 22.5, 45, 67.5. The app adds one row to the results table and one line to the diagram for each angle.
Why are angles limited to 0° to 90°?
Every point on a circle can be found from a first-quadrant angle; the other quadrants only flip the signs of X and Y. The quadrant table above shows which sign to use.
What does "Angle Measured From: Vertical Line" change?
The app treats your angle as measured from the Y axis, converts it to 90° minus your angle, and calculates from there. Horizontal and vertical values swap compared with the horizontal reference.
Does it work in inches?
Yes. The app does not convert units, so enter the diameter in inches and the results come back in inches.
Is anything uploaded?
No. All calculations and the diagram are made in your browser.
Calculate your angle lengths
Enter a diameter and a list of angles to get every horizontal length, vertical height and X/Y point, with a circle diagram drawn for you.