> ## Content Index
> Fetch the complete content index at: https://itsfoss.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Show Battery Percentage in Ubuntu Linux
- URL: https://itsfoss.com/display-battery-ubuntu/
- Published: 2017-11-02T22:03:39.000Z
- Updated: 2025-03-20T04:20:46.000Z
- Description: This quick tip shows you how to display battery percentage in Ubuntu that uses the GNOME desktop environment.
- Author: Abhishek Prakash
- Tags: Ubuntu

It is essential to keep an eye on the battery percentage while using Ubuntu on a laptop. You don’t want to get the notification about low battery at odd or uncomfortable timing. 

The good thing is that you can enable battery percentage on your Ubuntu system running the [GNOME desktop environment](https://www.gnome.org/?ref=itsfoss.com).

This feature is now available in distributions using [GNOME 3.38](https://itsfoss.com/gnome-3-38-release/) or later, such as in the case of Ubuntu 20.10+. But in distributions using an older version of GNOME such as Ubuntu 20.04 and 18.04, which are still under extended support, you don’t get this feature. Therefore, you’ll have to use a dedicated tool like GNOME Tweaks.

First, let’s see how to show the battery percentage in Ubuntu 20.10+, where we have this feature native. And then I’ll show you how to do this in Ubuntu 20.04 and older versions.

## Display battery percentage in newer Ubuntu versions

First open the Ubuntu Settings app and go to the **Power** section. Here, enable the "Show Battery Percentage" toggle button.

![Enable the battery percentage in Ubuntu GNOME Settings application. This is the newer Ubuntu version settings](https://itsfoss.com/content/images/2025/03/power-level-in-settings-app-latest-gnome-ubuntu.png)

Enable Battery Percentage from Settings

When you enable this, you can see the battery percentage appears in the top corner of the Ubuntu panel.

![Battery power level showing in new Ubuntu versions panel. If you click on it, then can see the percentage in the quick settings view. Clicking this will bring you to the power settings in GNOME Settings app.](https://itsfoss.com/content/images/2025/03/battery-level-in-new-ubuntu-top-panel.png)

Battery in Ubuntu Top Panel (Latest Versions)

## Show battery percentage in older Ubuntu versions

The battery percentage display feature is not available in older versions of Ubuntu. You can [use GNOME Tweaks](https://itsfoss.com/gnome-tweak-tool/) here. GNOME Tweaks is a versatile tool, and you can use it to [install themes in Ubuntu](https://itsfoss.com/install-themes-ubuntu/), among many other things.

### Step 1: Install GNOME Tweaks tool

Installing GNOME Tweaks tool is fairly simple. First, make sure you have the [Universe repositories enabled](https://itsfoss.com/ubuntu-repositories/). You can do this by the command:

```
sudo add-apt-repository universe
sudo apt update
```

Now, you can use the command below to install GNOME Tweaks:

```
sudo apt install gnome-tweaks
```

Alternatively, open the Software Centre and search for GNOME Tweaks. Click on the **Install** button to install the app.

![Install GNOME Tweaks in Ubuntu using the Software Centre. Click on the Install button to download and install.](https://itsfoss.com/content/images/2025/03/install-gnome-tweaks-old-ubuntu.png)

Install GNOME Tweaks

### Step 2: Enable battery percentage in GNOME Tweaks tool

Once installed, start the Tweaks tool by searching for it in Activities Overview. Use Super a.k.a. Windows key to bring up the search option.

![Search for GNOME Tweaks in Ubuntu Activities Overview and open it.](https://itsfoss.com/content/images/2025/03/open-gnome-tweaks-old.png)

Search for GNOME Tweaks

Inside GNOME Tweaks, go to **Top Bar** in the left sidebar and then toggle the option of **Battery Percentage** as shown in the screenshot below.

![Enable battery percentage in Ubuntu using the GNOME Tweaks app.](https://itsfoss.com/content/images/2025/03/enable-battery-percent-tweaks-old-ubuntu.png)

Enable Battery Percentage from Tweaks

The changes take place immediately. You can see that your laptop’s battery percentage is displayed in the top-right corner:

![Battery percentage is displayed in the top panel in old Ubuntu releases.](https://itsfoss.com/content/images/2025/03/battery-percent-panel-old-ubuntu.png)

Battery Percentage in Ubuntu Panel (Old)

## Check battery percentage in command line

Apart from the methods mentioned above, there exists other solutions to see battery percentage.

Fun tools like [Neofetch](https://itsfoss.com/using-neofetch/) and [Fastfetch](https://itsfoss.com/fine-control-fastfetch/) can show battery percentage in terminal. You have to tweak them to display battery details.

For a quick look at the battery state in the terminal, use the [inxi command](https://itsfoss.com/inxi-system-info-linux/) in this manner:

```
inxi --battery
```

![Show battery percent using the inxi command in terminal.](https://itsfoss.com/content/images/2025/03/battery-level-using-inxi-command-1.png)

Get Battery Percentage using Inxi Command

## Get battery details using the Power Statistics app

If you are interested in knowing more than just the battery percentage, the Power Statistics app is your friend. This is preinstalled in all Ubuntu releases, both older and newer.

First, search for Power Statistics in Ubuntu Activities Overview.

![Search for Power Statistics in Ubuntu Activities Overview](https://itsfoss.com/content/images/2025/03/open-power-statistics-from-activities-overview.png)

Search and Open Power Statistics App

Inside the app, go to the **Laptop Battery** section. In the **Details** section, you can see the battery percentage, time to empty, energy, capacity etc.

![The Power Statistics Ubuntu app displaying the battery percentage, expected time, etc. To get this, go to the "Laptop Battery" section and scroll down a bit on the "Details" tab.](https://itsfoss.com/content/images/2025/03/power-statistics-battery-percentage.png)

Battery Percentage in Power Statistics App

I prefer to see the battery percentage, be it my laptop or my phone. It gives you an idea of how much battery is remaining on the system, instead of you trying to guess from those tiny bars in the battery icon.

By the way, it is not good for battery health to have the laptop always plugged in. You may want to [limit the charging levels to prolong the battery life](https://itsfoss.com/limit-battery-charging-linux/).

[How to Limit Charging Level in Linux (and Prolong Battery Life)Prolong your laptop’s battery life in long run by limiting the charging to 80%.![](https://itsfoss.com/content/images/icon/android-chrome-192x192-346.png)It's FOSSAbhishek Prakash![](https://itsfoss.com/content/images/thumbnail/set-charging-limit-linux-2.png)](https://itsfoss.com/limit-battery-charging-linux/)