Skip to content
CalculatorZilo Logo
  • Home
  • CalculatorsExpand
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
CalculatorZilo Logo
Home / Cost Per Pill Calculator
Pharmacy Calculators

Cost Per Pill Calculator

Published onJuly 15, 2025 Updated onOctober 23, 2026 10:54 pm

Two bottles of the same medication can carry very different sticker prices and still cost exactly the same to take, or the cheaper-looking bottle can quietly be the expensive one. The sticker tells you what leaves your wallet today; it says nothing about what each pill costs.

This calculator divides the total price of a bottle, pack or prescription by the number of pills inside it, and gives the cost per pill to four decimal places, so you can compare pack sizes, pharmacies, and brand against generic on equal terms.

Cost Per Pill Calculator
The exact price of one pill, tablet or capsule, to four decimal places

Cost per pill
—
Total cost entered—
Pills in the pack—

How it was calculated

    This is the purchase price of one pill, not the cost of one dose. If your dose is two pills, or half a pill, the dose costs a different amount: the section below on cost per pill versus cost per dose explains the difference.

    Quick Answer

    Quick answer: A bottle that costs $135.00 for 90 pills works out to $1.5000 per pill. A larger pack at $120.00 for 100 pills is $1.2000 per pill, which saves $0.3000 on every pill, or $27.00 across a 90-pill supply, even though the two sticker prices look close.

    Key takeaways

    • Cost per pill is a unit price. It is the only fair way to compare offers with different pack sizes, because sticker prices reward whichever bottle happens to be smaller.
    • The result is shown to four decimal places on purpose. Real price differences between pharmacies are often fractions of a cent per pill, and they add up over months of daily medication.
    • Only compare pills of the same medication and the same strength. A cheaper pill at half the strength is not cheaper if you need two of them.
    • Cost per pill is not cost per dose. When one dose is not exactly one pill, the dose is the unit that matters, and a different calculation applies.
    On this page
    • Quick Answer
    • How to use the cost per pill calculator
    • The formula, and why the answer has four decimal places
    • Worked example: one medication, three offers
    • Cost per pill is not cost per dose
    • Where per-pill comparisons mislead
    • What competing calculators miss
    • Frequently Asked Questions
    • Add This Calculator to Your Website
    • References

    How to use the cost per pill calculator

    Read the two numbers off the bottle or the pharmacy listing: what you paid in total, and how many pills the pack contains. The count is printed on the label as the quantity, and for a prescription it is also on the pharmacy receipt.

    1

    Enter the total cost. Use the full amount for the pack. If you are comparing two pharmacies, decide once whether tax, shipping and dispensing fees count, then apply the same rule to both.

    2

    Enter the pill count. Count tablets, capsules or softgels, not doses and not days of supply. A 90-pill bottle taken twice a day is still 90 pills for this calculation.

    3

    Compare like with like. Run the calculation for each offer and compare the per-pill figures, checking that the medication, strength and pill form match before you treat the lower number as the winner.

    The same unit-price habit works beyond the pharmacy. Any product sold in varying quantities, from laundry pods to printer cartridges, compares honestly only per unit, which is what the general-purpose cost per unit calculator is built for.

    The formula, and why the answer has four decimal places

    There is one division behind this tool, and no hidden adjustments.

    The formula: Cost per pill = total cost of the medication / total number of pills. Multiply the result by the pills you take per day for a daily cost, or by the pills in a month of therapy for a monthly cost.

    The four decimal places are deliberate, and they come from the original tool. Pharmacy prices for the same drug routinely differ by less than a cent per pill between sellers, and a two-decimal display rounds those differences away: $0.5049 and $0.4951 both print as $0.50, yet a person taking one pill a day pays about $3.58 more per year at the higher price. Chronic medication is bought for years, so the fractions are the story. When you record prices in a spreadsheet or a notes app, keep all four decimals until the final comparison.

    Worked example: one medication, three offers

    The calculator is pre-filled with the first row. All three figures below are what it returns for those inputs.

    OfferTotal costPillsCost per pillReading
    Your current bottle$135.0090$1.5000The baseline
    Larger pack, same pharmacy$120.00100$1.2000Best per pill
    Small pack, discount store$52.0030$1.7333Cheapest sticker, worst value
    Small pack $52 / 30
    $1.7333
    Current bottle $135 / 90
    $1.5000
    Larger pack $120 / 100
    $1.2000

    The discount store pack is the trap this calculator exists to disarm. At $52 it feels like the frugal choice, and it is the most expensive way to buy the medication by a wide margin: $0.2333 more per pill than your current bottle. The larger pack runs the other way. It asks for $120 up front, and returns $0.3000 per pill, which is $27.00 saved over a 90-pill supply and about $109.50 over a year of one pill a day. Neither fact is visible from the shelf price. Both are obvious the moment the unit price is on the table.

    Cost per pill is not cost per dose

    These two figures get confused constantly, and the difference decides real money. Cost per pill prices one pill. Cost per dose prices one administration of the medication, and the two are equal only when a dose is exactly one pill of the strength in the bottle.

    They pull apart in three common situations. First, strength: a prescription for 500 mg filled with 250 mg tablets means two tablets per dose, so each dose costs twice the per-pill price and the bottle holds half as many doses as it holds pills. Second, split tablets: a scored 20 mg tablet taken as two 10 mg halves makes each dose cost half the per-pill price. Third, the pharmacy layer: dispensing fees and an insurance copay attach to the prescription, not to the pill, and a flat $10 copay can make the per-pill shelf price irrelevant to what actually leaves your account. Getting the dose itself right comes first, and the medicine dosage calculator covers dose amounts. Once the dose is set, the cost per dose calculator prices it properly, working from package price, tablet strength, dose size, fees and copay. Use this page to compare what pills cost; use that one to compare what your treatment costs.

    Where per-pill comparisons mislead

    A unit price is only as honest as the match between the things being compared. Four checks keep the comparison clean.

    Strength must match. A 10 mg tablet at $0.80 and a 20 mg tablet at $1.20 are not a $0.80 win for the smaller tablet. If the dose is 20 mg, the real comparison is $1.60 against $1.20, and the ranking flips.

    Generic is usually a true match. A generic contains the same active ingredient as the brand it copies, and according to the US Food and Drug Administration's generic drug facts, generics are required to deliver the same dosage form, strength and quality. That is why brand-versus-generic is the comparison where per-pill math pays off most often: the products are equivalent, so the lower unit price is a genuine saving.

    Expiry and dose changes eat bulk savings. A 100-pill pack is only cheaper if all 100 pills get taken. If your dose is reviewed quarterly, or the medication expires before a slow course finishes, the effective cost per pill taken is the price divided by the pills you actually used.

    A flat copay overrides the shelf price. When insurance sets your cost at a fixed copay per fill, your personal cost per pill is the copay divided by the pills in the fill, whatever the pharmacy charges. Run the calculator with your copay as the total cost to see your real figure.

    What competing calculators miss

    The tools ranking for this term all divide total cost by pill count, and several present the result well. The gaps show up in the details around the division.

    Miss 1: comparing across strengths. At least one popular competitor illustrates the tool with a dosage example that calls a lower-strength option more economical purely because its per-pill price is lower, without adjusting for how many pills make a dose. That is the single most expensive mistake in this category, and it is why the dose distinction gets its own section here.

    Miss 2: two-decimal thinking. Competitor examples work in round cents, which trains readers to treat $0.50 and $0.50 as equal. This tool keeps the four-decimal result the calculation actually produces, because chronic medication turns sub-cent gaps into real annual money.

    Miss 3: no copay or fee guidance. Most competing pages never say whether the total should include tax, shipping or dispensing fees, or what to do when a copay replaces the shelf price. The rule used here is simple: include the same charges on both sides, and run your copay as the total when insurance sets your price.

    Frequently Asked Questions

    Cost per pill is the average price you paid for one tablet, capsule or softgel in a bottle or pack. It is the total amount you paid divided by the number of pills, so a $135 bottle of 90 pills works out to $1.5000 per pill. It is a unit price: it lets you compare two offers fairly even when the pack sizes and sticker prices differ.

    Because real per-pill prices often differ by fractions of a cent, and rounding to two decimals hides the difference. Prices of $0.5049 and $0.4951 both display as $0.50, yet over a year of one pill a day they differ by about $3.58. Four decimals keep small differences visible, and small differences are exactly what this comparison is about.

    Include them if you want the true delivered cost per pill, and include them for every option you compare. A bottle that looks cheaper before a $6 shipping charge may not be cheaper after it. What matters is consistency: the same inclusions on both sides of the comparison.

    No. Cost per pill prices one pill. Cost per dose prices one administration, which may be two pills, half a pill, or a dose measured against a different tablet strength, and a full dose calculation can also involve dispensing fees and an insurance copay. When the dose is not exactly one pill, use the cost per dose calculator instead.

    Yes. It works for any product sold as a count of solid units: prescription tablets, over-the-counter painkillers, vitamins, herbal capsules and softgels, and pet medication tablets. For liquids, powders and creams, price per milliliter or per gram is the meaningful unit instead.

    Work out the cost per pill for each, then multiply by the number of pills you actually take in the same period. A 90-day supply usually wins on per-pill price, but only if you will finish it before it expires and your dose is not likely to change. A cheaper per-pill price on pills you throw away is not a saving.

    Then each half is the unit you actually take, so double the count: a bottle of 90 tablets split in half gives 180 half-tablet doses, and the cost per half is the total divided by 180. Only split tablets your pharmacist or prescriber says can be split. The US Food and Drug Administration notes that scored tablets are the ones evaluated for splitting, and some medicines should never be split.

    No. The comparison only holds for the same medication at the same strength. A lower per-pill price can also hide a sooner expiry date, a strength that forces you to take two pills per dose, or a flat insurance copay that makes the per-pill price irrelevant to what you pay. Check strength, expiry and your copay before switching.

    Add This Calculator to Your Website

    Embed the Cost Per Pill Calculator on your own site. Pick a size to preview it live, then copy the code.

    Powered by Calculator Zilo

    References

    1. US Food and Drug Administration, "Generic Drug Facts": how generics match the brand on active ingredient, strength and quality, which is what makes per-pill brand-versus-generic comparisons valid. FDA: Generic Drug Facts. Accessed October 2026.
    2. US Food and Drug Administration, "Generic Competition and Drug Prices": FDA analysis of how the number of generic competitors drives the price of a medication down. FDA: Generic Competition and Drug Prices. Accessed October 2026.
    3. US Food and Drug Administration, "Tablet Splitting": which tablets are evaluated for splitting and why some medicines should never be split. FDA: Tablet Splitting. Accessed October 2026.
    4. US Food and Drug Administration, "Orange Book: Approved Drug Products with Therapeutic Equivalence Evaluations": the official register for checking whether two products are therapeutically equivalent before comparing prices. FDA: Orange Book. Accessed October 2026.
    5. US National Library of Medicine, "Medicines" (MedlinePlus): consumer guidance on using medicines safely, including dosing and label information. MedlinePlus: Medicines. Accessed October 2026.
    6. Centers for Medicare and Medicaid Services, "Medicare Part D Spending by Drug": official per-drug spending and average cost data for the Medicare prescription drug program. CMS: Medicare Part D Spending by Drug. Accessed October 2026.
    7. Medicare.gov, "Drug coverage (Part D)": how Medicare drug plans, formularies and copays decide what a beneficiary actually pays per fill. Medicare.gov: Drug Coverage (Part D). Accessed October 2026.
    8. KFF, "Health Care Costs and Affordability": survey and spending data on what Americans pay for prescription drugs and how prices affect adherence. KFF: Health Care Costs and Affordability. Accessed October 2026.
    9. World Health Organization, "Essential Medicines" fact sheet: the global essential medicines framework and why per-unit medicine pricing matters for access. WHO: Essential Medicines. Accessed October 2026.
    10. US National Library of Medicine, "DailyMed": the official repository of FDA-approved drug labels, including strength, form and package counts used in per-pill comparisons. DailyMed: Official Drug Labels. Accessed October 2026.

    Related calculators

    Pharmacy CalculatorsVial CalculatorA vial holds 5 mg of medication and 2 mL of water was added: how much liquid carries a 0.5 mg dose, and how many doses does the vial hold?Pharmacy CalculatorsSemaglutide Dosage CalculatorSemaglutide is sold as three different products with three different dose schedules, and mixing them up is the most common mistake people make when planning their titration.Pharmacy CalculatorsDose CalculatorThis dose calculator turns a weight-based prescription into the two numbers you actually give: the single dose and the daily total.Pharmacy Calculators Medication Conversion Calculator Medication doses are written in whichever metric mass unit fits the drug: micrograms for potent medicines...Pharmacy CalculatorsMed Dosage CalculatorMany prescriptions are written as milligrams per kilogram of body weight, and turning that order into an...Pharmacy CalculatorsDose Conversion CalculatorA prescription written in grams, a vial labelled in milligrams, and a syringe marked in millilitres: dose...

    We use cookies to analyze traffic. You can accept or decline cookies below. Learn more

    calculatorzilo

    CalculatorZilo

    Free calculators for everyday life. No signup, no cost, just answers.

    Categories

    Finance Math Health & Fitness Education Science Real Estate Chemistry Browse all calculators

    Popular tools

    Mortgage Payment Calculator BMI Walking Calculator Salary Per Minute Calculator Percentage Off Calculator

    Company

    About Us Contact Us Privacy Policy Terms and Conditions
    Disclaimer Cookie Policy DMCA Policy Affiliate Disclosure FAQ Accessibility Statement

    © 2026 CalculatorZilo • Free calculators for everyone

    • Home
    • Calculators
      • Browse all calculators
      • Education
      • Real Estate
      • Chemistry
    • Finance
    • Math
    • Health & Fitness
    • Science
    • About
    • Contact
    Search