Sunrise & Sunset Calculator

Calculate sunrise and sunset times for any location

Select date (leave empty for today)

Key Facts

Category
Geography & Science
Input Types
number, date
Output Type
text
Sample Coverage
4
API Ready
Yes

Overview

The Sunrise & Sunset Calculator provides precise solar timing data for any geographic coordinate on Earth. Simply input your latitude, longitude, and desired date to determine exactly when the sun will rise and set at your specific location.

When to Use

  • Planning outdoor photography sessions during the golden hour.
  • Scheduling travel or outdoor events based on available daylight.
  • Determining optimal times for astronomical observations or stargazing.

How It Works

  • Enter the latitude and longitude coordinates for your target location.
  • Select the specific date you wish to calculate, or leave it blank for today's data.
  • Click calculate to receive the exact sunrise and sunset times for that location.

Use Cases

Photographers identifying the best light for landscape shots.
Event planners coordinating outdoor weddings or gatherings.
Travelers preparing itineraries for remote destinations.

Examples

1. Planning a Golden Hour Photoshoot

Professional Photographer
Background
A photographer is scouting a location in New York City for a sunset portrait session.
Problem
Needs to know the exact minute the sun sets to maximize the 'golden hour' lighting.
How to Use
Input the latitude 40.7128 and longitude -74.0060 for New York City and select the target date.
Outcome
The tool provides the precise sunset time, allowing the photographer to schedule the shoot to end exactly as the light fades.

2. Outdoor Event Scheduling

Event Coordinator
Background
An event coordinator is organizing an evening garden party in a specific region.
Problem
Needs to ensure guests have enough natural light for arrival and setup.
How to Use
Enter the specific coordinates of the garden venue and the event date into the calculator.
Outcome
The coordinator receives the sunset time, ensuring the event schedule accounts for the transition from daylight to dusk.

Try with Samples

astronomy

FAQ

Is the calculation based on my current time zone?

The tool provides solar times based on the coordinates provided, typically normalized to UTC or local solar time.

Can I calculate times for past dates?

Yes, you can input any historical date to retrieve the sunrise and sunset times for that specific day.

How accurate are these calculations?

The calculator uses standard astronomical algorithms to provide high-precision solar timing based on your input coordinates.

Do I need to provide a specific date?

No, if you leave the date field empty, the tool will automatically default to the current date.

Can I use this for any location in the world?

Yes, the tool accepts any valid latitude between -90 and 90 and longitude between -180 and 180.

API Documentation

Request Endpoint

POST /en/api/tools/sunrise-sunset-calculator

Request Parameters

Parameter Name Type Required Description
latitude number No -
longitude number No -
date date No Select date (leave empty for today)

Response Format

{
  "result": "Processed text content",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}
Text: Text

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-sunrise-sunset-calculator": {
      "name": "sunrise-sunset-calculator",
      "description": "Calculate sunrise and sunset times for any location",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=sunrise-sunset-calculator",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]