Medication spacing calculator

Your usual day
Medicine A (stays as it is)
What does the label say?
Medicine B (moved to keep the gap)
What does the label say?
Use the gap from your label, pharmacist or doctor. We can’t tell you what gap two medicines need.

Your times

Your times will appear here
Enter both medicines and the gap you were told, then press “Calculate”.

All tools

If you were told to keep two medicines a certain number of hours apart, enter both and the gap. The calculator keeps the first medicine as it is and moves the second, in 15-minute steps, until every dose is far enough apart. It never decides what gap two medicines need: use the gap from your label, pharmacist or doctor.

A 2-hour gap, awake 7:00 AM – 10:00 PM
MedicineTimesNotes
Medicine A (kept as it is)8:00 AM and 8:00 PM—
Medicine B10:00 AM and 10:00 PMMoved from 8:00 AM; closest pair 2 h apart

Where the gap comes from

Some instructions say to keep one medicine apart from another, for example “take 2 hours before or after” another medicine. Only your label, your pharmacist or your prescriber can tell you whether two of your medicines need a gap, and how long it must be. The FDA suggests asking whether there are interactions with any other medicines, dietary supplements, drinks or foods (FDA). This calculator takes the number of hours you were given and works out times that keep it. It does not know anything about the medicines themselves.

How the calculator finds a schedule

  1. Medicine A stays as it is. Enter it the way you take it now: every X hours, or X times a day across your waking hours. Its times are never moved.
  2. Medicine B is moved, not changed. It keeps the same number of doses and the same pattern. Only its first dose moves, in 15-minute steps, trying the times closest to your preferred time first.
  3. Every pair is checked. A time is accepted only if every dose of B is at least the gap away from every dose of A, and, for waking-hours medicines, every dose still falls between your wake-up time and bedtime.

The results show both medicines on one timeline, with the gap to the nearest dose of medicine A shown next to each dose of medicine B.

In the example above, medicine A is taken every 12 hours from 8:00 AM, and medicine B twice a day across the waking day, ideally from 8:00 AM. With a 2-hour gap, B’s first dose moves later so that every dose of B is at least 2 hours from a dose of A.

When no schedule fits

Sometimes there is no way to keep the gap. For example, if medicine A is taken every 2 hours, there is never a 2-hour gap free on either side of it. The calculator then says: “These can’t both be scheduled with a 2-hour gap during your waking hours.” Below that it shows the closest option it found, with the doses that are too close marked. Take that to your pharmacist. It is not a schedule to follow on its own.

More than two medicines

The calculator compares two medicines at a time. If you take several, MedlinePlus recommends keeping a list of all the medicines you take (MedlinePlus), and you can ask your pharmacist which ones need to be kept apart. Then put all of them on one timeline with the medication schedule calculator, which flags doses that fall within 30 minutes of each other.

Frequently asked questions

How many hours apart should I take two medicines?

This calculator cannot tell you. The gap depends on the medicines, and only your label, pharmacist or prescriber can give it. Once you know the number, enter it here.

Why does it move the second medicine and not the first?

So that one of your medicines stays exactly as prescribed. Enter the one whose times matter most, or that you already take at set times, as medicine A.

Can it handle a gap like 30 minutes or 4 hours?

Yes. Enter the gap in hours, up to 12; parts of an hour work too (0.5 is 30 minutes). For gaps around meals, for example “take 30 minutes before food”, the meal-time medication planner is a better fit.

What does “closest option” mean?

When no schedule keeps the full gap, the calculator shows the times that come nearest, with the doses that break the gap marked “Too close”. Ask your pharmacist what to do before using it.

Sources

Health statements on this page are based on these public sources. We link to the exact page so you can check the wording yourself.

Last updated November 9, 2026