Course contentsShow

Module 04 · Lesson 2

Two-Line Element Sets and Ephemerides

Most public orbit data arrives as two-line element sets or their OMM successors. This lesson explains each field, why the elements only work with SGP4, and how ephemerides differ.

8 minute readUpdated November 23, 2026

Learning objectives

After this lesson you will be able to:

  • Read the fields of a two-line element set and convert them to usable values
  • Explain why TLE and OMM elements are mean elements that must be propagated with SGP4
  • Choose between element sets and ephemerides, taking the accuracy and age of the data into account

The format most developers meet first

Most publicly available orbit data comes from the U.S. government, which has published orbital elements for tracked objects since the 1970s. The data is known as general perturbations, or GP, data. Its traditional container is the two-line element set (TLE), a fixed-width text record designed when data moved on punch cards. TLEs are distributed through Space-Track.org and redistributed by sites such as CelesTrak.

The set below was constructed for this lesson. It is an illustrative example, not tracking data for a real object. Catalog number 00000 is not assigned to anything.

EXAMPLE SAT
1 00000U 26999A   26327.50000000  .00010000  00000-0  18000-3 0  9993
2 00000  51.6000 120.0000 0005000  90.0000 270.0000 15.50000000    12

The name line is optional. Lines 1 and 2 are always 69 characters long.

Reading the fields

LineColumnsFieldNotes
1 and 23-7Catalog numberThe object's number in the U.S. satellite catalog
119-32EpochTwo-digit year, then day of year with a fraction, in UTC
154-61B* drag termImplied decimal point and exponent
29-16InclinationDegrees
218-25RAANDegrees
227-33EccentricityImplied leading decimal point
235-42Argument of perigeeDegrees
244-51Mean anomalyDegrees
253-63Mean motionRevolutions per day
1 and 269ChecksumSum of the digits, modulo 10, with each minus sign counted as 1

Columns are numbered from 1.

  • Epoch. 26327.50000000 means day 327.5 of 2026, which is 12:00 UTC on November 23. Day 1.0 is the start of January 1. Two-digit years from 57 to 99 mean the 1900s and 00 to 56 mean the 2000s.
  • Eccentricity. 0005000 means 0.0005000. The decimal point is not stored.
  • Mean motion. The number of orbits per day stands in for the semi-major axis. A value of 15.5 gives a period of about 92.9 minutes, or an altitude a little above 400 km.
  • B*. 18000-3 means 0.18000 multiplied by 10 to the power of -3. The B* drag term tells the propagator how strongly drag acts on the object.

The reader below decodes every field and draws the orbit the set describes. It starts with the set above. Change one digit of the inclination in the text box and note which check fails, then try the other examples.

Read a two-line element set

Interactive model

Edit a digit, or paste a TLE of your own, with or without a name line above the two numbered lines.

Try an example:

Both lines are the right length and pass their checksums.

Loading 3D globe…

One lap takes
93 minutes
Semi-major axis
6,795 km
Perigee altitude
413 km
Apogee altitude
420 km

These four values are not written in the TLE. They are worked out from the mean motion and the eccentricity.

ILLUSTRATIVE SPACE STATION ORBIT: every field
FieldValueWhere it is
Catalog number00000Lines 1 and 2, columns 3–7
ClassificationU (unclassified)Line 1, column 8
International designator26999ALine 1, columns 10–17
Epoch2026-11-23 12:00:00 UTC (day 327.5000 of 2026)Line 1, columns 19–32
Rate of change of mean motion ÷ 20.00010000 rev/day²Line 1, columns 34–43
Drag term (B*)1.8000 × 10^-4Line 1, columns 54–61
Line 1 checksum3, correctLine 1, column 69
Inclination51.6000°Line 2, columns 9–16
Right ascension of the ascending node120.0000°Line 2, columns 18–25
Eccentricity0.0005000Line 2, columns 27–33, decimal point assumed
Argument of perigee90.0000°Line 2, columns 35–42
Mean anomaly270.0000°Line 2, columns 44–51
Mean motion15.50000000 revolutions per dayLine 2, columns 53–63
Revolution number at epoch1Line 2, columns 64–68
Line 2 checksum2, correctLine 2, column 69
The examples are illustrative element sets written for this site, not tracking data; catalog number 00000 is not assigned to any object. The globe draws a simple ellipse from the element values, with the Earth’s rotation frozen. That shows the orbit’s size, shape and orientation. It is not a position prediction: for that, a TLE must be used with the SGP4 model.

