In Excel: click the chart, open the ➕ Chart Elements button and tick Axis Titles — then click each placeholder and type the measure and its unit.
On this page7
Click anywhere on the chart so the three floating buttons appear at its right edge.
Click ➕ Chart Elements and tick Axis Titles; expand it to choose Primary Horizontal, Primary Vertical or both.
Click each placeholder title and type the measure plus its unit — or type = in the formula bar and click a cell to bind the title to a live cell.
To fix the tick values, use Chart Design ▸ Select Data ▸ Edit under Horizontal (Category) Axis Labels and select the label range.
Right-click an axis ▸ Format Axis to rotate the text or change the number format if long labels overlap.
What this does
Two different things share the word "label". Axis *titles* are the one-line captions naming what an axis measures ("Revenue (€000)"); axis *labels* are the tick values along the axis, which Excel takes from your category range. You add the first from Chart Elements and change the second by re-pointing the chart at the right range with Select Data ▸ Horizontal (Category) Axis Labels ▸ Edit. Before you run it on a workbook other people depend on, try it on a copy or a few rows first. Undo only reaches back through the current session, so a quick trial run is the cheapest way to see exactly what will change before the file is saved and shared. Treat “add x and y axis labels in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected axis shows up while it is still harmless. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That turns a visual that makes the number obvious at a glance into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
A bar chart of monthly revenue shows 1–12 along the bottom because the month names in A2:A13 were left out of the selection. Click the chart ▸ Chart Design ▸ Select Data ▸ Edit under Horizontal (Category) Axis Labels ▸ select A2:A13 ▸ OK, and the ticks read Jan…Dec. Then tick Chart Elements ▸ Axis Titles and type "Revenue (€000)" on the vertical axis. An unlabelled axis forces the reader to guess the unit, and a chart that has to be explained out loud does not survive being pasted into a deck or an email. If this is something you do often, add the command to the Quick Access Toolbar (right-click it on the ribbon and choose Add to Quick Access Toolbar) or learn its shortcut, so next time it is one click instead of a hunt through the menus.
In Google Sheets
This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. If you take one thing from this page on “add x and y axis labels in excel”, make it the order of checks rather than the individual clicks: confirm what is selected, apply the step, and look at the result before moving on. That small routine is what keeps Excel work predictable when the same task comes back in a slightly different workbook.
Common mistakes
- Naming the measure but omitting the unit or scale, which makes "Revenue: 412" unreadable.
- Typing the tick values by hand instead of pointing at the label range, so they stop updating when the data changes.
- Confusing axis titles with the chart title and ending up with the same words twice.
- Leaving 45° rotated labels that overlap on a narrow chart when shortening the category text would fix it.
Frequently asked questions
How do I add x and y axis labels in Excel?
Select the chart, click the ➕ Chart Elements button, tick Axis Titles, then expand it and choose Primary Horizontal and Primary Vertical. Click each placeholder and type the text.
Why does my x-axis show 1, 2, 3 instead of my categories?
The category range was not included in the chart data. Use Chart Design ▸ Select Data ▸ Edit under Horizontal (Category) Axis Labels and select the cells holding the names.
Can an axis title update automatically?
Yes. Click the axis title, type = in the formula bar, click the cell that holds the text and press Enter. The title then follows that cell.
Where are Chart Elements on Mac?
Use the Chart Design tab ▸ Add Chart Element ▸ Axis Titles; the floating ➕ button is Windows-only.
Other ways people ask this
This is also commonly searched as “how to add x axis labels in excel”, “how to add y axis label in excel”, “graph excel x and y axis” and “how to name x and y axis in excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.
Why do people search for this in so many different ways?
Because the same task has many names. “how to add x axis labels in excel”, “how to add y axis label in excel”, “graph excel x and y axis” all point at the one operation explained on this page, which is why they all lead here.