Calculate how many days your survival food and water supplies will last. A free, easy-to-use tool to plan rations for groups during emergency situations.
AI Generation Prompt
Free Survival Rations and Food Supply Duration Calculator
Overview
This single-file application is a professional, clean, and highly responsive utility tool designed to help users calculate how long their emergency supplies will last. It provides a mathematical estimation of survival duration based on caloric and water consumption rates for a specified number of people.
Technical Implementation Constraints
- Architecture: Single HTML file containing all CSS and JavaScript.
- Storage: NO
localStorage,sessionStorage, or cookies. All state is maintained in-memory. - Compatibility: Must run in a sandboxed iframe. Use native
alert()replacements (custom modals). - Frameworks: Vanilla JavaScript only; Tailwind CSS (CDN) for styling.
Detailed Feature List
- Dynamic Group Input: Adjust the number of survivors, with individual fields for adults and children (children consume fewer calories).
- Inventory Input: Input total available calories and total volume of water (in liters or gallons).
- Consumption Profiles: Select from presets: "Sedentary/Minimal", "Moderate Activity", and "High Exertion".
- Real-time Results: An instant-update dashboard that displays "Days Remaining" for food and water independently, and an overall "Days until Total Depletion" indicator.
- Visual Progress Indicators: Smooth, animated progress bars showing the ratio of consumption to total supply.
- Export Summary: A button to trigger a print dialog formatted for a clean, clean-sheet document to save your planning.
UI/UX Design
- Color Palette:
- Background:
#f8fafc(Cool Gray 50) - Cards:
#ffffff - Primary Accent:
#059669(Emerald 600 - Represents growth/sustainability) - Text:
#1e293b(Slate 800)
- Background:
- Layout:
- Header: Clean, centered title with a brief subtitle.
- Main Area: A two-column grid (desktop) that stacks on mobile. Left side for inputs, right side for output metrics.
- Output Section: A prominent "Result Card" with large typography for the number of days, ensuring high visibility.
- Animations:
- CSS
transitionon input fields for focus states. - CSS
transformandopacityanimations for when result values change. - Smooth width transition for progress bars.
- CSS
Developer Directives
- Responsive Design: Ensure all input fields have large touch targets (min 44px) for mobile usability.
- Form Handling: No forms submission. Use JavaScript
inputevent listeners to update calculations on-the-fly without page reloads. - Sandboxing: Ensure no external tracking or analytics scripts are included. All fonts must be standard web-safe fonts or injected via Google Fonts link tag.
- Accessibility: All input fields must have proper
<label>tags andaria-describedbywhere necessary for screen readers. - Aesthetics: Avoid borders; use soft shadows (
shadow-sm,shadow-md) to define input containers and cards for a modern 'SaaS' look.
Spread the word
Files being used
Frequently Asked Questions
Everything you need to know about using this application.
How does the survival duration calculator determine how long my supplies will last?
The calculator determines supply duration by taking the total quantity of your stored items and dividing them by the daily consumption rates defined for each member of your group. It calculates the limiting factor by checking which resource—food calories or water volume—will run out first based on your specific input parameters. By establishing a clear, numeric threshold for each resource, the application provides an immediate, real-time estimate of survival time. This enables you to visualize exactly how long your group can sustain itself, helping to clarify where your emergency planning needs adjustment or additional resource acquisition.
Can I use this tool for long-term survival and emergency preparedness planning?
Yes, this tool is designed for long-term survival planning, allowing you to input large quantities of caloric values and water volumes. Whether you are stocking a pantry for short-term emergency situations or planning for extended periods, the tool offers the necessary arithmetic precision to manage your resources effectively. It is important to remember that this tool performs mathematical projections only and does not account for external variables such as shelf-life, spoilage, or metabolic changes due to activity levels. Always cross-reference your calculated output with professional survival guidelines and ensure your physical storage is rotated regularly.
Does this application save my supply inventory data?
No, this application does not save any of your data. As a security and privacy-first browser tool, all calculations are performed locally in your browser's memory, and no information is written to local storage, cookies, or any external database. Once you refresh the browser tab or close the window, all input data is permanently cleared. This architecture ensures that your private inventory data remains entirely under your control and is never transmitted to or stored on any server, providing a secure way to assess your emergency preparedness without digital footprints.
What is the recommended daily intake for survival and rationing?
Recommended survival intake varies significantly based on age, body weight, and exertion levels during emergencies. Generally, survival guidelines suggest a minimum of 1,200 to 1,500 calories per day to maintain basic bodily functions, though active individuals will require significantly more to avoid muscle wasting and lethargy. Regarding water, the standard survival guideline is a minimum of one gallon (3.8 liters) of water per person per day for drinking, hygiene, and light food preparation. During planning, it is recommended to build a buffer into your calculations, as these values represent absolute minimums rather than optimal comfort levels.
Related Applications

Free EDI X12 Syntax Highlighter & Parser Tool
@Akhenaten

Free Online SQL Query Minifier & Code Compressor Tool
@Akhenaten

Free Hardy-Weinberg Equilibrium Allele Frequency Calculator
@Akhenaten

Free Scroll Progress Bar Code Generator - HTML/CSS/JS
@Akhenaten