Train Meeting Problem Solver screenshot

Train Meeting Problem Solver

Work out when two trains meet and where from distance apart (km), first train speed (km/h), second train speed (km/h), direction. Towards: time = distance ÷ (v₁ + v₂); same direction: time = distance ÷ |v₁ − v₂|, and the page prints the substitution so the result can be checked by hand.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
No sign-up, no upload
Formula printed with the answer

Train Meeting Problem Solver

Work out when two trains meet and where from distance apart (km), first train speed (km/h), second train speed (km/h), direction. Towards: time = distance ÷ (v₁ + v₂); same direction: time = distance ÷ |v₁ − v₂|, and the page prints the substitution so the result can be checked by hand.

How this page computes

Towards: time = distance ÷ (v₁ + v₂); same direction: time = distance ÷ |v₁ − v₂|

Towards each other the gap shrinks at the sum of the speeds; in the same direction at the difference. The time is the gap divided by the closing speed in both cases.

The meeting point is printed from the first train, so the two distances always add to the original gap.

The calculation runs entirely in this browser tab; nothing is uploaded.

Train Meeting Problem Solver computes when two trains meet and where. Towards: time = distance ÷ (v₁ + v₂); same direction: time = distance ÷ |v₁ − v₂|. The page prints the rule, the numbers substituted into it and the result, so the arithmetic can be checked by hand.

Towards each other the gap shrinks at the sum of the speeds; in the same direction at the difference. The time is the gap divided by the closing speed in both cases. Pressed with distance apart 300, first train speed 80, second train speed 70, direction towards, it answers: They meet after 2 hours

How to use Train Meeting Problem Solver

Enter distance apart 300, first train speed 80, second train speed 70, direction towards, then press Run: the page evaluates when two trains meet and where and prints every line of the working. Typed input is read exactly as written, and a blank field is refused with its name.

Read the first line as the answer and the lines below it as the substitution. If a value is out of range the page refuses it by field and reason instead of printing a number.

With distance apart 300, first train speed 80, second train speed 70, direction towards, the answer is They meet after 2 hours.

Closing speed, not average speed

Towards each other the gap shrinks at the sum of the speeds; in the same direction at the difference. The time is the gap divided by the closing speed in both cases.

The meeting point is printed from the first train, so the two distances always add to the original gap.

What to Expect

Best for

  • Working out when two trains meet and where without a spreadsheet
  • Checking a figure someone else quoted
  • Seeing the formula behind an answer

Not ideal for

  • Equal speeds in the same direction are refused, because the gap never closes.
  • A quantity the page cannot compute, which it refuses instead of estimating
  • Rounding an answer that has an exact form

What this tool keeps

  • Towards: time = distance ÷ (v₁ + v₂); same direction: time = distance ÷ |v₁ − v₂|
  • Every input exactly as typed

What may need cleanup

  • Nothing: the printed answer is the final output
  • A unit conversion, if the inputs were entered in different units

Common errors

  • Equal speeds in the same direction are refused, because the gap never closes.
  • An empty field is refused with the field's name

Example use cases

  • Work out when two trains meet and where for one set of inputs
  • Check the result against the formula by hand
  • See which input the answer is most sensitive to

Sample input

Train Meeting Problem Solver: distance apart 300, first train speed 80, second train speed 70, direction towards

Sample output

They meet after 2 hours — Closing speed = 80 + 70 = 150 km/h

Who this is for

  • Students checking a formula
  • Anyone who needs the number and the working

Frequently asked questions

What formula does this page use?

Towards: time = distance ÷ (v₁ + v₂); same direction: time = distance ÷ |v₁ − v₂|. The page prints the substitution as well, so the answer can be checked against the rule.

What does Train Meeting Problem Solver refuse?

Equal speeds in the same direction are refused, because the gap never closes.

What does the default example give?

Distance apart 300, first train speed 80, second train speed 70, direction towards gives They meet after 2 hours. Every line below that restates the same arithmetic.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.