Ticket Optimizer

Find the cheapest mix of single fares and passes for your stay.

Compares up to three ticket types, with validity in days, weeks, months or years.

Updated November 28, 2026
Frank Zhao - Creator
CreatorFrank Zhao
Loading calculator…

Introduction

Almost every fare table sells the same ride three ways: a single ticket, a short pass such as a day or weekly card, and a long pass such as a monthly or annual season ticket. Comparing them by their price per day is easy and usually misleading, because the answer is rarely a single ticket type — it is a mixture, and the mixture changes with how many trips you take and how long you stay.

This page takes your trip rate, the length of the stay and the prices you can actually buy, and returns the cheapest combination of whole tickets: how many single fares, how many short-term passes and how many long-term passes, what they cost together, what the same trips would cost as single fares, and the average price of one trip. That last figure is the one worth remembering — it is directly comparable with a single fare, and with the same figure for another city or another card.

It is written for commuters deciding whether a monthly card pays off, for visitors working out a four-day stay, and for anyone standing in front of a fare table with two prices and one question. The method is deliberately conservative: a pass is charged at its full price even when it covers more days than you need, and the recommendation is never allowed to cost more than simply paying for each trip.

Three ticket types

Single fare, short pass, long pass

Whole tickets only

Counts you can take to the machine

Month = 30.4375 days

Days, weeks, months and years all convert

Quick start

1

Count the trips the way you think about them

Enter how many journeys you make in the period that feels natural — a day, a week, a month or a year. The menu beside the box sets that period, and the number is converted to trips per day before anything is compared, so “10 trips a week” and “1.43 trips a day” describe the same habit. Count a return journey as two trips. A zero is allowed and means you are not travelling at all.

2

Set the length of the stay

The second box is how long the tickets have to cover: a five-day visit, four weeks on a project, a 90-day term. The total number of trips below it fills itself in, and it is editable — if your travel card reports rides rather than days, type the total instead and the stay length is solved back out of it.

3

Enter the single fare

One price, in whatever currency you spend. This is the baseline: every pass has to beat what the same trips would cost bought one at a time. Use the fare you would actually pay, including any discount card you already hold, because the comparison is only as honest as that number.

4

Tick the passes you can buy, with their price and validity

Both pass rows start switched off, so the page answers the “pay per trip” question first. Tick a row and two boxes appear: the price of one pass, and how long one pass covers — a day ticket 1 day, a 48-hour card 2 days, a weekly pass 7 days, a monthly card 1 month. Tick only what you can actually buy; an unticked row is ignored completely, whatever price is left in it.

5

Read the mixture, not just the total

Here is a fare table with round numbers: 4 trips a day for a 10-day stay, a 2.80 single fare, a 7.00 day ticket and a 30.00 weekly pass. The page returns one weekly pass plus three day tickets for 51.00, against 112.00 for forty single fares:

NtripsN_{\mathrm{trips}}==4×104 \times 10==4040
weekly rate\text{weekly rate}==30.007\frac{30.00}{7}==4.286 per day4.286\ \text{per day}
CbestC_{\mathrm{best}}==30.00+3×7.0030.00 + 3 \times 7.00==51.0051.00cˉ=51.0040=1.275\quad\bar{c}=\frac{51.00}{40}=1.275

Seven days of the stay go to the weekly pass because nothing else covers a day for 4.29. Three days are left, and with only three days to cover, the weekly pass would cost 10.00 a day while a day ticket still costs 7.00 — so the last three days are day tickets. A monthly card would have to beat 51.00 while covering only ten of its days, and it is charged in full, so it would have to be a very cheap card indeed to win.

How the mix is chosen

The stay is charged one stretch of days at a time. On each pass, every ticket is priced per day of cover, the cheapest is bought, and the days it covers are struck off the stay. The loop stops when no days are left.

1. Trips and the stay are normalised to days first

rdayr_{\mathrm{day}}==renteredfrate\frac{r_{\mathrm{entered}}}{f_{\mathrm{rate}}}the trip rate, in trips per day
DstayD_{\mathrm{stay}}==Dentered×ftimeD_{\mathrm{entered}} \times f_{\mathrm{time}}the stay, in days
NtripsN_{\mathrm{trips}}==rday×Dstayr_{\mathrm{day}} \times D_{\mathrm{stay}}every journey the tickets must cover

