Calculate your espresso extraction yield percentage and Total Dissolved Solids (TDS) effortlessly. A precise coffee brewing tool for baristas to dial in shots.
AI Generation Prompt
Espresso Extraction Yield & TDS Calculator
Overview
A precise, lightweight, browser-based utility designed for baristas and coffee enthusiasts to calculate coffee extraction efficiency. This tool eliminates manual math, providing immediate feedback on shot quality based on input dose, output weight, and TDS percentage.
Technical Implementation Constraints
- Single File: Pure HTML5, CSS3, and Vanilla JavaScript. No bundling or frameworks.
- Storage: Absolutely NO use of
localStorage,sessionStorage, or cookies. The application must calculate values in-memory only. Upon page refresh, values reset to defaults. - Sandboxed Compatibility: Avoid
alert(),confirm(), orprompt(). All user notifications and data inputs must occur within the DOM elements. - Environment: Must run perfectly inside a null-origin sandboxed iframe.
UI/UX Design
- Aesthetic: Clean, high-contrast, premium SaaS design. Use a palette of warm, professional neutral tones (white, soft espresso brown, charcoal grey, and light slate blue).
- Responsive: Fluid grid layout that stacks vertically on mobile and expands to a centered, balanced dashboard on desktop.
- Typography: Use a clean, sans-serif, high-legibility font stack (e.g., Inter, system-ui).
Layout
- Header: Descriptive title with a clean subtitle.
- Input Panel: Three distinct input fields:
- Dry Coffee Dose (g)
- Beverage Weight (g)
- TDS Reading (%)
- Include a clear 'Reset' button using a neutral grey style.
- Result Display Panel: A prominent, large-font result area that updates in real-time as the user types:
- Calculated Extraction Yield (%)
- Status indicator (e.g., "Ideal", "Under-extracted", "Over-extracted") based on standard ranges.
- Visual Meter: A horizontal gauge or color-coded bar representing the extraction range (8-22%) with a dynamic slider indicator for the current result.
Animations & Micro-interactions
- Inputs: Gentle border-color transitions on focus (e.g., slate blue outline).
- Results: Fade-in transition when the yield value updates.
- Visuals: The gauge should slide smoothly to the calculated position rather than jumping instantly.
Technical Requirements
- Input Validation: Ensure inputs only accept positive numbers. Display a small inline warning for non-numeric or negative entries without using browser alerts.
- Formula:
EY% = (TDS% * Beverage Weight) / Dry Dose. - Performance: Optimized for sub-millisecond calculation; interaction must feel instantaneous.
Spread the word
Files being used
Frequently Asked Questions
Everything you need to know about using this application.
How is espresso extraction yield calculated?
Extraction yield is calculated by multiplying the Total Dissolved Solids (TDS) percentage by the final beverage weight in grams, and then dividing that result by the initial dry coffee dose in grams. This formula determines the percentage of coffee solubles that successfully transferred from the grounds into the cup. By measuring these variables, baristas can move beyond guesswork and objectively measure how effectively the brewing process extracted flavor, acidity, and sweetness from the coffee bean.
What is considered a good TDS range for espresso?
While taste is subjective, most specialty coffee standards suggest that an ideal espresso TDS falls between 8% and 12%. This range typically balances the body, acidity, and sweetness of the shot. If the TDS is too low, the espresso might taste watery or sour, indicating under-extraction. Conversely, a TDS that is too high might signal over-extraction, which can lead to bitter and harsh flavors. Baristas use these ranges as a baseline for dialing in their grinders and recipes to achieve a balanced extraction.
Does the brew ratio affect my extraction yield?
Yes, the brew ratio is one of the most critical variables in determining extraction yield. By changing the ratio of ground coffee to liquid beverage, you alter the concentration of solubles. A higher brew ratio (more water) usually increases the total extraction yield but lowers the TDS concentration. Understanding this relationship is key to manipulating the strength and extraction level of your espresso. Adjusting the ratio is often the fastest way to fix a shot that tastes imbalanced, even before changing grind settings.
Why is it important to measure extraction yield?
Measuring extraction yield provides an objective data point that helps identify whether your recipe is actually working or if the grinder settings are mismatched with the roast profile. It removes the inconsistency inherent in relying solely on taste, which can vary based on personal palate fatigue or environmental factors. By keeping track of these metrics, you can replicate successful shots with precision. Over time, this data-driven approach builds a deeper understanding of how different bean densities, roast levels, and water temperatures influence the final extraction profile.



