# Stop a machine

Source: https://bflops.com/docs/stop

Stop a machine to end billing, and the other ways a rental can end.



Billing runs until the machine stops. Stop it as soon as you are done.

## Stop it [#stop-it]

1. Open the rental from [Rentals](/rentals).
2. Select **Stop machine**, or **Stop cluster**.
3. Confirm with **Stop**.

Billing ends at once. The machine is deleted with its disk, and the rental shows **Ended** shortly after.

<Callout kind="warning">
  Everything on the machine is deleted, except what is under `/data` when /data is
  mounted. Copy your results first: see [Copy files](/docs/connect#copy-files).
</Callout>

## How long a machine runs [#how-long-a-machine-runs]

* **Started on the site**: until you stop it.
* **Started with an API key**: 24 hours unless the key asks for 1 to 168 hours, then it stops by itself. A key can extend it, never past 7 days from now. See [API keys](/docs/api-keys).

## Other ways a rental ends [#other-ways-a-rental-ends]

The rental page shows why under **Why it ended**:

| Reason                                 | What happened                                                    | What to do                                          |
| -------------------------------------- | ---------------------------------------------------------------- | --------------------------------------------------- |
| Your balance ran out                   | Your balance reached zero and stayed there for 2 minutes         | [Top up](/docs/top-up), then start a new machine    |
| A daily limit was reached              | A key's daily limit, or a new account's daily limit, was used up | Wait for the next UTC day, or raise the key's limit |
| Its time was up                        | A key's machine reached its time                                 | Start a new one, or extend before it ends next time |
| It was taken back                      | An interruptible machine was taken back                          | Start another one; save progress often              |
| The machine stopped on its host's side | The hardware went away                                           | Start another machine                               |
| The key that started it was revoked    | You revoked its key                                              | Nothing: this is how revoking works                 |
| It broke our rules                     | It did something our [Terms](/terms) forbid                      | Read the terms                                      |

In every case, billing ended with it, and you paid only for verified time. See [How billing works](/docs/billing).

## Next [#next]

[How billing works](/docs/billing)
