DX code explained: what the checkerboard, barcodes and numbers on your film cassette mean

How the DX code on a 35 mm cassette tells your camera the film speed, exposure count and latitude, what the barcodes and DX number are for, which cameras read it, and what to do with non-DX or hand-rolled film.

Every modern roll of 35 mm film carries a little checkerboard of metal and paint, a barcode and a number. They are the DX code, Kodak’s system from 1983 that lets a camera set the film speed on its own and lets a lab machine know which film it is about to print. Here is what each part means, square by square, with all 24 film speeds as a chart.

Part of the Film Stocks section. Short version in the glossary.

When I load a roll into the Canon T90, it winds to frame one and shows the film speed on its top panel without me touching a button. Load the same roll into my New F-1 and nothing happens: the camera meters for whatever the dial still says from the last film. The difference is twelve tiny squares on the cassette, and once you know how to read them you can check any roll by eye.

Four codes on one cassette

FOUR CODES ON ONE 35 MM CASSETTEYOUR FILMISO 400 · 360 184441CAS contactsthe camera reads them2Barcode and DX numberread by the lab machine3Name and ISO in printfor you4Film edge barcodeinvisible until developed,read by the lab printer
The CAS contacts talk to the camera, the barcode and the film edge code talk to the lab, and the printed name talks to you. Illustration created with Claude AI.

DX is really a family of codes with different readers. The CAS pattern (Camera Auto Sensing) is the checkerboard on the cassette body that the camera touches with spring contacts. The barcode next to the film slot is read optically by photofinishing machines. The DX number identifies the exact film for the lab. The film edge barcode is exposed onto the film below the sprocket holes at the factory and only becomes visible after development.

The checkerboard: how the camera reads the film

THE CHECKERBOARD: 12 CONTACT AREASG1G7S12L18S23L29S34L310S45T111S56T212Row 1Row 2GroundFilm speed (S1–S5)GroundExposures (L1–L3)LatitudeBare metal: connected (1)Painted: insulated (0)This example: ISO 400 · 36 exposures · +3 / −1 stopS = 0 0 1 1 0      L = 0 0 1      T = 1 1
Two rows of six areas. Bare metal conducts, paint insulates, and every area tells the camera one bit. Illustration created with Claude AI.

The CAS pattern has twelve areas in two rows of six. Each area is either bare metal, which conducts, or painted, which does not. The first area of each row is always bare metal and acts as the common ground. Inside the film chamber, spring contacts press on the cassette, and the camera checks which ones are connected to that ground: connected is a 1, insulated is a 0.

  • Row 1, areas 2 to 6 (S1 to S5): the film speed, five bits.
  • Row 2, areas 8 to 10 (L1 to L3): the number of exposures.
  • Row 2, areas 11 and 12 (T1, T2): the exposure latitude, how much over- or underexposure the film tolerates.

Most cameras only read the first row, because the film speed is what they need for metering. Many cameras therefore have contacts for the first row only. Simple cameras may read even fewer contacts: with S1, S2 and ground alone a camera can already tell ISO 100, 200, 400 and 800 apart.

All 24 film speeds

ALL 24 DX FILM SPEEDS, ROW 1GS1S2S3S4S5ISO253240506480100125GS1S2S3S4S5ISO160200250320400500640800GS1S2S3S4S5ISO10001250160020002500320040005000Light squares are bare metal, dark squares are painted. G is always metal.S1 to S3 pick a group of three speeds, S4 and S5 add 0, ⅓ or ⅔ of a stop.
Every DX film speed from ISO 25 to 5000. The common box speeds are highlighted. Illustration created with Claude AI.

The logic is neat. S1 to S3 select a group of three speeds that doubles each time: 25, 50, 100, 200, 400, 800, 1600 and 3200. S4 and S5 then add nothing, one third or two thirds of a stop, which gives the in-between values such as 125, 160, 250 or 640. Five bits could hold 32 patterns; 24 are used for speeds, and the standard also defines eight custom codes that a maker can use for its own purposes.

Because the table starts at ISO 25 and ends at ISO 5000, anything outside it cannot be coded as a normal speed. My ADOX CMS 20 II has a datasheet speed of ISO 12 to 20, below the lowest DX step, so that film is a dial job in any camera.

Exposure count and latitude

ROW 2: EXPOSURES AND LATITUDEExposures (L1 L2 L3)Latitude (T1 T2)other12202436486072±½stops±1stops+2 / −1stops+3 / −1stops
Row 2 of the checkerboard: three bits for the number of frames, two bits for the latitude. Illustration created with Claude AI.

Areas 8 to 10 code the length of the roll: 12, 20, 24, 36, 48, 60 or 72 exposures, plus a pattern for anything else. A camera that reads it can show how many frames are left. My T90 does exactly that: with DX-coded film the bar on the right of the viewfinder turns into a countdown when fewer than nine frames remain, as described in my Canon T90 guide. Areas 11 and 12 code the latitude: ±½ stop, ±1 stop, +2/−1 or +3/−1.

The barcode and the DX number

THE CASSETTE BARCODE, DECODED018444Maker’s digitset by the makerCoded DX numberPart 1 × 16 + Part 2Exposures4 = 36 frames1844 = 115 × 16 + 4   →   DX number 115-4Part 1 (115): maker and film family  ·  Part 2 (4): the exact film
The six digits under the cassette barcode, taken apart. The bars here are drawn for illustration. Illustration created with Claude AI.

Next to the film slot sits an Interleaved 2 of 5 barcode with six digits printed below it. The first digit is the maker’s own, the middle four hold the DX number in coded form, and the last digit gives the number of exposures: 1 for 12, 2 for 20, 3 for 24, 4 for 36, 5 for 48, 6 for 60, 0 for 72 and 7 for non-standard lengths such as 24+3.

