How to Calculate Cell Viability: Methods and Formulas
By Dr. Zubair Khalid, DVM, MS, PhD ·

Introduction to Cell Viability
Cell viability is the quantitative measure of the proportion of living, metabolically functional cells within a population. It is expressed as a percentage of the total cell count and is one of the most fundamental parameters in experimental biology, toxicology, drug development, and tissue engineering. When you treat a culture with a drug, expose it to a stressor, or optimize culture conditions, the first question you ask is: how many cells survived?
The distinction between a viable cell and a dead cell is not always binary. A cell may be structurally intact but metabolically dormant, or it may have an intact membrane but be committed to apoptosis. Viability assays therefore measure proxies—membrane integrity, enzymatic activity, or metabolic reduction capacity—that correlate with the cell's ability to survive and proliferate. Understanding what each assay actually measures is essential for interpreting your results correctly and for choosing the right method for your experimental question.
Viability is distinct from cell proliferation. A viability assay tells you the fraction of live cells at a single time point; a proliferation assay measures changes in cell number over time. You can have high viability but no proliferation (e.g., quiescent cells), or you can have rapid proliferation with a small but constant fraction of dying cells. Both parameters are important, but they answer different questions. This article focuses specifically on how to calculate viability from the data generated by common laboratory assays.
Principles of Viability Assays
All viability assays exploit a fundamental difference between live and dead cells. The two most commonly exploited differences are membrane integrity and metabolic activity. Each approach has strengths and limitations, and the choice of assay depends on your cell type, throughput needs, and whether you require single-cell resolution.
Membrane Integrity-Based Assays
The plasma membrane of a healthy cell is a selective barrier. It excludes large charged molecules, maintains ion gradients, and keeps intracellular contents inside. When a cell dies—whether by necrosis, late apoptosis, or physical disruption—the membrane loses its integrity and becomes permeable to molecules that normally cannot cross it.
Membrane integrity assays use dyes that are excluded from live cells but enter dead cells. Trypan blue is the classic example: it is a diazo dye with a molecular weight of 961 Da that carries a negative charge. Live cells exclude it; dead cells take it up and appear blue under bright-field microscopy. Propidium iodide (PI) and 7-aminoactinomycin D (7-AAD) work on the same principle but are fluorescent. They intercalate into DNA, and because they are membrane-impermeant, they only stain cells with compromised membranes. These dyes are compatible with flow cytometry.
The key limitation of membrane integrity assays is that they detect cell death at a relatively late stage. A cell that has initiated apoptosis but still has an intact membrane will be scored as viable. Conversely, a cell that is alive but has been permeabilized by a detergent or electroporation will be scored as dead even though it may recover. Membrane integrity is therefore a necessary but not sufficient condition for viability.
Metabolic Activity-Based Assays
Metabolic assays measure the activity of enzymes that are only functional in living cells. The most widely used is the MTT assay, which relies on the reduction of a yellow tetrazolium salt, 3-(4,5-dimethylthiazol-2-yl)-2,5-diphenyltetrazolium bromide, to an insoluble purple formazan crystal. This reduction is carried out by NAD(P)H-dependent oxidoreductases and dehydrogenases in the mitochondria and cytoplasm of metabolically active cells. The formazan crystals are then solubilized in a solvent such as dimethyl sulfoxide (DMSO) or acidified isopropanol, and the absorbance is measured at 570 nm.
The MTT assay is an endpoint assay: the cells are lysed when you add the solubilization solution, so you cannot recover them afterward. The XTT and resazurin (Alamar Blue) assays are variations that produce soluble, fluorescent products, allowing repeated measurements over time. Resazurin is particularly useful because it is reduced by the same metabolic pathways but yields a highly fluorescent product (resorufin) that can be read on a fluorescence plate reader.
Metabolic assays are more sensitive than membrane integrity assays and can detect early changes in cell health before membrane breakdown occurs. However, they are indirect: a decrease in metabolic activity does not necessarily mean cell death. A cell that has stopped dividing, or that has been treated with a metabolic inhibitor, will show reduced signal despite being alive. This is why metabolic assays are often described as measuring "viability" when they are more accurately measuring "metabolic activity."
The Standard Formula for Cell Viability
The fundamental formula for cell viability is straightforward:
Viable cells (%) = (Number of viable cells / Total number of cells) × 100
Where:
- Number of viable cells is the count of cells that meet your viability criterion (e.g., exclude trypan blue, do not stain with PI, or reduce MTT).
- Total number of cells is the sum of viable and non-viable cells in the same sample.
This formula assumes you can distinguish live from dead cells at the single-cell level, as you do with trypan blue or flow cytometry. For population-based assays like MTT, the formula is modified because you do not count cells directly; instead, you compare absorbance values from treated and control samples (see Section 5).
The formula is simple, but its correct application requires rigor. The numerator and denominator must come from the same sample, counted under the same conditions. If you dilute your cell suspension, the dilution factor must be applied to both counts. If you count only a fraction of the hemocytometer grid, you must multiply appropriately. Errors in these steps are the most common source of inaccurate viability calculations.
Using Trypan Blue Exclusion to Calculate Viability
Trypan blue exclusion is the standard method for viability assessment in routine cell culture. It is inexpensive, requires only a hemocytometer and a light microscope, and gives you both viability and cell concentration in a single procedure. The method is widely used for Animal Cell Culture maintenance and for quality control before experiments.
Preparing the Cell Suspension
- Harvest your cells using an appropriate method. For adherent cells, this means removing the medium, washing with phosphate-buffered saline (PBS) without calcium and magnesium, and adding trypsin-EDTA (typically 0.25% trypsin with 0.02% EDTA) to detach the cells. Incubate at 37°C for 2–5 minutes, then neutralize the trypsin by adding serum-containing medium. For suspension cells, simply transfer the culture to a centrifuge tube.
- Centrifuge the cell suspension at 200 × g for 5 minutes at room temperature. Aspirate the supernatant and resuspend the cell pellet in fresh medium or PBS.
- Determine the cell density. If your culture is dense, you will need to dilute the cells before counting. A good target is 1 × 10⁵ to 1 × 10⁶ cells per mL. If you are unsure of the density, count an undiluted sample first to estimate.
- Prepare a 0.4% trypan blue solution in PBS. Mix 1 part cell suspension with 1 part trypan blue (a 1:2 dilution). For example, mix 20 µL of cells with 20 µL of trypan blue. Pipette up and down gently to mix thoroughly. Do not vortex, as this can damage cells and inflate the dead count.
- Load the hemocytometer. Place a clean coverslip over the counting chambers. Using a micropipette, carefully introduce about 10 µL of the cell–trypan blue mixture into the edge of the chamber. Capillary action will draw the liquid under the coverslip. Do not overfill; the liquid should not spill into the moat.
Counting and Calculating
The hemocytometer has a grid of 9 large squares, each 1 mm × 1 mm. The depth of the chamber is 0.1 mm, so the volume above each large square is 0.1 mm³, which equals 1 × 10⁻⁴ mL. The four corner squares are typically used for counting mammalian cells.
- Place the hemocytometer on the microscope stage and focus on the grid using the 10× objective. You should see the cells as small, refractile spheres. Live cells appear bright and clear; dead cells appear blue.
- Count the cells in the four corner squares. Count live cells (clear) and dead cells (blue) separately. A common convention is to count cells that touch the top and left borders of each square, and to exclude cells that touch the bottom and right borders. This prevents double-counting cells that lie on grid lines.
- Record your counts. For example, suppose you count 120 live cells and 10 dead cells across the four corner squares.
- Calculate the cell concentration using the following formula:
Cells per mL = (Average number of cells per square) × (Dilution factor) × 10⁴
Where:
- Average number of cells per square is the total count divided by the number of squares counted (usually 4).
- Dilution factor is 2 if you mixed equal volumes of cells and trypan blue.
- 10⁴ converts the volume of one square (0.1 mm³) to mL.
Using the example above: total cells = 120 + 10 = 130. Average per square = 130 / 4 = 32.5. Cells per mL = 32.5 × 2 × 10⁴ = 6.5 × 10⁵ cells/mL.
- Calculate viability:
Viable cells (%) = (Live cells / Total cells) × 100 = (120 / 130) × 100 = 92.3%
This is a healthy viability for most cell lines. Primary cultures, especially after isolation, may have lower viability; see Primary Cell Culture Guidelines for expectations.
- If you need a specific number of cells for an experiment, calculate the volume of suspension needed:
Volume needed (mL) = Desired cell number / Cells per mL
For example, if you need 2 × 10⁵ cells and your concentration is 6.5 × 10⁵ cells/mL, you need 2 × 10⁵ / 6.5 × 10⁵ = 0.31 mL.
Using MTT and Other Metabolic Assays
The MTT assay is the standard method for measuring viability in response to drug treatment, toxicants, or other experimental conditions. It is a population-based assay: you measure the total metabolic activity of all cells in a well, rather than counting individual cells. This makes it ideal for high-throughput screening in 96-well plates. For a detailed protocol, see Mtt Assay Cell Viability.
MTT Assay Protocol
- Seed cells in a 96-well plate at a density that will be sub-confluent at the time of the assay. A typical seeding density is 5 × 10³ to 1 × 10⁴ cells per well in 100 µL of medium. Allow cells to attach and recover overnight.
- Treat cells with your test compound or condition. Include the following controls on every plate:
- Untreated control: cells with medium only.
- Vehicle control: cells with the solvent used to dissolve your compound (e.g., 0.1% DMSO).
- Blank: medium only, no cells. This controls for background absorbance.
- At the end of the treatment period, add 10 µL of MTT solution (5 mg/mL in PBS) to each well. The final MTT concentration in the well should be 0.5 mg/mL.
- Incubate at 37°C for 2–4 hours. During this time, viable cells will reduce MTT to insoluble purple formazan crystals. The optimal incubation time depends on the cell type and metabolic rate; you may need to optimize this.
- Remove the medium carefully without disturbing the formazan crystals. Add 100 µL of DMSO to each well to dissolve the crystals. Place the plate on an orbital shaker for 10 minutes to ensure complete dissolution.
- Measure the absorbance at 570 nm using a microplate reader. If your plate reader allows it, measure a reference wavelength of 630 nm to subtract background.
Calculating Viability from Absorbance
The absorbance reading is directly proportional to the number of metabolically active cells, within a linear range. To calculate viability, you compare the absorbance of treated wells to that of the control wells:
Viability (%) = (Absorbance of treated well − Absorbance of blank) / (Absorbance of control well − Absorbance of blank) × 100
The blank subtraction is critical. MTT and medium components can contribute to background absorbance, and failing to subtract this will inflate your viability values, especially when the signal is low.
For example, suppose your blank absorbance is 0.05, your untreated control is 0.80, and your treated well is 0.44. The viability is:
(0.44 − 0.05) / (0.80 − 0.05) × 100 = 0.39 / 0.75 × 100 = 52%
This means the treatment reduced metabolic activity to 52% of the control level.
The same formula applies to XTT and resazurin assays, except that you measure absorbance or fluorescence at the appropriate wavelengths. For resazurin, you typically measure fluorescence with excitation at 560 nm and emission at 590 nm. The calculation is identical: (signal of treated − blank) / (signal of control − blank) × 100.
A critical assumption of this calculation is that the relationship between cell number and absorbance is linear. This holds only within a certain range. If your control absorbance is too high (above ~1.0–1.5), the signal may saturate, and your viability calculations will be unreliable. You should always perform a cell number titration to establish the linear range for your specific cell type. For guidance on maintaining consistent cell populations for these assays, refer to Cell Passaging.
Using Flow Cytometry with Viability Dyes
Flow cytometry offers the most precise method for calculating cell viability because it measures thousands of individual cells, giving you both a percentage and a distribution. It is the method of choice when you need to correlate viability with other parameters, such as surface marker expression or cell cycle status.
Staining and Gating
- Harvest your cells and prepare a single-cell suspension at a concentration of 1 × 10⁶ cells/mL in PBS or flow cytometry buffer (PBS with 1% bovine serum albumin and 0.1% sodium azide).
- Add a viability dye. Propidium iodide (PI) is excited at 488 nm and emits at 617 nm (FL3 channel). 7-AAD is excited at 488 nm and emits at 647 nm (FL4 channel). Add PI to a final concentration of 1 µg/mL, or 7-AAD to 5 µg/mL. Incubate for 5–15 minutes at room temperature in the dark.
- Include an unstained control (cells without dye) and a single-stain control (cells stained with only the viability dye). These are essential for setting the photomultiplier tube voltages and compensation.
- Acquire data on the flow cytometer. Collect at least 10,000 events per sample. Use forward scatter (FSC) and side scatter (SSC) to identify the cell population and exclude debris.
Data Analysis
The analysis workflow is as follows:
- Create a dot plot of FSC-A (area) versus SSC-A. Draw a gate (P1) around the main cell population, excluding debris and dead cell fragments, which typically have low FSC and high SSC.
- Create a dot plot of FSC-A versus FSC-H (height) to exclude doublets. Doublets have a higher FSC-A relative to FSC-H compared to single cells. Draw a gate (P2) around the diagonal population of single cells.
- Create a histogram of the viability dye fluorescence (e.g., PI in FL3) for the single-cell population. Live cells will be negative for PI (low fluorescence); dead cells will be positive (high fluorescence). Draw a marker (M1) to separate the two populations.
- Read the statistics: the percentage of cells in the PI-negative gate is your viability.
Viable cells (%) = (Number of PI-negative events / Total number of single-cell events) × 100
For example, if you acquire 10,000 single-cell events and 8,700 are PI-negative, your viability is 87%.
The advantage of flow cytometry is that you can also calculate the absolute number of viable cells if you include counting beads of known concentration in your sample. This allows you to express viability as cells per mL, not just a percentage.
Flow cytometry is also the method of choice for distinguishing early apoptotic cells (annexin V positive, PI negative) from late apoptotic or necrotic cells (annexin V and PI positive). Annexin V binds to phosphatidylserine, which is externalized to the outer leaflet of the plasma membrane during early apoptosis. This gives you a more nuanced picture of cell health than viability alone. For a broader overview of viability measurement strategies, see Measure Cell Viability.
Common Pitfalls in Viability Calculations
Even experienced researchers make errors in viability calculations. The following are the most common failure modes and how to avoid them.
Dilution Errors
The most frequent error is forgetting to account for the dilution factor when mixing cells with trypan blue. If you mix 20 µL of cells with 20 µL of trypan blue, the dilution factor is 2. If you mix 10 µL of cells with 10 µL of trypan blue, it is also 2. But if you mix 10 µL of cells with 40 µL of trypan blue, the dilution factor is 5. Always write down the volumes you used before you start counting.
A related error is over-diluting the cells. If you count fewer than ~20 cells per square, your estimate has a large sampling error. The Poisson distribution tells us that the standard deviation of a count of N is √N. If you count 20 cells, the standard deviation is about 4.5, giving a coefficient of variation of 22%. Count at least 100 cells per sample to keep the error below 10%.
Timing Issues
Trypan blue is toxic to cells. If you leave cells in trypan blue for more than 5–10 minutes, viable cells will begin to take up the dye, inflating your dead count. Count within 5 minutes of adding the dye. Similarly, if you wait too long before counting, cells may settle in the hemocytometer, giving a non-representative sample. Count promptly and gently remix the suspension if you need to reload the chamber.
In MTT assays, the incubation time with MTT must be consistent across all wells. If you add MTT to some wells and then take 30 minutes to add it to the rest, the first wells will have more time to reduce the dye, giving artificially higher absorbance. Use a multichannel pipette and work quickly.
Negative Controls
In MTT and other metabolic assays, the blank (medium only, no cells) is essential. Some media components, particularly phenol red, absorb at 570 nm and will contribute to your readings. If you do not subtract the blank, your viability values will be too high, especially for samples with low cell numbers.
In flow cytometry, the unstained control is essential for setting the voltage and gating. If you set the PI-negative gate based on the stained sample alone, you may inadvertently include some dead cells in the live gate or exclude some live cells. The unstained control tells you where the autofluorescence of live cells falls.
Debris and Doublets
Debris from dead cells can be counted as cells in a hemocytometer, inflating your total count and deflating your viability. In flow cytometry, debris has low FSC and can be excluded by gating. In hemocytometer counting, debris appears as small, irregular particles. Learn to distinguish debris from cells by size and morphology. If debris is a major problem, consider washing the cells by centrifugation and resuspending in fresh medium before counting.
Doublets are a particular problem in flow cytometry. Two cells stuck together will have twice the FSC-A of a single cell but the same FSC-H if they pass through the laser simultaneously. If you do not exclude doublets, you will underestimate viability because a doublet containing one live and one dead cell will be scored as PI-positive. Always use FSC-A versus FSC-H gating to exclude doublets.
Incorrect Formula Application
The viability formula is simple, but it is easy to apply incorrectly. A common error is to calculate viability as (live cells / total cells counted) without multiplying by 100, giving a fraction instead of a percentage. Another error is to use the total number of cells counted in only one square instead of the average across all squares. Always use the average number of cells per square in your concentration calculation.
For MTT assays, a common error is to compare treated wells to the untreated control without subtracting the blank. This is acceptable only if the blank is negligible, which is rarely the case. Always subtract the blank from all readings before calculating viability.
Summary and Best Practices
Accurate viability calculation is a cornerstone of reproducible cell biology. The following checklist will help you avoid errors and produce reliable data:
- Choose the right assay for your question. Use trypan blue for routine culture monitoring, MTT for dose-response experiments, and flow cytometry with PI or 7-AAD when you need single-cell resolution or multiparameter analysis.
- Prepare your samples consistently. Use the same cell density, the same buffer, and the same incubation times across all samples in an experiment.
- Include appropriate controls. Always include a blank (for MTT), an unstained control (for flow cytometry), and a vehicle control (for drug treatments).
- Count enough cells. For hemocytometer counting, count at least 100 cells total. For flow cytometry, acquire at least 10,000 events.
- Apply the dilution factor correctly. Write down your volumes and double-check your arithmetic.
- Work quickly with trypan blue. Count within 5 minutes of adding the dye.
- Subtract background. For MTT and other absorbance-based assays, always subtract the blank.
- Verify linearity. For MTT assays, confirm that your control absorbance is within the linear range for your cell type.
- Document your calculations. Record the raw counts, dilution factors, and formulas used. This allows you to audit your results and troubleshoot if something goes wrong.
- Report viability as a percentage with appropriate precision. Do not report more significant figures than your counting accuracy justifies. If you counted 130 cells, reporting 92.3% is appropriate; reporting 92.31% is not.
Frequently Asked Questions
How do you calculate cell viability?
Cell viability is calculated by dividing the number of viable cells by the total number of cells and multiplying by 100. The formula is: Viable cells (%) = (Number of viable cells / Total number of cells) × 100. The method for determining which cells are viable depends on the assay you use: trypan blue exclusion for hemocytometer counting, metabolic reduction for MTT, or dye exclusion for flow cytometry.
What is the formula for cell viability?
The universal formula is: Viable cells (%) = (Viable cell count / Total cell count) × 100. For absorbance-based assays like MTT, the formula is: Viability (%) = (Absorbance of treated sample − Absorbance of blank) / (Absorbance of control − Absorbance of blank) × 100. For flow cytometry, it is: Viability (%) = (Number of dye-negative events / Total number of single-cell events) × 100.
How do you calculate cell viability from absorbance?
In MTT, XTT, or resazurin assays, you first subtract the blank absorbance (medium only, no cells) from all readings. Then divide the corrected absorbance of the treated sample by the corrected absorbance of the untreated control and multiply by 100. This gives the percentage of metabolic activity relative to control, which is interpreted as viability.
How do you calculate cell viability using trypan blue?
Mix equal volumes of cell suspension and 0.4% trypan blue. Load a hemocytometer and count live (clear) and dead (blue) cells in the four corner squares. Viability = (Live cells / Total cells) × 100. To calculate cell concentration, use: Cells per mL = (Average cells per square) × (Dilution factor) × 10⁴.
How do you calculate cell viability from flow cytometry?
After staining cells with a viability dye such as propidium iodide or 7-AAD, acquire data on a flow cytometer. Gate on single cells using FSC-A versus FSC-H, then create a histogram of the dye fluorescence. The percentage of cells in the dye-negative (low fluorescence) gate is your viability: (Dye-negative events / Total single-cell events) × 100.
What is a good cell viability percentage?
For established cell lines, viability above 90% is generally considered healthy. For primary cells, viability above 80% is often acceptable, though this depends on the tissue source and isolation method. If viability falls below 90% for a cell line, it is advisable to determine the cause—contamination, overgrowth, or suboptimal culture conditions—before proceeding with experiments. Low viability can confound experimental results because dead cells release factors that affect the behavior of live cells.
Why is my cell viability calculation inaccurate?
The most common causes are: forgetting to apply the dilution factor when mixing cells with trypan blue; counting too few cells, leading to high sampling error; leaving cells in trypan blue too long, causing live cells to take up the dye; failing to subtract the blank in MTT assays; and including debris or doublets in flow cytometry counts. Review your protocol against the checklist in the Summary section to identify the source of error.
Key Takeaways
- Cell viability is the percentage of living cells in a population, calculated as (viable cells / total cells) × 100.
- Membrane integrity assays (trypan blue, PI, 7-AAD) detect dead cells by dye uptake; metabolic assays (MTT, XTT, resazurin) measure enzymatic activity of live cells.
- Trypan blue exclusion with a hemocytometer is the standard method for routine culture; always apply the dilution factor and count at least 100 cells.
- MTT viability is calculated from absorbance: (treated − blank) / (control − blank) × 100, and requires a blank and a linear range check.
- Flow cytometry gives single-cell resolution; gate on single cells and use an unstained control to set the viability dye gate.
- Common errors include dilution mistakes, counting too few cells, timing issues with trypan blue, and failure to subtract background absorbance.
- Always include proper controls, document your calculations, and report viability with appropriate precision.
Further Reading
- Oner E, Gray SG, Finn SP. Cell Viability Assay with 3D Prostate Tumor Spheroids. Methods in molecular biology (Clifton, N.J.). 2023. PubMed 37202626
- Hinkle ER et al. ViaFuse: Fiji macros to calculate skeletal muscle cell viability and fusion index. Skeletal muscle. 2021. PubMed 34915930
- Babakhanova G et al. Quantitative, traceable determination of cell viability using absorbance microscopy. PloS one. 2022. PubMed 35045103
- Russo G et al. Lipophilicity profiling and cell viability assessment of a selected panel of endocrine disruptors. Chemosphere. 2023. PubMed 36535497
- Cho K et al. Numerical learning of deep features from drug-exposed cell images to calculate IC50 without staining. Scientific reports. 2022. PubMed 35459284
- An G et al. Effects of pulsed electromagnetic fields on tumor cell viability: a meta-analysis of in vitro randomized controlled experiments. Electromagnetic biology and medicine. 2021. PubMed 34311647