Ir al contenido
Yardox

Calculadora de posición del sol y sombras

Consulta dónde está el sol sobre tu casa cualquier día: cuándo sale y se pone, qué paredes y ventanas reciben sol, cuánto miden las sombras y qué separación necesitan las filas de paneles solares.

Lugar y día

Introduce un lugar y un día. Verás dónde está el sol a cada hora, qué lados de la casa reciben sol y cuánto miden las sombras.

Madrid · 40.4170° N, 3.7040° W

h

Tu dispositivo usa UTC+0 en esta fecha. Cámbialo solo si el lugar está en otra zona horaria.

Recorrido del sol visto desde arriba: el círculo exterior es el horizonte y el centro está justo encima30°60°NESW

Azul: el día elegido, con las horas del reloj. Línea discontinua: el día más largo, el equinoccio y el día más corto. La barra gris es la sombra del objeto situado en el centro.

Shadow

Un árbol, la casa de un vecino, una valla o un muro. La sombra se mide sobre terreno llano.

Separación entre filas de paneles solares en una cubierta plana

Separación necesaria entre filas de paneles inclinados para que una fila no dé sombra a la siguiente. Los diseñadores suelen dejar las filas sin sombra el día más corto entre las 10:00 y las 14:00, hora solar.

El lado inclinado del panel o del soporte, por ejemplo 1.72 m para un panel en vertical.

°
°

Grados desde el norte, en sentido horario: 180 = sur, 90 = este. Ahora 180°.

h
h
Salida - puesta del sol—
Añade esta calculadora a tu web

Gratis para cualquier web: pega este código donde quieras que aparezca la calculadora. Se actualiza sola, ajusta su altura al contenido y enlaza a la página completa con las explicaciones.

Cómo usarla

  1. 01Paste the coordinates of your house or garden, or press "Use my location" while you stand there.
  2. 02Pick a date. The links under the date jump to the longest day, the equinox and the shortest day.
  3. 03Check the clock offset. It starts with your device time zone; change it if the place is somewhere else.
  4. 04Move the time slider to see where the sun stands and which way shadows fall.
  5. 05Enter the height of a tree, a fence or the neighbour's house to see how long its shadow is at that moment.
  6. 06For a flat roof with tilted panels, open the row spacing section and enter the panel length and tilt.

Cómo se calcula

The sun position comes from the equations NOAA uses in its solar calculator, which are based on Astronomical Algorithms by Jean Meeus. We compared the results with the NREL Solar Position Algorithm: the direction agrees within 0.05° and sunrise and sunset within a minute.

Elevation of the sun
sin h = sin φ × sin δ + cos φ × cos δ × cos H
Solar noon
noon = 12:00 − 4 min × longitude − equation of time + clock offset
Shadow length
L = height ÷ tan h
Gap between panel rows
gap = panel length × sin(tilt) ÷ tan h × cos(sun azimuth − panel azimuth)
Row pitch
pitch = panel length × cos(tilt) + gap

φ is the latitude, δ the declination of the sun on that day and H the hour angle, 15° for every hour from solar noon. Sunrise and sunset are the moments the centre of the sun is 0.833° below the horizon, which allows for the bending of light in the air and the size of the sun's disc.

Hours of direct sun on a wall are counted every 10 minutes: the sun must be above the horizon and less than 90° to either side of the direction the wall faces.

For panel rows, the gap is checked every 5 minutes inside the time window on the shortest day and the largest value is kept. Designers commonly use 10:00 to 14:00 solar time; a wider window gives less shade and fewer rows.

Hills, trees and buildings on the horizon are not included. They shorten the sunny hours, most in winter when the sun is low.

Ejemplo resuelto

A 10 m tree south of a garden in Berlin on 21 December

  1. Berlin is at 52.52° N. On 21 December the declination is −23.44°.
  2. Highest sun at solar noon: 90° − 52.52° − 23.44° ≈ 14°.
  3. Shadow of the tree at noon: 10 ÷ tan 14° ≈ 40 m.
  4. The same tree on 21 June, with the sun at 61°: 10 ÷ tan 61° ≈ 5.6 m.

Para acertar con el pedido

Look at the shortest day before planting or building

A shadow that is short in summer can cover the whole garden in winter. Check 21 December (21 June south of the equator) for anything that should get winter sun, such as solar panels or a greenhouse.

Measure the height above the surface you care about

For shade on a roof, use the height of the tree or building above the roof, not above the ground.

Mind daylight saving time

The calculator uses the clock offset you give it. In summer most of Europe and North America are one hour ahead of their winter time.

East and west walls share the day

An east window gets the morning, a west window the afternoon. In summer the west side also gets the hottest hours.

Errores frecuentes

  • Using the time zone of your phone when the house is in another country.
  • Planning panel rows for summer only. Rows set for June shade each other badly in December.
  • Measuring the panel tilt from the vertical. The tilt here is from the horizontal: a flat panel is 0°.
  • Forgetting that the compass needle points to magnetic north. The directions here are true north, which can differ by several degrees.

Preguntas

Which side of the house gets the most sun?

North of the tropics, the south side gets sun all day in winter and the most hours over the year. In summer the east and west sides get long morning and evening sun too, and even a north wall gets some early and late sun.

How long is a shadow?

Height divided by the tangent of the sun's elevation. At 45° the shadow is as long as the object is tall; at 14° it is about four times as long.

How far apart should rows of solar panels be?

Far enough that the top edge of one row does not shade the next one on the shortest day around midday. The calculator gives the gap for any window you choose; 10:00 to 14:00 solar time is a common choice.

Why does the sunset time differ from my weather app?

Weather apps also use 0.833° below the horizon, so the times usually agree within a minute. A different time zone or daylight saving setting is the usual cause of a larger difference.

Fuentes

  1. [1]Solar Calculation Details (NOAA Solar Calculator). NOAA Global Monitoring Laboratory. Sun position from the equations of Jean Meeus, Astronomical Algorithms, with the NOAA refraction fit; sunrise and sunset with 0.833° of refraction, accurate to about a minute between 72° N and 72° S for 1800–2100. Comprobado el 18 de noviembre de 2026
  2. [2]Solar Position Algorithm (I. Reda, A. Andreas, NREL/TP-560-34302), in pvlib-python 0.16. National Renewable Energy Laboratory. Check of our results: azimuth within 0.05°, elevation within 0.03° (0.15° at the horizon), sunrise and sunset within a minute. Comprobado el 18 de noviembre de 2026
  3. [3]Row Spacing (HelioScope help centre). Aurora Solar / HelioScope. Row spacing set so that rows do not shade each other during a time window, typically the winter solstice from 10 am to 2 pm; ground coverage ratio = module area ÷ array area. Comprobado el 18 de noviembre de 2026

Fórmulas y fuentes comprobadas por última vez el 18 de noviembre de 2026. Cómo calculamos