The two menus are what make this step necessary: a weekly habit and a monthly card cannot be compared until both are in the same units. A month is 30.4375 days, which is exactly 365.25 / 12, and a year is 365.25 days. Those are the values in both menus, so a monthly card covers exactly one month of travel when you buy one and the arithmetic never drifts by a fraction of a day.

UnitDays it is worth
day1
week7
month30.4375 (= 365.25 / 12)
year365.25

2. How many days of travel one ticket covers

LsingleL_{\mathrm{single}}==1rday\frac{1}{r_{\mathrm{day}}}one trip’s worth of days
LshortL_{\mathrm{short}}==DshortD_{\mathrm{short}}Llong=Dlong\qquad L_{\mathrm{long}} = D_{\mathrm{long}}the days printed on each pass

A pass covers the days printed on it. A single fare is different: it covers one trip, and one trip is 1/rday1 / r_{\mathrm{day}} days of the stay. At four trips a day a single fare is a quarter of a day; at half a trip a day the same fare covers two days. That reciprocal is why single fares can win on short stays — one of them may cover the whole visit.

3. The rate each ticket is weighed at

qi=cimin⁡(Li,  Dleft)q_i = \frac{c_i}{\min\left(L_i,\; D_{\mathrm{left}}\right)}

When a ticket covers no more days than are left, its rate is simply its price divided by its cover. When it covers more, it is charged over the days that remain instead — the full price, spread over the part of the stay it can actually serve. A 30.00 weekly pass with three days left is weighed at 10.00 a day, which is exactly the honest way to look at a card you would pay for in full and use for less than half of it. The currency menu does not touch this rule: it converts the prices and the totals together, so the winner is the same in dollars, euros or yuan.

4. Buy the cheapest, take the days off the stay, repeat

i∗i^{*}==arg⁡min⁡iqi\arg\min_i q_ithe cheapest rate wins this round
ni∗n_{i^{*}}==⌊DleftLi∗⌋\left\lfloor \frac{D_{\mathrm{left}}}{L_{i^{*}}} \right\rfloorhow many copies cover the days left
DleftD_{\mathrm{left}}←\leftarrowDleft−ni∗ Li∗D_{\mathrm{left}} - n_{i^{*}}\,L_{i^{*}}strike those days off and start again

The winner is bought in one batch: for eleven days and a weekly pass, the plan charges one weekly pass rather than seven day-long slices of one. Batching changes nothing about the answer, because the same ticket stays the cheapest for as long as it keeps being cheaper — it only keeps the arithmetic short, whether the stay is four days or four years.

5. The baseline, and the promise that the answer never loses to it

CsingleC_{\mathrm{single}}==⌈Ntrips⌉×csingle\lceil N_{\mathrm{trips}} \rceil \times c_{\mathrm{single}}whole single fares for every trip
CbestC_{\mathrm{best}}==min⁡(Cplan,  Csingle)\min\left(C_{\mathrm{plan}},\; C_{\mathrm{single}}\right)the cheaper of the mixture and the baseline
SS==Csingle−CbestC_{\mathrm{single}} - C_{\mathrm{best}}what the recommendation saves

The baseline counts whole single fares, not a fractional number of them: a stay of seven and a half trips needs eight tickets, and that is what paying per trip would really cost. For the same reason the recommendation is the cheaper of the planned mixture and plain single fares. One single fare can cover more days than a short pass does, which lets the rate rule lose to a straight per-trip purchase; when that happens the page reports the per-trip plan and says so with a mixture of single fares and a saving of zero.

6. The average cost of a trip

cˉ=CbestNtrips\bar{c} = \frac{C_{\mathrm{best}}}{N_{\mathrm{trips}}}

This is the number to compare across cities and across cards, because it survives a different currency, a different trip count and a different stay. It stays blank when the stay holds no trips, where it would otherwise be a division of nothing by nothing.

NtripsN_{\mathrm{trips}}Journeys in the whole stay: trips per period times the length of the stay.
rdayr_{\mathrm{day}}The trip rate converted to trips per day.
DstayD_{\mathrm{stay}}Length of the stay in days.
LiL_iDays of travel one ticket of type i covers.
cic_iPrice of one ticket of type i.
qiq_iThat price per day of cover, given the days still left.
DleftD_{\mathrm{left}}Days of the stay not yet covered.
nin_iHow many tickets of type i the plan buys.
CbestC_{\mathrm{best}}Cheapest total cost of the recommended mixture.
CsingleC_{\mathrm{single}}What the same trips would cost as whole single fares.
SSSaving against paying for every trip separately.
cˉ\bar{c}Average cost of one trip in the recommended mixture.

