MolarPrep is a browser-based solution preparation calculator that covers the two most common reagent setup scenarios in a laboratory: weighing a dry solid to a target molarity, and pipetting the right volume from a liquid stock defined by density and purity.
Both modules handle unit scaling automatically and validate inputs before computing, so the result is always expressed in a practical unit without manual prefix conversion.
No installation. No server. Runs entirely in the browser.
Preparing stock solutions involves multi-step unit conversions that are a frequent source of errors β especially under time pressure or when working across concentration scales (M, mM, Β΅M, nM). Without a dedicated tool:
- Mass calculations require manually converting target molarity and volume into consistent units before applying m = M Γ V Γ MW
- Liquid reagent preparation involves a two-step calculation (density + purity β stock molarity, then CβVβ = CβVβ) that is commonly collapsed or done incorrectly
- The appropriate output unit (g, mg, Β΅g / L, mL, Β΅L) must be chosen by the user, introducing another judgment call
MolarPrep handles all conversions internally and selects the output prefix automatically based on scale.
Enter the target molarity, final volume, and molecular weight. MolarPrep returns the mass to weigh out.
Formula
Supported molarity units: M, mM, Β΅M, nM. Supported volume units: L, mL. Output is auto-scaled to g, mg, or Β΅g depending on magnitude.
Use this when the reagent is a liquid sold by density and purity (e.g. acids, organic solvents). Enter density, purity, molecular weight, target molarity, and final volume.
Step A β Estimate stock molarity from density and purity
where P = purity fraction (e.g. 0.98), Ο = density in g/mL, MW = molecular weight in g/mol.
Step B β Apply dilution equation
Output is auto-scaled to L, mL, or Β΅L.
Non-positive or missing values return ERR. All outputs are checked for physical consistency before display.
| Solid reagent module | Computes mass to weigh from molarity, volume, and MW |
| Liquid reagent module | Estimates stock molarity from density and purity, then solves CβVβ = CβVβ |
| Auto unit scaling | Output switches between g/mg/Β΅g and L/mL/Β΅L based on magnitude |
| Input validation | Non-positive or missing values return ERR before computing |
| Offline-first PWA | Service Worker caches all assets; works without internet after first load |
| Bilingual UI | Full Spanish / English interface |
| No installation | Opens instantly in any modern browser; installable on Android, iOS, and desktop |
Frontend
Deployment
Fully static β no backend, no framework, no build step.
MolarPrep/
βββ index.html β markup only
βββ manifest.json β PWA manifest
βββ sw.js β Service Worker (cache-first, offline support)
βββ icon-192.png
βββ icon-512.png
βββ icon-maskable-192.png
βββ icon-maskable-512.png
βββ og-image.png β Open Graph social preview
βββ src/
βββ css/
β βββ app.css β all styles
βββ js/
βββ i18n.js β translation strings (ES / EN)
βββ app.js β all application logic
Emiliano Balderas RamΓrez Bioengineer Β· PhD Candidate in Biochemical Sciences Instituto de BiotecnologΓa (IBt), UNAM
DiluteIt β universal dilution solver (CβVβ = CβVβ) for any of the four variables.
CellSplit β Neubauer cell counting and passage planning for CHO cultures.
PulseGrowth β growth kinetics and metabolic rate estimation for mammalian cell culture.
CellBlock β shared biosafety cabinet scheduling for cell culture research groups.