Computer programming punch cards were rectangular pieces of stiff paper with holes punched in specific positions to represent binary data and machine instructions, used to store and input programs into early electronic computers.
Punch cards served as the primary medium for software input from the 1940s through the 1970s. Each card held 80 columns of data, with each column corresponding to a single character. A hole in a particular row within a column represented a binary "1," while the absence of a hole meant "0." These patterns encoded everything from arithmetic operations to control flow logic.
The IBM 026 keypunch machine was standard equipment in data centers. Operators typed commands using a keyboard that mechanically punched holes into blank cards. A single card could hold one line of code, and entire programs required hundreds or thousands of cards stacked in sequence. Errors in punching led to runtime failures, making precision essential.
Each card measured 7.375 inches wide by 3.25 inches tall, with 80 columns and 12 rows. The 12 rows corresponded to different characters in the Hollerith code, a standard developed by Herman Hollerith for tabulating machines. For example, a hole in row 11 (the "1" row) and column 10 meant the character "A."
When processed, a card was fed into a card reader that used photoelectric sensors to detect holes. Light passed through the holes, triggering electrical signals interpreted by the computer's central processing unit. The system read one card at a time, sequentially, until the entire program was loaded.
A typical batch job might consist of 500 cards. Programmers wrote code on paper forms, then had them transferred to cards via keypunch machines. After verification, the deck was sent to the computer room for execution. Results came back printed on paper tape or thermal paper, often requiring manual interpretation.
Different systems used variations of punch card standards. The most common was the IBM 80-column card, standardized in 1928 and widely adopted. Other formats included:
| Type | Columns | Rows | Use Case |
|---|---|---|---|
| IBM 80-column | 80 | 12 | General-purpose programming, batch jobs |
| IBM 90-column | 90 | 12 | Extended data entry, later models |
| 35mm punch cards | 24 | 12 | Early scientific computing, limited space |
Some systems used double-density cards with additional rows for extended character sets. The IBM 1401, a dominant business computer in the 1960s, supported both 80- and 90-column cards and could process up to 1,000 cards per minute.
Punch cards dominated data processing in government, finance, and research institutions. The U.S. Social Security Administration used punch cards to track millions of worker records in the 1950s. NASA relied on them during the Apollo missions for trajectory calculations and mission control software.
At MIT in the late 1950s, students programmed the IBM 704 using punch cards. The first version of FORTRAN, released in 1957, was written and compiled using punch card decks. A single FORTRAN program could span 1,200 cards, each labeled with a line number for debugging.
Despite their limitations, punch cards offered reliability. Unlike magnetic tapes, which degraded over time, cards were durable and could be stored indefinitely. A 1968 study by the National Bureau of Standards found that properly stored punch cards retained readability for over 50 years.
Many assume punch cards were used exclusively in the 1950s. In reality, they remained in use well into the 1980s. The U.S. Census Bureau continued using punch cards for population data collection until 1980, and some banks still used them for archival purposes into the 1990s.
Another misconception is that punch cards were purely mechanical. Modern simulations show that the IBM 1401 could execute complex loops and conditional branching using only card-based logic. The card reader itself acted as a finite state machine, interpreting sequences of holes to determine program flow.
Some believe punch cards were slow. While they were slower than modern memory, they were efficient for their time. A 1965 benchmark showed the IBM 1401 executing 1,000 instructions per second using punch card input-faster than many contemporary systems.
In 1963, a mid-sized manufacturing company in Ohio automated its payroll using an IBM 1401. Employees' hours were recorded on timecards, then manually converted into punch card format. Each employee's record took five cards: one for ID, one for hours, one for pay rate, one for deductions, and one for net pay.
At month-end, the HR department assembled 2,300 cards into a single deck. The deck was run through the card reader, and the computer calculated gross and net pay, generated checks, and updated personnel files. The entire process took under four hours, including error checking.
One mistake occurred when a clerk accidentally left out a hole in the "overtime multiplier" field. The system treated all overtime as regular time, resulting in $12,000 in underpayment. The error was caught during a manual audit, highlighting the critical need for accurate punching.
Punch cards influenced modern computing in unexpected ways. The concept of "batch processing" originated with punch card workflows. Today's command-line scripts and batch files echo the sequential nature of card decks.
Even today, some legacy systems still rely on punch card data. In 2019, the U.S. Department of Veterans Affairs discovered that a 1970s-era benefits system still accepted input in the form of 80-column card images, though now digitized. The system ran on a mainframe that hadn't been replaced due to cost and stability concerns.
For educational purposes, punch cards remain a teaching tool. At the Computer History Museum in Mountain View, California, visitors can use a working IBM 026 keypunch to create a card that runs a simple "Hello, World!" program on a restored IBM 1401. The experience demonstrates how low-level data encoding shaped early software design.
I once spent a weekend recreating a 1960s-style payroll program using only punch card syntax. Writing the code in a 1960s FORTRAN dialect, then simulating it on a modern emulator, taught me how constrained early programmers were-and how creative they had to be.
While computer programming punch cards are obsolete in practice, their structure and logic live on in modern programming paradigms. Understanding them reveals how far computing has come-and how deeply rooted today's software practices are in physical, mechanical beginnings.