DevPrep
  • Interview Prep
  • Projects
  • Resources
  • Pricing
  • About Us
Submit Question
DevPrep
  • Pricing
  • About Us
Submit Question
  1. Home
  2. Articles
  3. Frontend Engineering
  4. The Fun Puzzle: What is the Angle Between Clock Hands at 3:15?
XLinkedInReddit
MediumFrontend Engineering

The Fun Puzzle: What is the Angle Between Clock Hands at 3:15?

D
DevPrep Team
February 9, 2026·2 min read·0
Table of Contents
  • Why This Appears in Interviews
  • The Key Insight Most People Miss
  • Step-by-Step Solution
  • Minute Hand at 3:15
  • Hour Hand at 3:15
  • The Angle Between Them
  • General Formula
  • Why This Matters for Engineers
  • Summary

By Rahul — Google Frontend Engineer

Why This Appears in Interviews

This is not a coding question. It tests your ability to break down a problem systematically and handle edge cases. The same skill applies to debugging complex frontend issues.

The Key Insight Most People Miss

At 3:15, the hour hand is NOT pointing exactly at 3. It has moved partway toward 4. This is where most candidates get it wrong.

Step-by-Step Solution

Minute Hand at 3:15

15 minutes = 15/60 of a full revolution = 1/4 × 360° = 90° from 12 o'clock.

Hour Hand at 3:15

The hour hand moves 360° in 12 hours = 0.5° per minute.

At 3:00, the hour hand is at 90° from 12.

In 15 minutes, it moves 15 × 0.5° = 7.5° more.

So at 3:15, the hour hand is at 90° + 7.5° = 97.5° from 12 o'clock.

The Angle Between Them

97.5° − 90° = 7.5°

General Formula

function clockAngle(hours, minutes) {
  // Minute hand: 6° per minute
  const minuteAngle = minutes * 6;
  
  // Hour hand: 0.5° per minute + 30° per hour
  const hourAngle = (hours % 12) * 30 + minutes * 0.5;
  
  // Absolute difference
  let angle = Math.abs(hourAngle - minuteAngle);
  
  // Take the smaller angle (clock has two sides)
  return Math.min(angle, 360 - angle);
}

clockAngle(3, 15);  // 7.5
clockAngle(12, 0);  // 0
clockAngle(6, 0);   // 180
clockAngle(9, 45);  // 22.5

Why This Matters for Engineers

The real lesson is: do not assume. The hour hand moves continuously, not in discrete jumps. In frontend engineering, similar assumptions cause bugs — animation timing, scroll position calculations, and viewport measurements all involve continuous values that people treat as discrete.

Summary

At 3:15, the angle is 7.5°, not 0°. The hour hand moves 0.5° per minute. Always account for continuous movement in any time-based calculation.

Related Articles

MediumFrontend Engineering

System Design #12: Design a Multi-Step Form Wizard

7 min read
MediumFrontend Engineering

Mastering Senior-Level JavaScript Interview Concepts

2 min read
MediumFrontend Engineering

System Design #9: Design a Collaborative Text Editor

9 min read

Comments (0)

Sign in to leave a comment.

No comments yet. Be the first to comment.

Table of Contents

  • Why This Appears in Interviews
  • The Key Insight Most People Miss
  • Step-by-Step Solution
  • Minute Hand at 3:15
  • Hour Hand at 3:15
  • The Angle Between Them
  • General Formula
  • Why This Matters for Engineers
  • Summary

Series

View all Frontend Engineering articles →

Practice

  • JavaScript
  • DSA
  • Machine Coding
  • System Design

Resources

  • Learning Tracks
  • Articles
  • Roadmaps
  • Compare Concepts
  • Glossary
  • Developer Tools
  • All Questions

Company

  • About
  • Pricing

Legal

  • Privacy Policy
  • Terms of Service
DevPrep

© 2026 DevPrep. All rights reserved.