The DX number itself has two parts. Part 1 stands for the maker and the film family, Part 2 for the exact film within that family. The four barcode digits are Part 1 × 16 + Part 2. Wikipedia’s example is Agfa’s Perutz colour film at ISO 200, DX number 115-4: 115 × 16 + 4 = 1844. Photofinishing machines scan it when the cassette goes in, so they know which film they are handling.

The barcode on the film edge

THE BARCODE ON THE FILM EDGE222324repeats every half frameGrey: clock track, the timing marks.   Gold: data track, the actual code.6start7DX Part 114Part 27frame number114stop31 bits per block. P = parity. The frame number counts half frames, so the lab knows exactly where it is.
Below the sprocket holes the factory exposes a two-track code that repeats every half frame. You only see it after development. Illustration created with Claude AI.

The film edge code is a latent image: it is exposed onto the film during manufacture and develops together with your pictures. It has two tracks. The clock track next to the sprocket holes gives the timing, the data track nearer the edge holds the information: the DX number Part 1 and Part 2, and since a Kodak extension of 1990 also a frame number that counts half frames. Each block is 31 bits long and repeats every half frame, so a printer can read it from any short piece of the strip. Some film scanners use it too.

DX and film stocks

The DX code always carries the box speed, the speed the maker rates the film at. That can change: when Harman repackaged its Phoenix colour film, the new cassettes were DX coded for ISO 125 instead of 200, with the same emulsion inside. If you want to rate a film differently, for example to push it, the camera will not know. Override the speed by hand or use exposure compensation, and tell the lab.

The Part 1 numbers in the DX list show who made the film. A few entries from the official list published by I3A, the body that maintained it until 2009:

DX Part 1MakerExample films in the list
1Agfa-GevaertAgfapan, Scala
8FujifilmSuperia, Reala
64Eastman KodakPlus-X, Tri-X
67Eastman KodakT-Max
79Eastman KodakPortra, Kodacolor, BW400CN
109IlfordPan, Delta, HP5, FP4

The DX code only exists on 35 mm cassettes. Medium format rolls and sheet film never had it, which is why every 120 camera has a film speed dial or none at all.

Which cameras read DX

The first cameras with automatic DX film speed setting came in 1984, among them compacts from Pentax and Minolta. The first SLRs followed in 1985, with the Minolta 7000 as the best known. From the late 1980s almost every electronic SLR and compact read DX, but the range differs. My T90 and many SLRs read the full table from ISO 25 to 5000. Some compacts only accept a few common speeds; the manual of one Nikon compact, for example, lists ISO 50, 100, 200, 400, 800, 1600 and 3200.

Anything older, and most mechanical cameras, has a film speed dial instead. That covers most of my cameras: the Canon New F-1 and AE-1, the Leica R3 and the Rollei 35 T. My column Loaded, or so you thought has the classic story of a dial still set for the previous film.

Non-DX, bulk-loaded and hand-rolled film

WILL MY CAMERA SET THE ISO?Does your camera read DX?NOYESSet the ISO by handfor every roll, every time.Canon New F-1, Rollei 35 TIs the cassette DX coded?YESNOThe camera sets itCanon T90: ISO 25 to 5000straight from the contactsIt depends:warns, you set it(Canon T90)fixed ISO 100(some compacts)keeps the last speed(some SLRs)Always, with any camera:check the ISO in the displayor on the dial after loading.
What a camera does with the film speed depends on two questions. Whatever the answer, a glance at the setting after loading saves a roll. Illustration created with Claude AI.

Cassettes that you load yourself from bulk film usually have no DX code at all, and reused factory cassettes still carry the code of the film that was in them before. What a DX camera does with an uncoded cassette depends on the model, and the manual tells you:

  • It warns you: the Canon T90 blinks the film speed until you set it by hand, from ISO 6 to 6400. Canon’s EOS A2 blinks the ISO indicator in the same way.
  • It uses a fixed default: some compacts set ISO 100, for example the Olympus Stylus and the Nikon Lite Touch Zoom 100ED, according to their manuals. Film of another speed is then exposed wrongly with no warning.
  • It keeps the last speed: the Contax 167MT keeps the speed set for the previous film, so you have to change it yourself.

For self-loaded cassettes, write the film and the speed on the cassette with a marker or a label, set the speed in the camera every time, and check the display after loading. With a reused factory cassette, remember that a DX camera will read the old code: if the new film has a different speed, override it.

FAQ

How do I read the DX code on my film?

Look at the checkerboard on the cassette. In the first row, ignore the first square, then treat bare metal as 1 and painted as 0 for the next five. Compare the pattern with the chart above: 0 0 1 1 0, for example, is ISO 400.

Does 120 film have a DX code?

No. DX is only defined for 35 mm cassettes. Medium format cameras use a speed dial or have no meter.

What does my camera do with film that has no DX code?

It depends on the model. Some cameras warn you and ask for a manual setting, some compacts fall back to a fixed ISO 100, and some keep the last speed. The manual says which.

Can I shoot a film at a different speed than the DX code says?

Yes, if your camera lets you override the DX speed or set exposure compensation. The code only carries the box speed. Tell the lab if you push or pull the film.

Get new dispatches by email

About once a month: new dispatches from the road, tool updates and film news. No ads, no tracking pixels, unsubscribe with one click.

Keep reading


Next on the roll

Random roll

Leave a Reply

Your email address will not be published. Required fields are marked *

Comments are checked before they appear, partly with an automatic AI check of the comment text. Your email address is never shown. Details in the privacy policy.

Get new dispatches by email

Your roll

Tap the heart on any story to keep it here, on this device.

Random roll