Free Online Magnetic Declination & True North Offset Calculator—
gemini-3.0-flash
Calculate the magnetic declination and true north offset for any location globally. Use this free tool to accurately convert magnetic bearings to true bearings.
What This App Does
Calculate the magnetic declination and true north offset for any location globally. Use this free tool to accurately convert magnetic bearings to true bearings. — generated by gemini-3.0-flash and published by @Akhenaten on Slopstore. Categorized under Utility, this app is part of Slopstore's curated collection of AI-generated tools and experiments. Run it free in your browser. No installation needed.
AI Generation Prompt
Magnetic Declination & True North Offset Calculator
Overview
A high-precision, web-based utility for geophysicists, surveyors, and outdoor enthusiasts to calculate the magnetic declination (True North offset) for any coordinate on Earth. The tool provides real-time adjustments based on current geomagnetic models.
Technical Constraints & Directives
- Architecture: Single-file HTML5 (CSS/JS bundled). No external frameworks required. Use Tailwind CSS via CDN for styling.
- Storage: NO
localStorage,sessionStorage, or cookies. The app must rely entirely on memory state. If the page is refreshed, the inputs reset. - Environment: Must function perfectly inside a sandboxed
iframe(null origin). - Network: Use the
fetchAPI to query public, reliable geomagnetic data endpoints (e.g., NOAA NCEI API). Ensure all requests are HTTPS. - Interaction: No
alert(),confirm(), orprompt(). All messaging must be handled via custom DOM overlays.
UI Layout
- Header: Clean, professional title area with a brief helper text explaining the tool's purpose.
- Main Interface (Input Section):
- Input Cards: A two-column grid (desktop) or single-column (mobile) container holding:
- Latitude/Longitude input fields (number inputs).
- Date picker (defaulting to "Today").
- "Calculate" action button with a modern hover transition.
- Input Cards: A two-column grid (desktop) or single-column (mobile) container holding:
- Results Section:
- Primary Output: Large, clear display of the declination angle (e.g., "12° 15' East").
- Visual Indicator: A dynamic SVG compass needle that visually rotates to indicate the offset between True North (0°) and Magnetic North.
- Conversion Guide: A secondary panel showing how to apply the value: "Add for East / Subtract for West."
Color Palette
- Primary: Deep Navy (
#1e293b) for text and icons, representing "professionalism." - Accent: Vibrant Compass Blue (
#3b82f6) for actions and primary results. - Surface: Pure White (
#ffffff) background, light gray cards (#f8fafc) with subtle drop shadows (shadow-sm,shadow-mdon hover). - Alerts/Text: Soft Slate (
#64748b) for descriptive text.
Animations & Transitions
- Micro-interactions: Subtle
transition-allon the "Calculate" button (scale-up 102% on hover, slight color shift). - Data Loading: When the button is clicked, disable the button and show a gentle opacity pulse on the results card until the API returns data.
- SVG Rotation: CSS animation on the needle to rotate into position using
transform: rotate()with atransition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1)easing for a premium feel.
Spread the word
Files being used
Frequently Asked Questions
Everything you need to know about using this application.
What is magnetic declination and why does it change?
Magnetic declination is the angle between magnetic north and true north at a specific point on the Earth's surface. Because the Earth's magnetic poles are constantly moving due to changes in the planet's molten iron core, the magnetic field is in a constant state of flux. This means that the declination value for a single location will change slightly from year to year. Our calculator uses the latest available geomagnetic models to provide precise, time-sensitive data for navigation and surveying needs.
Why is it important to calculate the true north offset?
Accurate navigation, whether for hiking with a map and compass or performing professional land surveying, requires an understanding of how magnetic north deviates from true geographic north. Failing to account for this offset can result in significant errors over long distances. By calculating the true north offset, you can apply a correction factor to your compass readings. This ensures that your magnetic bearings are accurately converted to true bearings, allowing for precise orientation on maps that are aligned with the Earth's grid.
How accurate is this magnetic declination calculator?
This tool fetches data from established international geomagnetic models, which are updated periodically to track the movement of magnetic poles. It provides high-precision calculations based on the latitude, longitude, and date provided by the user. While the data is highly reliable for most navigation and recreational surveying applications, users should always verify critical data with official governmental sources if they are performing high-stakes engineering or aviation projects where specific safety standards apply.
How do I use this tool to adjust my compass?
First, enter your current geographic coordinates (latitude and longitude) and the current date into the input fields. The calculator will provide the declination value in degrees and minutes, indicating whether it is East or West. Once you have this value, you can adjust your compass or map settings. If the declination is East, you add the value to your magnetic bearing; if it is West, you subtract it to determine the true geographic bearing.
Related Applications

Free Drone Wind Speed & Crosswind Drift Calculator
Calculate drone flight adjustments with this free online wind speed and crosswind drift vector tool. Plan safe flight paths by determining ground speed quickly.

Free Kombucha Scoby Hotel Feeding Schedule Generator
Effortlessly manage your Kombucha Scoby hotel. Use our free feeding schedule generator to calculate tea and sugar ratios and track maintenance intervals easily.

Free Sourdough Starter Temperature vs Yeast Activity Calculator
Optimize your sourdough baking with our free online tool. Visualize how proofing box temperatures impact yeast activity, fermentation speed, and starter health.

Free EDI X12 Syntax Highlighter & Parser Tool
Easily visualize and parse complex EDI X12 files with our free syntax highlighter. Analyze ISA, GS, ST, and SE segments instantly with an intuitive web interface.
Discover more free AI apps on Slopstore — the community platform for hosting AI-generated web applications.