Calculate the necessary base radius for your sandcastle using our free online tool. Determine volume, stability, and load-bearing requirements for sand structures.
AI Generation Prompt
Sandcastle Base & Volume Calculator
Overview
This is a lightweight, high-performance web tool designed for sand sculptors, beach-goers, and educators to calculate the stability and volume requirements for sand structures. It translates the physics of the "angle of repose" into a user-friendly UI to predict the necessary base radius for any desired height.
Technical Implementation Rules
- Architecture: Single-file HTML5/CSS3/Vanilla JS.
- Storage: NO
localStorage,sessionStorage, or cookies. Use only in-memory JavaScript variables. The app must reset state on page refresh. - UI Design: Modern, clean "SaaS" aesthetic. Light mode only. Crisp typography (Inter or System UI), soft card shadows (
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1)), and vibrant primary colors (Ocean Blue and Sand Beige). - Sandboxing: Must function perfectly inside a null-origin iframe.
Feature Set
- Interactive Calculator: Real-time inputs for Height and Angle of Repose (with common material presets).
- Visual Preview: A responsive SVG drawing area that displays a live side-profile representation of the cone being calculated.
- Volume Estimates: Automatic conversion of required sand volume based on calculated radius.
- Preset Selector: Quick-select buttons for "Dry Sand," "Damp Sand," "Compacted Sand," and "Custom Angle."
- Mobile-First Layout: Vertically stacked controls for phone screens, side-by-side split screen for tablet and desktop.
UI Layout
- Header: Clean title with a short instructional subtitle.
- Input Panel (Left/Top):
- Slider and number input for Height.
- Dropdown or button group for Material Type (adjusts angle of repose preset).
- Clear inputs to reset fields.
- Result Display (Right/Bottom):
- Large text cards displaying "Required Base Radius" and "Estimated Volume."
- An SVG canvas element that updates dynamically as the user drags a slider.
- Instructional Callout: A subtle "Pro Tip" section below the calculator detailing how to compact sand for better results.
Color Palette
- Background:
#F9FAFB(Soft cool grey) - Card Background:
#FFFFFF(Pure white) - Primary Action (Buttons):
#2563EB(Strong blue) - Text:
#111827(Heading),#4B5563(Body) - Accent:
#D97706(Sand gold for visual elements)
Animations & Transitions
- Smooth Inputs: Use CSS
transition: all 0.2s ease-in-outon all inputs and hover states. - Dynamic SVG: The SVG path representing the cone should smoothly animate its width using JS requestAnimationFrame or CSS transitions as the radius value changes.
- Load Fade-in: Elements should have a subtle upward slide-in fade effect on initial page load.
Spread the word
Files being used
Frequently Asked Questions
Everything you need to know about using this application.
How does sand moisture affect the angle of repose and structural stability?
Sand moisture is the primary variable affecting cohesion, or the stickiness of the grains. Dry sand has a lower angle of repose, usually around 30 to 34 degrees, making it difficult to stack high without it slumping immediately. By adding moisture, you create capillary bridges between the sand grains, which introduces surface tension that holds the structure together. When calculating your base radius, moisture content is a hidden variable that effectively increases your material's structural strength. Our calculator assumes standard 'ideal' damp sand conditions. If your sand is too dry or completely saturated with water, the structural integrity decreases, and you may need a wider base than the calculator suggests to prevent collapse.
Why is the base radius important for sandcastle structural integrity?
The base radius determines the distribution of the weight of the sand above it. In physics, a sand pile naturally forms a cone shape defined by the angle of repose. If the base radius is too small for a given height, the slopes will exceed the material's stable angle, causing the structure to succumb to gravitational pull and collapse outward. By correctly calculating the required base radius, you ensure that the structure remains within the stable zone for the specific type of material used. This is essential for building tall, tiered, or complex towers without needing to dig deep foundations or introduce artificial structural supports.
Can this tool be used for materials other than beach sand?
While this tool is specifically optimized for beach sand (silica grains with varied moisture content), the underlying physics of granular materials applies to similar aggregates. You can use the calculator for dry earth, sifted soil, or fine gravel by adjusting the 'Angle of Repose' preset. However, note that angularity and size distribution of particles will significantly change the results. Unlike industrial granular materials, beach sand is typically rounded by water action, which behaves slightly differently than crushed industrial sand. Treat the results as an engineering estimate rather than a precise construction measurement, especially if you are using non-standard granular materials in your project.
How do I calculate the total sand volume needed for my structure?
The total volume is calculated using the geometric formula for a cone, V = (1/3) * π * r² * h, where 'r' is your base radius and 'h' is your height. Our calculator automatically handles this math, allowing you to estimate how many buckets of sand you need to transport to your build site. Knowing the volume in advance helps in planning your logistics, especially for large-scale sand sculpture projects. By inputting your desired height, you can quickly determine if you have enough sand on hand or if you need to gather additional material before starting the compacting process.



