A program is software that tells your computer what to do, one instruction at a time

A program is a set of written instructions that your computer follows in order. When you open an app, launch a game, or run a tool on your computer, you are running a program. The program contains thousands or millions of tiny commands — "add these numbers," "display this image," "wait for the user to click" — that execute one after another. Without programs, your computer would be a blank machine with no way to do anything useful.

Programs are written by humans using programming languages — code that looks like a mix of English and math. A programmer types out these instructions, and then special software translates that code into a form your computer's processor can actually understand and execute. Once translated, the program sits on your hard drive or solid-state drive as a file. When you click an icon or type a command to start it, your computer loads that file into memory and begins running through the instructions.

Key Takeaways

  • A program is a file containing instructions that your computer follows in sequence to perform a task or provide a service.
  • Programs are written in code by programmers and then translated into machine language that your processor can execute.
  • Common types of programs include applications (like web browsers and word processors), operating systems, utilities, and games.
  • When you open a program, your computer loads it from storage into memory and begins running the instructions inside it.
  • Programs can be free or paid, and they run on different operating systems depending on how they were built.

How a program gets from your hard drive into action

When you double-click an icon or type a command to open a program, several things happen in quick succession. Your operating system (Windows, macOS, or Linux) finds the program file on your storage drive and reads it. The file is copied into your computer's RAM — the fast, temporary memory that your processor uses while working. Your processor then begins reading and executing the instructions inside that program, one by one.

This is why programs take a moment to open: your computer is loading the entire program (or at least the parts it needs right away) into RAM before it can start running. Larger programs take longer to load because there are more instructions to move into memory. Once the program is running, it stays in memory until you close it. When you close the program, your computer removes it from RAM and the instructions stop executing.

Different types of programs do different jobs

Programs fall into broad categories based on what they do. Applications (or apps) are programs designed for end users — things like Microsoft Word, Google Chrome, Spotify, or Photoshop. Each one is built to do a specific job: write documents, browse the web, play music, or edit images.

Operating systems are special programs that manage your entire computer. Windows, macOS, and Linux are operating systems. They control how your hardware works, manage your files, run other programs, and handle input from your keyboard and mouse. You interact with the operating system every time you use your computer, even if you do not think of it as a separate program.

Utilities are smaller programs that perform specific maintenance or support tasks — things like antivirus software, file compression tools, or disk cleanup programs. Games are programs designed purely for entertainment, though they often use the same underlying code structures as other software. System software runs in the background to keep your computer functioning, handling tasks like managing power, updating drivers, or scheduling backups.

Programs need an operating system to run

A program written for Windows will not run on a Mac, and a program written for macOS will not run on Windows. This is because each operating system has its own way of managing hardware and memory. When a programmer writes a program, they write it for a specific operating system. The code includes instructions that rely on that operating system to handle certain tasks.

Some programs are written to run on multiple operating systems — these are called cross-platform programs. Google Chrome, for example, runs on Windows, macOS, and Linux. But the programmer had to write or adapt the code separately for each system. This is why you see read options that say "Windows" or "Mac" — you are downloading the version built for your specific operating system.

How programs store and use data

Programs often need to save information so it persists after you close them. When you write a document in Word and save it, the program writes that data to your hard drive as a separate file. When you open the document again, the program reads that file back into memory and displays it. The program itself (the instructions) is separate from the data it creates or uses.

Some programs store data in files you can see and manage — like a document or a photo. Others store data in hidden locations or in databases that the program manages behind the scenes. For example, your email program stores thousands of messages, but you do not see individual files for each one; the program organizes and retrieves them for you. The program is responsible for keeping track of where the data is and how to find it when you need it.

Free programs versus paid programs

Programs can be free or cost money. Free programs like Firefox, VLC Media Player, and LibreOffice are open to anyone and do not require payment. Some free programs are supported by ads; others are maintained by volunteers or organizations. Paid programs like Microsoft Office, Adobe Creative Suite, or specialized software require you to purchase a license before you can use them.

A license is a legal agreement that says you own the right to use the program, but you do not own the code itself. When you buy software, you are usually buying the right to run it on your computer, not the right to modify it or share it. Some programs use a subscription model, where you pay a monthly or yearly fee to keep using them. Others charge a one-time fee. The pricing model depends on how the developer chose to distribute their work.

What happens when a program crashes or stops responding

Sometimes a program encounters an error in its instructions or runs out of memory and stops working. This is called a crash. When a program crashes, it closes suddenly, often without saving your work. If a program stops responding to your clicks and keyboard input, it has become unresponsive — you can usually force it to close through your operating system's task manager (on Windows) or force quit menu (on Mac).

Crashes happen because programmers are human and sometimes make mistakes in their code, or because the program encounters a situation the programmer did not expect. Developers release updates to fix bugs (errors) in their programs. This is why your computer often prompts you to update software — the updates patch problems and add new features. Running the latest version of a program usually means fewer crashes and better performance.

Frequently Asked Questions

What is the difference between a program and an process?

The terms are often used interchangeably. Technically, an process is a type of program — specifically, one designed for end users to accomplish a task. A program is a broader term that includes applications, operating systems, utilities, and any other software. In everyday conversation, most people use "app" and "program" to mean the same thing.

Can I write my own program?

Yes. You can learn a programming language like Python, JavaScript, or C++ and write programs yourself. Many free resources teach programming to beginners. You would write code in a text editor, use a compiler or interpreter to translate it into machine language, and then run it on your computer. Most programmers start by learning one language and building straightforward programs before moving to more complex projects.

Why do programs take up space on my hard drive?

Programs are files, and files take up storage space. A small utility might be a few megabytes, while a large game or professional software can be several gigabytes. The size depends on how many instructions the program contains and whether it includes images, sounds, or other media built into it. You can see how much space a program uses by checking its properties or your storage settings.

What is the difference between a program and a file?

A program is a specific type of file — one that contains executable instructions. Other files, like documents, images, and videos, contain data but are not programs. Your computer treats them differently: it can run a program, but it displays or plays other files using a program. A Word document is a file; Microsoft Word is a program that opens and edits that file.

Do I need to install every program I want to use?

Most programs need to be installed before you can use them. Installation copies the program files to your hard drive and sets up any configurations it needs. Some programs are portable — you can read them and run them without installation — but these are less common. Web-based programs like Gmail or Google Docs do not need installation; they run in your browser.