# Totals & Subtotals

By default, Soulver displays a total of all your lines in the bottom right hand corner.

<div align="center"><img src="https://1915029247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lf0gWBnuB8M1SitWhyk%2Fuploads%2Fr1F7VOZAVcnv9llRxCfP%2FScreenshot%202025-02-17%20at%2012.23.43%E2%80%AFpm.png?alt=media&#x26;token=4ba19643-ca04-4bf9-9356-d08136ebfc68" alt="A floating quick total appears in the bottom right of your sheet (by default)" width="375"></div>

### Subtotals

#### Making a subtotal on Mac

Add a blank line and then press ⌘T (or double-click the empty answer).

A subtotal line will add up all lines above back up to the next subtotal, or heading (#).

<div align="left"><figure><img src="https://1915029247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lf0gWBnuB8M1SitWhyk%2Fuploads%2FE9MGwkQ1wVSAl4XqNKxJ%2FQuick%20Subtotal%20Action.gif?alt=media&#x26;token=a08d5671-0f33-4555-9064-95f8f91a8f3f" alt="" width="375"><figcaption><p>Double click the answer on an empty line to turn it into a subtotal</p></figcaption></figure></div>

#### Making a subtotal on iPad & iPhone

Hold down on an empty line and choose `Make Subtotal Line`:

![Subtotals in Soulver 3 for iPad](https://1915029247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lf0gWBnuB8M1SitWhyk%2Fuploads%2F6bZ9FeuhEPhN832F071o%2FiPad%20Make%20Subtotal.png?alt=media\&token=958c6391-920e-4c8a-84c3-fa588abafca6)

Alternatively, tap the empty space below the last line.

## Subtotal tasks

#### Assigning a subtotal to a variable

You can create a variable on a subtotal line using "variable = " and leaving the value blank:

<img src="https://1915029247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lf0gWBnuB8M1SitWhyk%2Fuploads%2F91MCW8cvhJvnbvfHkDYJ%2FSubtotal%20Variable.png?alt=media&#x26;token=3ca0ebac-794a-495a-b334-42596fe3b673" alt="Declare a variable without a value on a sub-total line" data-size="original">

#### Adding a percentage (like a sales tax) to a subtotal

Add a percentage line to your subtotal to have this applied to the final result.

<figure><img src="https://1915029247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lf0gWBnuB8M1SitWhyk%2Fuploads%2Fin2syg2QzoufAHzVCLM8%2FScreenshot%202025-02-17%20at%2012.25.03%E2%80%AFpm.png?alt=media&#x26;token=a29df679-a097-42b5-b064-37d1ee6dedb9" alt="" width="375"><figcaption><p>A percentage in a subtotal will apply to the final result</p></figcaption></figure>

## Customizing the floating total

#### Showing/hiding the floating total

If the total is not helpful in your particular workflow, you can hide it by hovering over it and clicking `Hide`.

To show the total again, go to the `View` menu and choose `Show Total`.

<figure><img src="https://1915029247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lf0gWBnuB8M1SitWhyk%2Fuploads%2FEe3J4Q0WiBpLpZdcvgh6%2FScreenshot%202025-02-17%20at%2012.45.24%E2%80%AFpm.png?alt=media&#x26;token=5606a212-ac71-4e10-9cd8-1412086c07dc" alt=""><figcaption><p>Additional floating total options are available from the View menu</p></figcaption></figure>

#### Changing the statistic type

You can also show the average, count and median of your lines by control-clicking on the floating total and choosing an alternative statistic.

<figure><img src="https://1915029247-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lf0gWBnuB8M1SitWhyk%2Fuploads%2FUdUSlS6K8CGkdnFJeU4s%2FScreenshot%202025-02-17%20at%2012.42.01%E2%80%AFpm.png?alt=media&#x26;token=0713694b-5b35-4214-912c-29727caef8ed" alt=""><figcaption><p>Choosing an alternative statistic for the floating total via the contextual menu</p></figcaption></figure>