Mean elements, made for SGP4

The elements in a TLE are not the instantaneous elements of the previous lesson. They are mean elements, produced by fitting tracking observations with a specific orbit model called SGP4, which averages out periodic variations in its own way.

TLE values give sensible positions only when they are propagated with SGP4, which adds those variations back. Putting them into a two-body formula or a numerical propagator gives errors of kilometers, even at the epoch. SGP4 also returns positions in its own inertial frame, known as TEME (true equator, mean equinox), which is close to but not the same as the standard inertial frames in Module 3.

OMM and the five-digit limit

Fixed columns impose hard limits. The catalog number has five columns, so the largest value is 99,999, and the year has two digits. CelesTrak reports that five-digit catalog numbers ran out in July 2026. Objects cataloged since then have six-digit numbers, and their data cannot be published in the standard TLE format.

The replacement is the Orbit Mean-Elements Message (OMM), part of the Orbit Data Messages standard from the Consultative Committee for Space Data Systems (CCSDS). An OMM carries the same GP data as named fields, such as NORAD_CAT_ID, EPOCH, MEAN_MOTION, ECCENTRICITY and BSTAR. The standard defines XML and key-value text encodings, and data providers also offer JSON and CSV using the same keywords. The epoch is a full timestamp and catalog numbers can have up to nine digits.

The OMM changes the container, not the contents. The values are still mean elements and still require SGP4. New software should read OMM, store catalog numbers in a type wider than five digits, and keep TLE parsing only for legacy inputs.

Parsing line 2

Fixed columns make parsing simple, provided the offsets are exact.

// Illustrative line 2, constructed for this lesson. It is not real tracking data.
const LINE2 = '2 00000  51.6000 120.0000 0005000  90.0000 270.0000 15.50000000    12';

// TLE columns are numbered from 1. slice() takes a 0-based start and an exclusive end.
const field = (line: string, first: number, last: number) => line.slice(first - 1, last).trim();

function tleChecksum(line: string): number {
  let sum = 0;
  for (const ch of line.slice(0, 68)) {
    if (ch >= '0' && ch <= '9') sum += Number(ch);
    else if (ch === '-') sum += 1; // a minus sign counts as 1, everything else as 0
  }
  return sum % 10;
}

function parseLine2(line: string) {
  if (line.length !== 69 || line[0] !== '2') throw new Error('not a TLE line 2');
  if (tleChecksum(line) !== Number(line[68])) throw new Error('checksum mismatch');
  return {
    catalogNumber: Number(field(line, 3, 7)),
    inclinationDeg: Number(field(line, 9, 16)),
    raanDeg: Number(field(line, 18, 25)),
    eccentricity: Number('0.' + field(line, 27, 33)), // implied leading decimal point
    argPerigeeDeg: Number(field(line, 35, 42)),
    meanAnomalyDeg: Number(field(line, 44, 51)),
    meanMotionRevPerDay: Number(field(line, 53, 63)),
    revolutionNumber: Number(field(line, 64, 68)),
  };
}

const elements = parseLine2(LINE2);
console.log(elements);
console.log(`period ${(1440 / elements.meanMotionRevPerDay).toFixed(2)} min`);

Running it prints:

{
  catalogNumber: 0,
  inclinationDeg: 51.6,
  raanDeg: 120,
  eccentricity: 0.0005,
  argPerigeeDeg: 90,
  meanAnomalyDeg: 270,
  meanMotionRevPerDay: 15.5,
  revolutionNumber: 1
}
period 92.90 min

In production, use the parser of an established SGP4 library.

Ephemerides

