Calculate cost per pill from package price and pill count, plus cost per dose, cost per mg, days supply, and daily, monthly and yearly medication cost.

USD cost arithmetic only. Compare the same medicine and formulation; cost per mg does not establish clinical equivalence. Do not change a prescribed dose or split tablets without pharmacist/prescriber approval.

Optional settings

Blank fee and tax mean zero. Do not include charges already in the package price.

Blank omits cost per mg.

Blank omits dose costs. Enter only an existing prescribed schedule; fractional pills require professional approval.

Requires pills per dose. Blank omits daily and annual estimates.


Cost Per Pill Formula

The basic cost per pill formula divides the total cost by the number of pills:

CPP = TC / P

To calculate total cost instead, multiply the cost per pill by the number of pills:

TC = CPP ร— P

To calculate the number of pills, divide the total cost by the cost per pill:

P = TC / CPP

All monetary inputs and outputs use USD. No currency conversion is performed. Optional tax applies to package price only and rounds to cents before fees are added.

Adjusted total = Package price + Tax on package price + Added fees
  • CPP = cost per pill
  • TC = total cost
  • P = number of pills
  • Adjusted total = package price plus optional tax and fees
  • USD = the fixed monetary unit; no exchange rate is used

Choose a solve mode, then enter its labeled inputs. Cost per pill supports optional fees, tax, strength and an existing prescribed schedule. Total cost and budget capacity use the final unit price with no extra charges. Compare two packs on the same medicine/formulation and cost scope; strength and existing-dose inputs change the arithmetic comparison basis without assessing clinical equivalence.

Common Ways to Interpret Cost Per Pill

Result What it means Example use
Low cost per pill Each individual pill costs less. Comparing bulk bottles or larger prescription fills.
High cost per pill Each individual pill costs more. Checking brand-name, specialty, or smaller-count packages.
Same total cost, more pills The cost per pill decreases. Comparing 30-count and 90-count options.
Same pill count, lower total cost The cost per pill decreases. Comparing pharmacies, discounts, or insurance prices.

Cost per mg is not proof that products are interchangeable. Only compare an existing prescribed dose when it can be formed exactly from whole tablets, or halves explicitly approved for both exact products by a pharmacist or prescriber. Arbitrary tablet portions and a medically preferred product are not inferred. Incomplete leftover pieces are excluded from complete-dose pack counts. See FDA tablet-splitting guidance.

Sample Cost Per Pill Comparisons

Total cost Number of pills Cost per pill
$12.00 30 $0.40
$25.00 100 $0.25
$48.00 120 $0.40
$90.00 180 $0.50

Example Calculations

Example 1: Find cost per pill

You paid $36 for 90 pills. Use the formula:

CPP = TC / P

Substitute the values:

CPP = 36 / 90 = 0.40

The cost per pill is $0.40.

Example 2: Find total cost

A pill costs $0.75 and you need 60 pills. Use the formula:

TC = CPP ร— P

Substitute the values:

TC = 0.75 ร— 60 = 45

The total cost is $45.00.

FAQs

What is cost per pill?

Cost per pill is the price of one pill. It is found by dividing the total cost by the number of pills. For example, if a bottle costs $20 and contains 50 pills, the cost per pill is $0.40.

Should shipping, tax, or fees be included in total cost?

Include them if you want the true out-of-pocket cost per pill. If you only want to compare listed product prices, leave shipping, tax, or extra fees out. Use the same method for every option you compare.

Can the number of pills result be a decimal?

Package counts and requested pill counts must be whole. Budget capacity rounds down to whole pills without exceeding the entered unit-price budget; actual dispensing and pack rules may differ. Dose-equivalents and days supply may be fractional arithmetic outputs. Do not alter a prescribed dose to fit a budget.