Skip to content

Reference guide · Great circle, sight reduction and passage planning

CPA and TCPA calculator: closest point of approach and time to it

By the Mirage Interactive team · Last checked

CPA is the closest distance that two vessels will pass if both hold their course and speed. TCPA is the time until that happens. Together they say whether a target is going to pass clear, and how long you have to decide.

The method is a piece of vector geometry: treat your own ship as standing still, give the target the difference of the two velocities, and find where its straight line passes nearest to you. This page shows the formulas and five typical encounters worked through. For distance and course between two points, see the great circle and rhumb line guide linked below.

The short answer

Put the target at r0 = range x ( sin(bearing), cos(bearing) ) and give it the relative velocity v = target velocity - own velocity. Then TCPA = - ( r0 . v ) / |v|^2 and CPA = | r0 + v x TCPA |.

Own ship 090 at 10 knots, target 6 NM away at bearing 045, course 270 at 10 knots: relative speed 20 knots, TCPA 0.2121 hours (12.7 minutes), CPA 4.2426 NM.

Tables

Five encounters worked through the relative velocity method: own ship course and speed, the target's true bearing and range, the target's course and speed, then the relative speed, the time to the closest point in minutes and the CPA in nautical miles. Use your browser's print command to print this page: the tables print without the navigation.

CPA and TCPA of five encounters, courses and bearings true, speeds in knots, range in nautical miles
EncounterOwn course / speedTarget bearing / rangeTarget course / speedRelative speed (kn)TCPA (min)CPA (NM)
Head-on0 / 100 / 10180 / 1020.030.00.0000
Opposite courses, target 45 degrees on the port bow90 / 1045 / 6270 / 1020.012.74.2426
Overtaking a slower ship ahead0 / 120 / 20 / 84.030.00.0000
Target abeam to starboard, crossing at right angles0 / 1090 / 5270 / 1014.115.03.5355
Target ahead, drawing away0 / 100 / 30 / 144.0-45.0 (past)3.0000

Source: computed by the site build from the formulas below.

Formulas

Relative position and velocity
r0 = range x ( sin(B), cos(B) ) v = ( Vt sin(Ct) - Vo sin(Co), Vt cos(Ct) - Vo cos(Co) )
B is the true bearing of the target from own ship, Co and Vo own course and speed, Ct and Vt the target's. The two components are east and north.
Time and distance of closest approach
TCPA = - ( r0 . v ) / |v|^2 CPA = | r0 + v x TCPA |
A negative TCPA means the closest point is already past and the vessels are opening: CPA is then the present range.
Cross-product check
CPA = | r0 x v | / |v|
The perpendicular distance from you to the target's relative track. It gives the same number by a different route.

Worked example

Own ship 090 at 10 knots, target at 045, 6 NM, course 270 at 10 knots

  1. The target's position relative to you is 6 x ( sin 45, cos 45 ) = ( 4.243, 4.243 ) NM east and north.
  2. The target moves at ( -10, 0 ) and you move at ( 10, 0 ), so the relative velocity is ( -20, 0 ): 20 knots toward the west.
  3. TCPA = - ( 4.243 x -20 + 0 ) / 400 = 0.2121 hours, which is 12.7 minutes.
  4. At that time the target is at ( 0.000, 4.243 ), directly north of you: CPA = 4.2426 NM.
  5. A head-on encounter at 10 knots each, 10 NM apart, has a relative speed of 20 knots, a TCPA of 0.5 hours (30 minutes) and a CPA of 0: they collide unless one of them acts.

Things to watch

  • CPA and TCPA assume both vessels hold course and speed. They are only a snapshot: any change of course or speed by either one changes the result.
  • Check that the bearing is true. A relative bearing from the bow has to be added to your true heading first.
  • The calculator does not say that a situation is safe or clear of danger, and it is not a replacement for a proper lookout, radar or ARPA, or the collision regulations.

Related guide: Great circle and rhumb line distance: formulas and worked passages

More from this family: Sight reduction worked example: Hc, Zn and intercept step by step · Nautical miles calculator: distance, conversion and passage time · Great circle sailing calculator: vertex, waypoints and saving

Skip the arithmetic

Nautical Navigation Calculator

Nautical Navigation Calculator gives CPA and TCPA with the formula shown, and the current triangle: set and drift. One-time purchase · No subscription · Price shown in your store. Works offline, no ads, no account.

Questions

How do you calculate CPA?

Find the relative velocity of the target, the difference of its velocity and yours, then find where the line it makes relative to you passes nearest. The distance there is the CPA.

What is TCPA?

The time until the closest point of approach. It is positive while the vessels are closing and negative once the closest point has passed.

What is the CPA of a head-on meeting?

Zero, if both vessels stay on their lines: they meet. With 10 knots each and 10 NM between them, the time to it is 30 minutes.