Mathematics July 20, 2026 · 12 min read

The Mathematics of Time: How to Calculate the Angle Between Clock Hands

Learn how to calculate the exact angle between clock hands at any time. Complete formula guide with worked examples for the classic clock angle problem.

Try the free calculator

Put these formulas into practice with our instant, step-by-step Clock Angle Calculator.

Open Calculator ›

The clock angle problem is one of the most beloved puzzles in recreational mathematics and a staple of technical interviews at major technology companies. At its core, it asks a deceptively simple question: given a time on an analog clock, what is the angle between the hour hand and the minute hand? While the question seems straightforward, the continuous movement of both hands — the hour hand drifting slowly between hour marks while the minute hand sweeps rapidly around the face — creates a rich mathematical challenge that combines proportional reasoning, modular arithmetic, and geometric visualization.

Key Takeaway

The angle between clock hands is calculated using θ = |30H - 5.5M|, where H is the hour and M is the minute. The minute hand moves 6° per minute, the hour hand moves 0.5° per minute, giving a relative speed of 5.5° per minute.

1. Understanding Clock Geometry

A standard analog clock face is a circle divided into 12 equal hour marks. Since a full circle is 360°, each hour mark represents 30° (360° ÷ 12 = 30°). The 12 at the top is at 0° (or 360°), the 3 is at 90°, the 6 is at 180°, and the 9 is at 270°.

The minute hand completes one full revolution (360°) in 60 minutes, moving at a rate of 6° per minute (360° ÷ 60 = 6°). The hour hand completes one full revolution in 12 hours (720 minutes), moving at a rate of 0.5° per minute (30° per hour ÷ 60 minutes = 0.5° per minute).

2. Deriving the Formula

The position of the minute hand at M minutes is simply 6M degrees from the 12 o'clock position. The position of the hour hand at H hours and M minutes is 30H + 0.5M degrees (the hour hand starts at 30H degrees and moves an additional 0.5° for each minute).

The angle between the two hands is the absolute difference:

θ = |6M - (30H + 0.5M)| = |5.5M - 30H| = |30H - 5.5M|

If the result exceeds 180°, we take 360° minus the result to get the smaller angle between the hands.

3. Worked Examples

Example 1: 3:00

At 3:00, the minute hand is at 12 (0°) and the hour hand is at 3 (90°). The angle is |30(3) - 5.5(0)| = 90°. This is the classic right angle.

Example 2: 3:30

At 3:30, the hour hand has moved to 30(3) + 0.5(30) = 105° (halfway between 3 and 4). The minute hand is at 6(30) = 180°. The angle is |180 - 105| = 75°. Many people incorrectly assume it is 90° or 180°, but the hour hand has moved.

Example 3: 10:10

At 10:10, the hour hand is at 30(10) + 0.5(10) = 305°. The minute hand is at 6(10) = 60°. The angle is |305 - 60| = 245°. Since this exceeds 180°, the smaller angle is 360° - 245° = 115°.

4. When Do the Hands Overlap?

The hands overlap (angle = 0°) 11 times in a 12-hour period. Setting |30H - 5.5M| = 0 gives M = 12H/11. The overlap times are:

Overlap #Approximate Time
112:00:00
21:05:27
32:10:55
43:16:22
54:21:49
65:27:16

The pattern continues every 1 hour, 5 minutes, and 27.27 seconds (approximately 720/11 minutes). The reason there are only 11 overlaps in 12 hours (rather than 12) is that the overlap at 12:00 counts once, not twice.

5. When Are the Hands Perpendicular?

The hands form a 90° angle 22 times in a 12-hour period (twice per hour, except at 2:00 and 8:00 where it happens only once due to the continuous movement). Setting |30H - 5.5M| = 90 and solving gives two solutions per hour.

6. Common Mistakes and Misconceptions

  1. Assuming the hour hand jumps: The hour hand moves continuously, not in discrete jumps. At 3:30, it is at 105°, not 90°.
  2. Ignoring the hour hand movement: At 6:00, the angle is exactly 180°, but at 6:30, it is not 180° — it is 165° because the hour hand has moved.
  3. Confusing the reflex angle: Always report the smaller angle (≤ 180°) unless the reflex angle is specifically requested.
  4. Forgetting the 12-hour cycle: The formula uses H as the hour on a 12-hour clock (1-12), not 24-hour time.

7. The Clock Angle Problem in Computer Science

The clock angle problem is a popular coding interview question at companies like Google, Amazon, and Microsoft. It tests a candidate\'s ability to translate a geometric problem into code, handle edge cases (like 12 o'clock), and work with floating-point arithmetic. The solution requires understanding of modular arithmetic, absolute values, and the relationship between continuous and discrete systems.

Try It Now

Use our Clock Angle Calculator to find the exact angle between clock hands at any time. Enter the hour and minute to get both the smaller angle and the reflex angle.