7. What the comparison table puts next to the mixture

The result block is a comparison of four answers to the same stay, because “which ticket should I buy?” is really “should I commit to one type, or mix them?”. Three of the options cover the whole stay with a single ticket type, counting whole tickets, so the last days of a stay can demand one more card than the ratio of days would suggest. The fourth option is the mixture the loop above found.

OptionWhat it buys for the Berlin-style ten-day stay
Pay for every tripOne single fare per journey: 40 fares at 2.80 is 112.00
Only short-term ticketsTen one-day tickets for ten days: 70.00
Only long-term ticketsTwo weekly passes, covering fourteen days: 60.00
Recommended mixtureOne weekly pass plus three day tickets: 51.00

The gap between the last option and the others is the whole point of the page. Committing to the weekly pass is 60.00; mixing one pass with three day tickets is 51.00, because the final three days are cheaper as day tickets than as a second weekly pass. A list of daily rates cannot see that trade, which is why comparing passes by their price per day tends to overcharge the traveller.

The results are answers, not inputs

Every number in the comparison is calculated from what you typed, and none of them can be edited. You cannot, for example, type a budget into the cheapest total and have the page invent a mixture to fit it — a mixture is not invertible, and pretending otherwise would hand you a combination that does not add up. Change the prices or the trip count and every row follows.

Worked examples

Three situations that come up again and again. Each is solved by the page, and each ends with the decision the number actually calls for.

1

A commuter deciding on a monthly card

Situation: Two trips a day, five days a week, for a working month of 30 days. The single fare is 2.50 and a monthly card costs 60.00.

What goes in

Trips2 per day
I need tickets for30 days
Single fare2.50
Long-term ticket60.00, valid 1 month

What comes out

NtripsN_{\mathrm{trips}}==2×30=602 \times 30 = 60
CsingleC_{\mathrm{single}}==60×2.50=150.0060 \times 2.50 = 150.00cˉ=60.0060=1.00\quad\bar{c}=\frac{60.00}{60}=1.00

In practice: Buy the card. Sixty trips at the single fare would cost 150.00, so the card saves 90.00 and brings the trip down to 1.00 — less than half the single fare.

2

A four-day visit where the weekly pass still wins

Situation: One trip a day for four days, a 3.00 single fare, and a 10.00 weekly pass at the machine. The pass covers seven days that the visit will not use.

What goes in

Trips1 per day
I need tickets for4 days
Single fare3.00
Short-term ticket10.00, valid 7 days

What comes out

CsingleC_{\mathrm{single}}==4×3.00=12.004 \times 3.00 = 12.00
qpassq_{\mathrm{pass}}==10.00min⁡(7, 4)\frac{10.00}{\min(7,\,4)}==2.50 per day2.50\ \text{per day}

In practice: Buy the weekly pass. It is charged in full at 10.00 against 12.00 of single fares, so it still saves 2.00 — but the leftover three days are wasted, and a three-day visit at these prices would tip the other way.

3

Eleven days, where the answer is a mixture

Situation: Four trips a day for eleven days, with a 2.80 single fare, a 7.00 day ticket and the same 30.00 weekly pass.

What goes in

Trips4 per day
I need tickets for11 days
Single fare2.80
Short-term ticket7.00, valid 1 day
Long-term ticket30.00, valid 7 days

What comes out

NtripsN_{\mathrm{trips}}==4×11=444 \times 11 = 44Csingle=44×2.80=123.20\quad C_{\mathrm{single}} = 44 \times 2.80 = 123.20
CbestC_{\mathrm{best}}==30.00+4×7.00=58.0030.00 + 4 \times 7.00 = 58.00cˉ=58.0044=1.318\quad\bar{c}=\frac{58.00}{44}=1.318

In practice: Buy one weekly pass and four day tickets. The bill is 58.00 against 123.20 for forty-four single fares, a saving of 65.20, and the trip averages 1.32. Buying two weekly passes would be simpler to explain and 2.00 dearer.

Getting the inputs right

The arithmetic is exact; the inputs are where the answer goes wrong. These are the four that change results most often.

A return journey is two trips

The single most common input error. Counting outings instead of journeys halves the trip rate and makes every pass look bad, because the page then believes you need half as many rides as you do. If you think in return journeys, double the number before you type it.

Validity is the cover, not the price period

A day ticket is valid for 1 day, a 48-hour card for 2 days, a 7-day pass for 7 days, a monthly card for 1 month. If your operator sells a 5-day pass, type 5 — the box is what one pass covers, and it is the only thing that decides how much of the stay it eats.

