Technology and Gadgets · Computers
What Is a Computer? What It Does, How It Works and the Main Types
The short answer
A computer is a machine that takes in data and processes it by following a program, a sequence of instructions [1]. Being able to run different programs is what makes it so versatile: the same device can write documents, play video or crunch numbers. Your smartphone, smart TV and car's control units are computers too.
What is a computer, in plain English?
A computer is a machine that takes in data, processes it by following instructions and gives you a result. One clear technical definition comes from NIST, the US standards agency: a device that accepts digital data and manipulates the information based on a program, or sequence of instructions for how the data is to be processed [1].
The key word is program. A blender always does the same thing; a computer does whatever its program tells it to. Swap the program and the same device becomes a typewriter, a video player, a GPS navigator or a cash register. That flexibility is what sets it apart from a simple adding machine.
Here's the part that surprises a lot of people: the most common computer in American homes isn't a PC. In 2021, 90% of US households had at least one smartphone, while 81% had a desktop or laptop computer, and 95% had at least one type of computer of any kind [2]. The phone in your pocket is a complete computer, just a very small one. For more on phone ownership, see how many people own smartphones.
How does a computer work, without the jargon?
Every computer, from a laptop to a "smart" washing machine, runs through the same four-step cycle:
- It takes in data (input): a key press, a tap on the screen, a photo from the camera, a signal from a sensor.
- It processes the data: the processor carries out the program's instructions one after another, at very high speed.
- It stores the data: it keeps what it needs right now close at hand (working memory) and saves files and programs for the long term (storage).
- It gives back a result (output): an image on the screen, a sound, a printed page, a motor that starts.
Behind the scenes, everything is turned into numbers: letters, colors and sounds become strings of 0s and 1s that the circuits can handle. You never see this, because the operating system (Windows, macOS, Android, iOS, Linux) sits between you and the hardware, acting as the program that manages all the others.
What are the main parts of a computer?
When you read the spec sheet for a PC or a phone, the same items keep coming up. Here's what they actually mean:
| Part | What it does | An everyday comparison |
|---|---|---|
| Processor (CPU) | Carries out program instructions | The cook following the recipe |
| Memory (RAM) | Holds the data in use right now; it empties when you power off | The kitchen counter: the bigger it is, the more dishes you can prep at once |
| Storage (SSD or hard drive) | Keeps files, photos and programs even when the computer is off | The pantry |
| Graphics processor (GPU) | Draws images; today it also speeds up artificial intelligence workloads | A sous-chef who specializes in plating |
| Motherboard | Connects all the parts together | The kitchen itself, with its wiring and plumbing |
| Peripherals | Keyboard, mouse, screen, camera, speakers | The doors where ingredients come in and plates go out |
If you want to dig into the two parts people ask about most, there are dedicated explainers on the central processing unit (CPU) and what an SSD is.
One thing worth knowing: hardware is everything you can touch (the parts above), and software is the programs. Neither one is any use without the other.
What types of computers are there?
Far more than most people realize. Here are the main ones:
| Type | Examples | Best for |
|---|---|---|
| Desktop | Tower PCs, all-in-ones | Office work, graphics, gaming; usually easier to repair and upgrade |
| Laptop | Notebooks, ultrabooks, Chromebooks | Work and school on the go, with a real keyboard |
| Tablet and smartphone | iPad, Android phones, iPhone | Messaging, photos, web, apps; the most personal computer you own |
| Embedded | Cars, washing machines, thermostats, smart TVs, routers, ATMs, traffic lights | One specific job, often without you noticing |
| Server | The machines behind websites, email and the cloud | Working for other computers, around the clock |
| Supercomputer | Systems at national labs, research centers and industry | Weather, climate, drug design, scientific simulations |
Embedded computers are everywhere, and you often can't even see them. Their program (the firmware) is usually designed for one task and changes little over time, but many now update over the internet: your smart TV or router gets updates much like a PC does. Read more in what embedded software is and what a desktop computer is.
How do you find out what computer you have (and whether it's enough)?
Before you buy a program, a game or a new computer, it helps to know what you already have. It takes a few clicks:
- On Windows: right-click Start, choose Settings, then System and About. Under Device specifications you'll see the processor type, the RAM installed and whether Windows is 32-bit or 64-bit [3].
- On a Mac: open the Apple menu, choose System Settings, click General in the sidebar, then About. There you'll find the chip (or processor), memory and macOS version [4].
- Compare those details with the requirements of the software you want, usually listed on the maker's website.
A worked example: to install Windows 11, Microsoft requires at least a 1 GHz or faster processor with 2 or more cores on a compatible 64-bit processor, 4 GB of RAM and 64 GB of storage, plus a TPM 2.0 security chip [5]. Those are minimums: the system will start, but a bit of headroom helps once you have lots of apps open. If your PC says "32-bit", the guide on the difference between 32-bit and 64-bit operating systems will help.
Where did today's computer come from?
The first electronic computers filled entire rooms. ENIAC, announced at the University of Pennsylvania on February 14, 1946, occupied a room 30 by 50 feet (about 9 by 15 m) and weighed 30 tons [7], roughly 27 metric tons (30 × 907 kg ≈ 27,200 kg). A ballistics calculation that took 12 hours on a hand calculator, according to Penn [7], or about 20 hours for a skilled person with a desk calculator, according to a 1961 account [6], took ENIAC 30 seconds [6][7]. Once operational, it was run by a team of six women, among the very first programmers [7], and each program was set up by hand with switches and cable connections [6].
It was also a power hog: almost 200 kilowatts [6]. The average US residential customer bought 10,791 kWh of electricity in 2022 [8]. Spread over the 8,760 hours in a year, that's about 1.23 kW on average (10,791 ÷ 8,760), so ENIAC drew as much as roughly 160 typical American homes (200 ÷ 1.23 ≈ 162).
The shift toward the personal computer came with the microprocessor: an entire processor on a single chip. Intel calls its 4004, a general-purpose chip announced on November 15, 1971, the first programmable microprocessor; it contained 2,300 transistors and was designed for a Japanese desktop calculator, the Busicom 141-PF [9]. If you're curious about what came next, read what a microprocessor is.
For the curious: how much have computers grown?
Comparing machines from such different eras is never perfect, because the kind of operation being measured changes. But the orders of magnitude speak for themselves.
| Machine | Year | Figure |
|---|---|---|
| ENIAC | 1946 | One addition every 200 microseconds [6], so 1 ÷ 0.0002 s = 5,000 additions per second |
| Intel 4004 | 1971 | 2,300 transistors [9] |
| Apple M4 | 2024 | 28 billion transistors [10]: 28,000,000,000 ÷ 2,300 ≈ 12 million times the 4004 |
| LineShine (China), No. 1 on the TOP500 list | June 2026 | 2,198.4 petaflop/s, about 2.2 quintillion floating-point operations per second [11] |
| El Capitan (Lawrence Livermore National Laboratory, California), No. 2 | June 2026 | 1,809 petaflop/s [11] |
The rough math: 2.2 × 1018 ÷ 5 × 103 ≈ 4.4 × 1014. In one second, the fastest supercomputer on the June 2026 list does what would have taken ENIAC, very roughly, 4.4 × 1014 seconds: divided by the roughly 31.6 million seconds in a year, that's close to 14 million years. That's why the old line that computers do "millions of calculations per second" now undersells them: the systems at the top of the list reach or pass a quintillion operations per second (an exaflop), and five systems on the June 2026 list hit at least one exaflop [11]. More detail in what a supercomputer is.
Frequently asked questions
Is a smartphone really a computer?
Yes. It has a processor, working memory, storage and an operating system, and you can install new programs on it. In US homes it's actually the most common computer: in 2021, 90% of households had at least one smartphone, compared with 81% that had a desktop or laptop [2].
How much RAM does a computer need today?
It depends on what you do and which operating system you run. Microsoft lists 4 GB of RAM and 64 GB of storage as the minimum for Windows 11 [5], but a minimum gets the system running, not working comfortably with lots of browser tabs open. Many people choose extra headroom for everyday use.
Who invented the computer?
There's no single inventor: the computer grew out of many ideas and machines. Two milestones often cited are ENIAC, announced at the University of Pennsylvania on February 14, 1946 [7], and the Intel 4004, announced on November 15, 1971, which Intel describes as the first programmable microprocessor [9].
Is a calculator a computer?
A basic calculator only carries out the operations you key in, one at a time, and you can't give it a new program, so it usually isn't called a computer. Programmable scientific and graphing calculators, on the other hand, accept sequences of instructions and are small, specialized computers.
What's the difference between a computer and a server?
Not much, at heart: a server is a computer that does work for other computers, such as hosting a website, email or a company's files. It's usually built to run day and night and often has no screen or keyboard attached, but it's made of the same kinds of parts as a PC.
Sources
- Glossary: computer (from NIST SP 800-34 Rev. 1). NIST Computer Security Resource Center
- Computer and Internet Use in the United States: 2021 (ACS-56). U.S. Census Bureau
- Find information about your Windows device. Microsoft Support
- Change About settings on Mac. Apple Support
- Windows 11 specs and system requirements. Microsoft
- The ENIAC Story (M. H. Weik, Ordnance, January-February 1961). U.S. Army Research Laboratory
- Celebrating Penn Engineering History: ENIAC. Penn Engineering, University of Pennsylvania
- How much electricity does an American home use?. U.S. Energy Information Administration
- The First Programmable Microprocessor: The 4004 (1971). Intel
- Apple introduces M4 chip (May 2024). Apple Newsroom
- TOP500 List, June 2026. TOP500