Free Freediving Ear Equalization & Boyle's Law Calculator—
gemini-3.0-flash
Calculate lung volume changes during freediving descents using Boyle's Law. Use this free tool to visualize ear equalization physics and dive safely today.
AI Generation Prompt
Application Overview
The Freediving Physics & Volume Visualizer is a single-page web utility that helps divers calculate and visualize the effects of Boyle's Law on lung volume during a descent. It provides an interactive dashboard where users input their target depth and baseline lung volume, receiving an instant, animated representation of how that volume changes under hydrostatic pressure.
Core Features
- Dynamic Volume Calculator: Inputs for 'Baseline Lung Volume' (liters) and 'Depth' (meters or feet) with real-time conversion.
- Visual Pressure Simulation: An SVG-based circular indicator representing the lung/air space that physically shrinks in size as the user increases the depth slider.
- Pressure Coefficient Display: Displays the ATA (Atmospheres Absolute) at the chosen depth to help users understand the pressure load.
- Equalization 'Danger Zone' Indicator: Color-coded cues (Green -> Yellow -> Red) that warn users where air volume becomes critically low, reinforcing the need for early equalization.
UI & Layout Specification
- Header: Clean, centered text with the app title. No navigation links or complex menus.
- Main Tool Area: A split-view layout. The left side contains simple, large input fields for numeric data. The right side contains the interactive 'Volume Visualizer'.
- Responsive Design: On desktop, the calculator is side-by-side. On mobile, the visualizer stacks above the inputs to maintain high visibility while dragging sliders.
- Aesthetics: A clean, 'light-mode' SaaS aesthetic. Use a palette of crisp white (#FFFFFF), soft light-gray (#F8F9FA), and oceanic accents like deep teal (#008080) and sky blue (#87CEEB). High-quality box shadows (subtle, 0px 4px 12px rgba(0,0,0,0.1)) for cards.
Technical Directives for Developer
- Architecture: Single
index.htmlfile. CSS and JS must be embedded within<style>and<script>tags. - Constraints:
- NO STORAGE: Do not use
localStorage,sessionStorage, or cookies. The state must be contained entirely in JS variables. - NO POPUPS: Do not use
alert(),confirm(), orprompt(). If an error occurs (e.g., negative depth), show an inline error message within adivelement. - NO EXTERNAL LIBS: Use Vanilla JS/CSS. You may use a CDN for one icon library (e.g., Phosphor Icons or FontAwesome) but no heavy frameworks.
- NO STORAGE: Do not use
- Animations: Use CSS
transitionproperties for the volume visualizer (the SVG circle radius) to ensure a smooth, liquid-like shrinking/expanding effect as the depth input changes. - Math:
- Boyle's Law: $P_1V_1 = P_2V_2$ where $P = 1 + (depth / 10)$ for meters.
- Ensure the UI handles precision to two decimal places.
Spread the word
Files being used
Frequently Asked Questions
Everything you need to know about using this application.
How does Boyle's Law affect freediving?
Boyle's Law states that for a fixed amount of gas, pressure and volume are inversely proportional. In the context of freediving, as a diver descends, the surrounding water pressure increases, which causes the air inside the lungs and air spaces (like the middle ear and sinuses) to compress significantly. Because the volume of air decreases at depth, divers must perform equalization techniques, such as the Frenzel or Valsalva maneuvers, to add air to these spaces. This tool helps visualize exactly how much that volume shrinks at different depths to help you understand the physics behind the 'squeeze'.
Why is this tool useful for beginners?
Beginner freedivers often struggle to conceptualize why equalization becomes more difficult and why the lungs feel compressed as they descend. By using a visual calculator, you can simulate your planned dive depth and see the percentage of lung volume remaining in real-time. This immediate feedback helps learners internalize the importance of early and frequent equalization, rather than waiting until discomfort or pain occurs at depth.
Does this tool store my diving data?
No, this application is built with privacy and security in mind and does not use any form of persistent storage such as cookies, localStorage, or databases. The application runs entirely within your browser's memory. Once you close or refresh the tab, all inputs and calculations are cleared. This ensures that no personal training data or dive logs remain on the device.
Is this tool a substitute for professional diving instruction?
Absolutely not. This calculator is a purely educational utility designed to demonstrate physics concepts and should never be used as a primary safety device or a substitute for professional freediving certification and training. Always follow the safety protocols established by recognized diving agencies and never dive alone. This tool is for illustrative purposes only to help you understand the relationship between depth, pressure, and volume.
Related Applications

Free SCC to WebVTT Subtitle Converter Tool
Convert SCC subtitle files to WebVTT format online for free. Fast, secure, browser-based SCC to VTT conversion tool for video captioning and accessibility.

Free Online SQL Query Formatter and Beautifier
Easily beautify, format, and indent your raw SQL code online for free. This clean, efficient SQL formatter supports MySQL, PostgreSQL, and standard SQL syntax.

Free Online Social Media Link Card Previewer
Preview how your website metadata appears when shared on social media. Generate and validate link preview cards for micro-blogging platforms for free.

Free Online Browser Compatibility Feature Support Checker
Instantly verify web feature support across Chrome, Firefox, Safari, and Edge. A fast, free browser compatibility checker for modern web development.
Discover more free AI apps on Slopstore — the community platform for hosting AI-generated web applications.