VitaminDcalc
  • Calculator
  • Guides
  • Methodology
Home / Methodology

How the Calculator Works

Content last reviewed: November 2026

This page explains, step by step, how VitaminDcalc turns your answers into an estimated sun exposure time. The goal is transparency: every factor used by the calculator is listed here, together with its limitations.

1. Sun position and solar time

From your latitude and date, the calculator computes solar declination and solar zenith angle (SZA) for every minute of exposure. Local clock time is converted to true solar time using the IANA time zone (including daylight saving time), longitude, and the Equation of Time, because solar noon rarely coincides with 12:00 on the clock. With “Use my location”, your device coordinates are used; with country and region, our database includes per-region longitudes and time zones across multi-timezone and longitudinally wide countries and territories (such as the US, Canada, Brazil, Australia, China, Russia, Mexico, Indonesia, Spain, Portugal, Greenland, French Polynesia, and Kiribati).

2. Estimating the UV Index

Under clear skies at sea level (300 DU total ozone), the UV Index is estimated via the peer-reviewed empirical formula of Madronich (2007): UVI ≈ 12.5 × cos(SZA)2.42 (validated within ±10% for SZA ≤ 60°, set to zero when cos(SZA) ≤ 0.1). Cloud cover scales ambient UV by 1.0 (0–20% clear sky), 0.7 (30–60% partly cloudy) or 0.3 (70–100% overcast).

3. From UV Index to UV dose

By ISO/CIE 17166:2019 and WHO definition, 1 UV Index point equals 25 mW/m² of horizontal erythemal irradiance, or 1.5 J/m² per minute per UVI. Because short-wave UV-B increases faster than erythemal UV at higher solar elevations (Fioletov et al., 2009), horizontal erythemal dose is converted to vitamin-D-weighted dose (calibrated on the international CIE 174:2006 action spectrum; note that recent in vivo work by Young et al., 2021 suggests a ~5 nm shorter peak near 293 nm) via the closed-form parameterization of McKenzie, Liley & Björn (2009): R = 2 − exp(0.25 − UVIclear / 2.5) (evaluated on clear-sky UVI because clouds do not shift SZA or selectively deplete UV-B relative to UV-A).

4. The vitamin D target

The modeling target is 1 solar Standard Vitamin D Dose (1 SDD, ~1,000 IU oral equivalent across 25% body surface area): Webb & Engelsen (2006) (87.6 J/m² CIE 174 vitamin-D-weighted UV for Type I) divided by 1.32 for natural sunlight's higher efficiency relative to laboratory FS lamps (Dowdy, Sayre & Holick, 2010), giving 66.36 J/m² for Type I. Melanin attenuation is modeled separately from erythemal MED via a monotonic interpolation (1.00× to 1.40× across Fitzpatrick Types I–VI) anchored to the 1.3–1.4× Type VI vs. II ratio measured in vivo by Young et al. (2020). Exposed skin area scales linearly up to a conservative modeling plateau of 35% BSA, informed by dose × area saturation observed near ~24% BSA in Bøgh et al. (2011) and dose saturation in Jäger et al. (2018). The 1,000 IU figure is a modeling benchmark, not a medical prescription.

5. Body geometry

The UV Index is defined for a flat horizontal sensor, whereas a standing human body is a three-dimensional cylinder exposed to both direct sun and dominant diffuse sky UV-B (Seckmeyer et al., 2013). VitaminDcalc applies the full-cylinder Geometric Conversion Factor of GCF = 0.45 published by Pope & Godar (2010) (mid-latitude range 0.42–0.51) for whole-body vitamin D synthesis.

6. Age and BMI adjustments

Age-related decline follows the log-linear exponential regression of Chalcraft et al. (2020): ageFactor = 0.87(age − 20) / 10 after age 20 (~50% capacity at age 70, tapering smoothly without an artificial floor). For adults (age 20+) who enter optional weight and height, BMI-related dilution is modeled conservatively above the WHO normal-weight upper bound (BMI 25) via a smooth hyperbolic factor: bmiFactor = 25 / BMI for BMI > 25, and 1.00 at or below BMI 25 — grounded in Ekwaru et al. (2014; BMI outperformed absolute weight in n = 17,614), Drincic et al. (2012; hyperbolic volumetric dilution), Wortsman et al. (2000), Roizen et al. (2019; hepatic CYP2R1 suppression), and Tobias et al. (2023; VITAL trial). Using weight and height avoids penalizing tall, lean adults while still noting that BMI can overestimate adiposity in highly muscular individuals. For ages under 20 or when skipped, the model uses 1.00 and displays an explanatory note.

7. Conservative suberythemal safety limit

The minute-by-minute loop checks ambient erythemal dose before adding each minute and stops strictly before exceeding 50% of your Minimal Erythemal Dose (0.50 MED), using full horizontal ambient irradiance (without the 0.45 cylinder reduction) because sunburn is local on upward-facing skin like the nose and shoulders. This accommodates inter-individual MED variation within each phototype while transparently acknowledging that even suberythemal UV induces molecular DNA lesions (cyclobutane pyrimidine dimers; Young et al., 1998; Sheehan et al., 2002).

8. Limitations

This is a simplified educational model. It does not measure real-time stratospheric ozone, tropospheric aerosols, altitude (+10–12%/km WHO average; 18% ± 2%/km in clean alpine air per Blumthaler et al., 1997), snow/sand albedo, urban shade, or sunscreen use; at very low sun angles (SZA > 60°) clear-sky UVI is only a directional low-UV approximation. It cannot account for photosensitizing medications or individual vitamin D metabolism. Ask a healthcare professional about a 25(OH)D blood test for clinical decisions.

The scientific sources used to build the model are listed in the references section of the calculator page.

Calculate your sun exposure time

VitaminDcalc

Disclaimer: General information based on simplified models. It is not medical advice and does not replace a healthcare professional, who can assess your vitamin D level, medications and skin cancer risk.

Guides & Articles • Methodology • Privacy Policy • Terms of Use • Contact & About
English · Deutsch · Español · Français · Português (Brasil)
© 2026 VitaminDcalc Platform. All rights reserved.