Enter the price you would actually pay

The model compares numbers, so hand it your real ones: the discounted monthly card you qualify for, the off-peak single, the tourist rate if that is what you will be charged. Mixing a full-price pass with a discounted single fare answers a question nobody is asking.

A pass you only half use is still paid in full

Nothing here refunds unused days. A 60.00 monthly card for the last week of a stay is compared over that week at about 8.57 a day, not at the 1.97 a day it would cost over the whole month. That is the single biggest reason the answer is not “the card with the best daily rate”.

A small saving is still a real answer

Three trips a day for five days at a 2.20 single fare, against a 6.50 day ticket, saves about 0.50 — five day tickets for 32.50 instead of 33.00 of single fares. If the difference is smaller than the price of a coffee, buy whichever is more convenient; the page is telling you the two options are equivalent, which is useful information in itself.

Questions

Q

Why does it suggest a weekly pass plus day tickets instead of one monthly card?

Because a card is charged in full for the days it covers, not spread over the days you use. For an eleven-day stay a monthly card would be paid for and then only partly used, which pushes its real rate above the weekly pass plus a few day tickets. The mixture is usually what a local would actually buy, and it is what the page is designed to find.

Q

Why is the saving zero?

Single fares are already the cheapest way to make those trips. That is the normal answer for short stays, for pass prices that do not compete, and for very low trip rates — where one single fare covers several days of travel. A zero is a recommendation to pay per trip, not a failure.

Q

Why is the average cost per trip blank?

Because the stay holds no trips: either the trip rate is zero or the stay has no length. There is nothing to divide the bill by, so the page leaves that one number empty rather than printing a zero that would look like a free ride. The total itself still shows, and with no trips it is zero.

Q

Why does the comparison show two weekly passes when the page recommends one?

The “only long-term tickets” option answers a different question: what would it cost to cover the whole stay with that one type and nothing else. Eleven days need two weekly passes, which covers fourteen days and wastes three. The recommendation buys one pass and fills the remaining days with day tickets, because that is cheaper than a second card. Both answers are right — they answer “commit to one type” and “use the cheapest mixture” respectively.

Q

My monthly card is a calendar month, but the page uses 30.4375 days. Does that matter?

Only slightly, and never in a way that changes which card to buy. A calendar month runs from 28 to 31 days, so a card that really covers 31 days is about 1.8% cheaper per day than the page assumes, and one covering 28 days is about 8% dearer. If you want a specific month accounted for exactly, enter the pass validity in days instead — 31 for a 31-day card — and the page uses that number directly.

Q

What if the pass has a fixed start date, or I cannot start it on day one?

Enter the number of days you can actually use it for. A weekly pass bought on a Thursday that runs out on Sunday covers four days of travel, not seven, so put 4 in the validity box and the comparison uses the days you really get. The same applies to a card that starts next month.

How far to trust the answer

  • It compares prices, not journeys. Frequency, journey time, connections, the walk to the stop and the risk of a missed connection are all invisible here. A pass that costs 5.00 more and saves you twenty minutes a day may still be the better purchase.
  • One price per ticket type. Zonal fares, peak and off-peak pricing, weekend rules, airport supplements and trip-capped or contactless-capped billing all break the “one ticket, unlimited rides within its validity” assumption. Enter the average price you pay per ticket and treat the answer as a comparison, not as the operator's own quote.
  • No discounts are applied for you. Student, senior, family, group and employer-subsidised fares are not modelled. If you qualify for one, type the discounted price into the price box — the calculator will compare that happily.
  • Currency conversion uses a daily rate. The menu on any price box converts every amount on the page at the rate quoted against the US dollar, refreshed once a day from the shared exchange-rate source named under the results. A converted figure is an equivalent, not a price the operator charges: a fare is set in the local currency, and the rate can move between the day you plan and the day you buy. The recommendation itself cannot change with the rate, because every fare is scaled by the same factor.
  • A month is averaged at 30.4375 days. That keeps the time menus consistent, but it is not a calendar month and it does not know about February. For an exact comparison against a specific month, enter the validity in days.
  • It cannot buy the tickets for you. The prices, the availability of a weekly pass and the rules attached to it are yours to confirm at the machine or on the operator's fare page. Check the recommendation against what is actually on sale before you commit to a card.
Ticket Optimizer - Cheapest Mix of Single Fares and Passes