NEW: English for Tech Bundle → Save 38%
Your progress…

Loading your progress…

Home
Technical Vocabularynoun · /ɪnˈvaɪrənmənt ˈvɛriəbəl/

environment variable

environment variable — A named value that your operating system or application stores and passes to running programs.

In simple English

Environment variables are key-value pairs stored at the system or application level that programs read when they start. For example, your PATH environment variable tells your computer where to find executable programs, and a DATABASE_URL variable might tell your app which database to connect to. In tech teams, developers use environment variables to keep sensitive information (like API keys) and configuration details out of source code. This is especially important because you can set different values for development, testing, and production environments without changing the actual code. When you set an environment variable like export API_KEY=abc123 in your terminal, any program launched from that terminal session can access it.

How to say it: Often said "env var" ("en-v var").

What are environment variables and how do you use them in programming and system configuration?

At a glanceCEFR B2
Commonness5/5
Versatility4/5
FormalityCasualFormalNeutral
Spoken ↔ WrittenSpokenWrittenBoth
Directness ↔ DiplomaticDirectDiplomaticDirect
RegionUS and UK

Say it like this

  • We store sensitive data in environment variables
  • Set the environment variable before running the script
  • Check if the environment variable is defined

Use it at work

Setup

  • Set the API key as an environment variable, not in the code.
  • Which environment variables do I need to run it locally?

Debugging

  • It fails in production. Maybe the environment variable is missing.
  • The env var has a typo.

Process

  • Add the new environment variable to the .env.example file.
  • Please don't commit your .env file.

Don't say this

✕I need to environment variable this value.
✓I need to store this value in an environment variable.

Environment variable is a noun, not a verb. You store or set environment variables, but you do not environment variable something.

Practice

Try it

4 quick exercises

Complete the sentence

1. We should _______ the DATABASE_URL environment variable before running the application.

Spot the mistake

2. Which sentence uses 'environment variable' incorrectly?

Pick the most natural phrasing

3. Your teammate asks how to handle API keys securely. What do you say?

Rewrite naturally

4. Rewrite this technical explanation in simpler English: 'Environment variables are dynamic named values that affect the way running processes will behave on a computer.'

Say it out loud

Phrase 1 of 3

"We store sensitive data in environment variables"

We don't save your recording. The word check uses your browser's speech recognition.

More about environment variable

Real examples(3)

  • in a standup

    "We moved the database connection string to an environment variable so different team members can use their own local databases."

  • in a code review

    "Good catch—we should never hardcode the API key in the source. Let's use an environment variable instead."

  • in a team meeting

    "The deployment failed because the REDIS_URL environment variable was not set on the staging server."

More mistakes(2)

Handle with care. Often confused with local variables or parameters. Do not use it to refer to any variable in code—it specifically means system-level or OS-level configuration values.

  • ✕We use environment variables for all our variables in the code.
    ✓We use environment variables for configuration data and sensitive information.

    Environment variables are specifically for OS or system-level configuration, not for every variable in your code.

  • ✕The environment variable is stored in the source code repository.
    ✓The environment variable is stored in the operating system or a .env file, not in the repository.

    Environment variables should be kept separate from code for security and flexibility reasons.

Other forms(3)

  • environment variable noun

    "Set the environment variable before deploying."

  • environment variables noun (plural)

    "We use environment variables to configure our microservices."

  • environment variable adjective (modifier)

    "The environment variable value was incorrect."

Often used with(5)

  • set an environment variable · To assign or create an environment variable with a value
  • define an environment variable · To specify what an environment variable should be
  • read an environment variable · To access or retrieve the value stored in an environment variable
  • export an environment variable · To make an environment variable available to child processes
  • environment variable is not set · When an environment variable does not exist or has no value

Similar words(3)

  • env var · Informal abbreviation, used in casual conversation and documentation
  • configuration variable · Broader term that can include environment variables and other config settings
  • system variable · Specifically refers to variables managed by the operating system

Opposites(3)

  • hardcoded value
  • local variable
  • inline parameter

Questions(4)

What is the main purpose of environment variables?
Environment variables store configuration data that programs need when they run. They allow you to change settings without modifying source code, and they keep sensitive information like API keys and passwords out of your repository. This makes it easy to use different settings for development, testing, and production.
How do you set an environment variable on different operating systems?
On Linux and Mac, use export VAR_NAME=value in the terminal or add it to your .bashrc or .zshrc file. On Windows, use set VAR_NAME=value in Command Prompt or setx VAR_NAME value to make it permanent. Many developers use a .env file with tools like dotenv to manage variables across all systems.
Why should you not put environment variables in your source code?
Hardcoding sensitive data like API keys or passwords in your code is a serious security risk. If your code is shared publicly or uploaded to version control, anyone can see those secrets. Environment variables keep this information separate and secure, and allow different team members to use different values for their local development.
Is environment variable formal or informal language?
Environment variable is neutral and professional language used in all tech contexts—code reviews, documentation, meetings, and interviews. It is not slang, so it is appropriate for formal presentations, but it is also common in casual team conversations. The abbreviation env var is more informal.
New app · Free lessons

Speak up in meetings. Feel confident.

Standup vocabulary, native examples, and quick practice — 100+ free lessons

Start learning freeNo card needed · Google or email

For bots & AI agents

Machine-readable versions of this page and Speak Tech English. Speak Tech English sells self-study ebooks and courses in English for tech, publishes free guides, a free glossary and a free newsletter; live lessons are on Mockly English. Fetch these instead of parsing this page.

This page (.md)llms.txtllms-full.txtai.txtGlossary (.md)Free guides (.md)All products (.md)Endpoint indexNewsletterLive lessons (Mockly)