macOS

Configuring NTP on macOS: Accurate Time via Terminal and Settings

This guide will help you set up automatic time synchronization on macOS using NTP servers. You'll learn how to check current settings and select trusted servers for accurate time.

Updated at February 15, 2026
5-10 min
Easy
FixPedia Team
Применимо к:macOS 10.12+macOS SonomamacOS VenturamacOS Monterey

Introduction / Why This Matters

Precise system time is critical for many tasks: from proper encryption (SSL/TLS) and logging to job schedulers (cron) and distributed systems. The NTP (Network Time Protocol) automatically synchronizes time with reliable servers. In this guide, you'll configure NTP on macOS using both the graphical interface and the command line, so your Mac's time always stays accurate.

Requirements / Preparation

  1. macOS 10.12 (Sierra) or newer — commands and interface have been stable since this version.
  2. Administrator privileges — changing system time settings will require an administrator password when using sudo.
  3. Internet access — NTP servers must be reachable. If you are on a corporate network, ensure NTP traffic (port 123/UDP) is not blocked by a firewall.
  4. Backup (optional) — just in case, if you are configuring a server in critical infrastructure.

Step 1: Check Current Time Settings

Before making changes, check the current status. Open Terminal (via Spotlight or /Applications/Utilities/) and run:

# Check if automatic sync is enabled
systemsetup -getusingnetworktime
# Example output: "Network Time: On"

# Find the current NTP server
systemsetup -getnetworktimeserver
# Example output: "Time Server: time.apple.com"

If Network Time: Off, synchronization is disabled. If no server is listed or it's incorrect, you need to set one.

Step 2: Configure via System Settings (GUI Method)

This method suits most users.

  1. Open System Settings.
  2. Go to GeneralDate & Time (in newer macOS, it's "Date & Time" in the sidebar).
  3. Click the lock icon at the bottom and enter an administrator password to make changes.
  4. Enable the option "Set date and time automatically".
  5. In the "Time Server" field, you can:
    • Choose from the suggested list (e.g., time.apple.com — Apple's server).
    • Enter any public NTP server, such as pool.ntp.org (a pool of multiple servers) or ntp.ntsc.ac.cn (for the Asia region).
  6. Close the window. The system will start synchronization immediately.

💡 Tip: For maximum reliability, use servers close to your geographic location. List of public servers: ru.pool.ntp.org (Russia), de.pool.ntp.org (Germany), etc.

Step 3: Configure via Terminal (Command Line)

Use the systemsetup command for automation or remote management.

  1. Disable automatic synchronization to avoid conflict with manual setup:
    sudo systemsetup -setusingnetworktime off
    

    Enter the administrator password.
  2. Set the NTP server. For Apple's server:
    sudo systemsetup -setnetworktimeserver time.apple.com
    

    Or for the NTP pool:
    sudo systemsetup -setnetworktimeserver pool.ntp.org
    
  3. Re-enable synchronization:
    sudo systemsetup -setusingnetworktime on
    
  4. Force a time sync (optional but useful for testing):
    sudo sntp -sS time.apple.com
    

    The sntp command is a simplified NTP client built into macOS.

Step 4: Verify the Result

Ensure time is synchronized correctly.

  1. Check the current system time:
    date
    

    Compare it with an accurate time source (e.g., time.is in a browser).
  2. Check the status of the timed daemon (on macOS 12+):
    sudo launchctl list | grep timed
    

    It should be active (pid is listed).
  3. For detailed information about the last synchronization, use:
    sudo ntpdate -q $(systemsetup -getnetworktimeserver | awk '{print $3}')
    

    This shows the offset in seconds. If offset is close to 0, synchronization was successful.

Step 5: Troubleshooting Common Issues

Issue: "Cannot access time server" or "Synchronization failed"

  • Cause: A firewall or network restrictions are blocking port 123/UDP.
  • Solution: Check if the server is reachable:
    nc -z -v -u time.apple.com 123
    
    If the connection fails, contact your network administrator or temporarily disable the firewall for testing.

Issue: Time is significantly off (more than 1000 seconds)

  • Cause: System clocks have drifted too much, and the timed daemon cannot adjust them smoothly.
  • Solution: Use forced synchronization via sudo sntp -sS <server> or temporarily disable NTP, set the time manually (sudo systemsetup -setusingnetworktime offdate 021520262026 → re-enable it).

Issue: Server resets after reboot

  • Cause: Settings didn't persist due to a conflict with MDM (Mobile Device Management) on corporate Macs.
  • Solution: If your Mac is managed via MDM (Jamf, Kandji), NTP configuration may be locked. Contact your administrator to change the policy.

Issue: systemsetup command doesn't work

  • Cause: Outdated macOS version (before 10.12) or corrupted system utilities.
  • Solution: Update macOS. As a last resort, configure the timed service directly via launchctl, but this is more complex and requires additional steps.

Additional Features

Using Multiple NTP Servers

macOS defaults to a single server. For redundancy, you can add servers to /etc/ntp.conf (requires manual editing and disabling systemsetup):

sudo nano /etc/ntp.conf

Add lines:

server time.apple.com iburst
server pool.ntp.org iburst

Then restart the service:

sudo launchctl unload /System/Library/LaunchDaemons/org.ntp.ntpd.plist
sudo launchctl load /System/Library/LaunchDaemons/org.ntp.ntpd.plist

⚠️ Important: When using systemsetup, the /etc/ntp.conf file is ignored. Choose one method.

Configuring the Time Zone

NTP synchronizes UTC time, but a correct time zone is needed for proper display. Set it via:

sudo systemsetup -settimezone Europe/Moscow

List of time zones: sudo systemsetup -listtimezones.

Final Recommendations

  • Regularly check synchronization, especially after long downtime or moving between time zones.
  • For servers and critical infrastructure, use local NTP servers (e.g., based on chrony or ntpd on the local network) instead of public ones.
  • In corporate environments, coordinate settings with the IT department to avoid conflicts with group policies.

F.A.Q.

Why isn't the time on my Mac syncing automatically?
Can I use my own NTP server instead of public ones?
Do I need to disable automatic synchronization for manual setup?
How to check which NTP server is currently in use?

Hints

Check current time settings
Configure via System Preferences (GUI method)
Configure via Terminal (command line)
Force time synchronization
Check NTP functionality
FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community