An ephemeris takes a different approach. It is a table of states over time, where each row holds a timestamp, a position and usually a velocity. The producer runs its own propagator and publishes the results. The consumer only interpolates between rows.

The CCSDS Orbit Ephemeris Message (OEM) is the standard container. It has a header and a metadata block that names the object, the central body, the reference frame, the time system and the time span covered. Rows of epoch, position in kilometers and velocity in kilometers per second follow. Operators exchange ephemerides when accuracy matters or when the trajectory includes maneuvers, which a TLE cannot represent.

The trade is that between a function and a precomputed table. Elements are compact but need the right model. An ephemeris is larger and covers a fixed span, but it needs no model and is as accurate as its producer could make it.

Accuracy and age

GP data is a fit to observations, not a measurement. For low Earth orbits a commonly quoted figure is an error of about a kilometer at the epoch, growing by one to a few kilometers per day. Treat that as typical and not guaranteed. The data carries no statement of its own uncertainty.

Drag makes low orbits hard to predict, and a maneuver invalidates earlier elements. Software should compute the age of the data at the time of use, and warn or refuse beyond a threshold suited to the application. GP data is adequate for visualization and for pointing an antenna with a wide beam. It is not sufficient on its own for precise pointing or collision avoidance decisions.

A practical example: the stale element set

A team runs a pass prediction service for an antenna that tracks a satellite at about 415 km. Station staff report that the satellite is arriving several seconds earlier than predicted.

The developer checks the epoch of the element set in use and finds that it is nine days old. A scheduled job that refreshes the data had been failing without raising an alert. Errors in old elements lie mostly along the track, which shows up as a timing error. At 7.7 km per second, 30 km along the track is about four seconds.

The team makes three changes. The service refuses element sets older than a configured limit. A failed refresh raises an alert, so data freshness is monitored like any other service objective. Ingestion moves from TLE text to OMM, so that objects with six-digit catalog numbers are not silently dropped.

The next lesson covers propagation, the calculation that turns elements at an epoch into a position at any other time.

Key takeaways

  • A TLE is a fixed-width text record holding an epoch, a drag term and six mean elements, with mean motion in revolutions per day standing in for the semi-major axis.
  • TLE elements are mean elements fitted with the SGP4 model. They give sensible answers only when propagated with SGP4.
  • The OMM carries the same data as named fields and removes the five-digit catalog number and two-digit year limits of the TLE. It does not make the data more accurate.
  • An ephemeris is a table of states over time that the consumer interpolates. Whatever the format, check the epoch, because orbit data loses accuracy as it ages.

Knowledge check

Check your understanding. These questions are not graded and you can retry as often as you like.

Question 1 of 3· Select one answerA developer feeds the elements from a TLE into a simple two-body propagator and compares the result with positions from the satellite's GPS receiver. The error is several kilometers even close to the epoch. What is the most likely cause?
Question 2 of 3· Select all that applyA team migrates its ingestion from TLE text to OMM in JSON form. Which statements are correct? Select all that apply.
Question 3 of 3· Select one answerA satellite operator wants to share its predicted trajectory for the next three days, including a planned orbit-raising burn, with a ground station provider. Which data product fits best?

0 of 3 questions answered.

Glossary

Two-line element set (TLE)

A fixed-width text format of two 69-character lines that carries an object's identifiers, an epoch, a drag term and six mean orbital elements for use with the SGP4 propagator.

Epoch

The moment at which a set of orbital elements or a state applies. Predictions are made by propagating forward or backward from it.

Mean elements

Orbital elements from which short-term variations have been averaged out according to a specific model. They must be used with that same model.

B* drag term

A fitted parameter in a TLE or OMM, pronounced B-star, that tells SGP4 how strongly atmospheric drag affects the object.

Orbit Mean-Elements Message (OMM)

A CCSDS message that carries the same mean elements as a TLE as named fields, without the fixed-column limits.

Ephemeris

A table of positions, and usually velocities, at a series of times, from which a consumer interpolates the state at any time within the table.

References and further reading

Finished this lesson?

Loading your progress…

Lesson version 1.0.0.