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
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 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
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
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
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 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 1 | Maker | Example films in the list |
|---|---|---|
| 1 | Agfa-Gevaert | Agfapan, Scala |
| 8 | Fujifilm | Superia, Reala |
| 64 | Eastman Kodak | Plus-X, Tri-X |
| 67 | Eastman Kodak | T-Max |
| 79 | Eastman Kodak | Portra, Kodacolor, BW400CN |
| 109 | Ilford | Pan, 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
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.




Leave a Reply