Early access is open. Free sample datasets are live now. Download a sample

Learn

Futures Contract Months and Symbols

6 min read · Updated 19 November 2026 · By the marketdata.co data team

ESZ6, CLF7, ZNH7. Futures symbols look like noise until you know the pattern, and then they tell you exactly which contract you are looking at. Getting this wrong means pulling the wrong expiry, which is one of the quietest ways to wreck a futures backtest.

How it works

How a futures symbol is built

A futures symbol has three parts: the root, the month code and the year.

  • Root: the product. ES is the E-mini S&P 500, NQ the E-mini Nasdaq-100, CL WTI crude oil, GC gold, ZN the 10-year Treasury note.
  • Month code: one letter for the delivery month.
  • Year: usually the last digit, sometimes two digits. Z6 means December 2026.

The twelve month codes:

Month Code Month Code
January F July N
February G August Q
March H September U
April J October V
May K November X
June M December Z

The letters skip a few that are easy to confuse with numbers or each other (no I or O, for example). Most people learn the quarterly ones first, H, M, U and Z, because equity index and interest rate futures list on that cycle.

Worked example

ESZ6 reads as E-mini S&P 500, December, 2026. Equity index futures on CME expire on the third Friday of the contract month, so ESZ6 expires on Friday 18 December 2026. ESH7 is the next quarterly contract, March 2027.

Crude oil works differently. CL lists every month, and each contract stops trading during the month before its delivery month. So CLF7 (January 2027) stops trading in December 2026. The month code is the delivery month, not the month it trades most.

The one-digit year repeats every ten years, so ESZ6 could in theory mean 2016 or 2026. Data vendors resolve this from context or use two digits. Our API uses the one-digit form for live and recent contracts and returns contract_month and expiration_date on every record so there's no ambiguity.

Code

Parse symbols in Python

"""Example: parse futures symbols and find the expiry from reference data."""
import re
import pandas as pd

MONTHS = dict(zip("FGHJKMNQUVXZ", range(1, 13)))

def parse(symbol, decade=2020):
    m = re.fullmatch(r"([A-Z0-9]+?)([FGHJKMNQUVXZ])(\d{1,2})", symbol)
    if not m:
        raise ValueError(f"not a futures symbol: {symbol}")
    root, code, yr = m.groups()
    year = decade + int(yr) if len(yr) == 1 else 2000 + int(yr)
    return {"root": root, "month": MONTHS[code], "year": year}

for s in ["ESZ6", "CLF7", "ZNH7", "GCG27"]:
    print(s, parse(s))

specs = pd.read_csv("futures_contracts.csv", parse_dates=["expiration_date"])
active = specs[(specs["root"] == "ES") & specs["is_active"]]
print(active[["symbol", "contract_month", "first_notice_date",
              "expiration_date", "days_to_expiry"]].sort_values("expiration_date"))

The parser handles both one- and two-digit years. Notice the lazy match on the root: GCG27 parses as root GC, month G (February), year 2027. The second part reads a contract reference file with fields from our FUT-REFERENCE schema and lists live ES contracts in expiry order. Its first row is the front month; days_to_expiry tells you how close the roll is.

Watch out

Common mistakes

Assuming every product lists every month. ES lists quarterly, CL lists monthly, and gold's active months are a subset. Asking for ESF7 returns nothing because there is no such contract.

Using the month code as the trading month. Many commodity contracts stop trading before their delivery month. If you roll by the month code alone, you hold an expired or delivering contract.

Ignoring the decade. A historical file with Z6 rows from 2016 and 2026 will merge them if you parse with one fixed decade. Use the expiration date from reference data instead of trusting the letter and digit alone.

Mixing vendor symbol formats. Some platforms add a slash, exchange suffix, or use two-digit years. Map everything to one format at load time.

Details

Get the data

Contract reference data for every root. What you'll get: symbol, root, contract_month, first_trade_date, last_trade_date, first_notice_date, expiration_date, tick_size, tick_value and contract_multiplier, including expired contracts.

  • Futures contract specs, planned for every plan including Free, in early access
  • A free expiry calendar CSV is planned. Until then, a sample file is available on request.

FAQ

Frequently asked questions

What are the futures month codes?

They are single letters for each delivery month: F (Jan), G (Feb), H (Mar), J (Apr), K (May), M (Jun), N (Jul), Q (Aug), U (Sep), V (Oct), X (Nov), Z (Dec). Each letter follows the root symbol and comes before the year digit.

What does ESZ6 mean?

It is the E-mini S&P 500 future for December 2026. ES is the root, Z is December and 6 is the year.

Which months does the E-mini S&P 500 trade?

ES lists quarterly contracts in March, June, September and December, codes H, M, U and Z. Most volume sits in the nearest one until the roll about a week before expiry.

Why do some symbols use two-digit years?

One digit repeats every ten years, which causes clashes in long histories. Some vendors and exchanges use two digits to remove the ambiguity.

Keep reading