---
title: Install Train Horn calculators on Linux | Snap Store
description: Get the latest version of Train Horn calculators for Linux - Train horn
  setup calculators - dB at distance, tank time, wire size
url: https://snapcraft.io/trainhorn
---

# Train Horn calculators (trainhorn)

[Train Horn (trainhorn)](https://snapcraft.io/publisher/trainhorn "View all snaps from Train Horn (trainhorn)")

* [Train Horn (trainhorn)](https://snapcraft.io/publisher/trainhorn "View all snaps from Train Horn (trainhorn)")
* [Utilities](https://snapcraft.io/search?categories=utilities)

latest/stable 1.0.0

Install latest/stable of Train Horn calculators

---

**Install using the command line**

```
sudo snap install trainhorn
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* trainhorn

---

### License

* MIT

---

### Last updated

* Today - latest/stable
* Today - latest/edge

---

### Source code

* [github.com/train-horn/trainhorn](https://github.com/train-horn/trainhorn "https://github.com/train-horn/trainhorn")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/trainhorn#report-snap-modal)

---

* [Description](https://snapcraft.io/trainhorn#tab-description)
* [Security](https://snapcraft.io/trainhorn#tab-security)

#### Train horn setup calculators - dB at distance, tank time, wire size

trainhorn is a small command-line tool for planning a train horn install
on a truck, car or boat. It works offline and needs no permissions.

Commands:

* db - sound level at a distance (inverse-square law), with optional
  atmospheric absorption by octave band
* distance - how far away the level falls to a target dB
* combine - total level of several horns sounding together
* tank - horn time from one tank of air, and the number of full blasts
* refill - compressor time to refill the tank (constant or linear flow)
* wire - smallest copper AWG gauge for a voltage-drop budget
* vdrop - voltage drop of a given AWG copper run

Examples:

```
 trainhorn db --source 150 --ref-ft 10 --at-ft 100
 trainhorn tank --gallons 5 --start 150 --cutoff 110 --horn-cfm 10 --blast 2
 trainhorn wire --amps 30 --length-ft 12 --volts 12
```

Results are free-field engineering estimates, not measurements and not
a legal noise assessment. Wire sizing checks voltage drop only.

The calculations come from the open-source trainhorn Rust crate
(MIT). Browser versions of these calculators and train horn guides are
on Train Horn, an independent reference: <https://train-horn.com/>

---

## Install Train Horn calculators on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/trainhorn/arch)

[### CentOS](https://snapcraft.io/install/trainhorn/centos)

[### Debian](https://snapcraft.io/install/trainhorn/debian)

[### elementary OS](https://snapcraft.io/install/trainhorn/elementary)

[### Fedora](https://snapcraft.io/install/trainhorn/fedora)

[### KDE Neon](https://snapcraft.io/install/trainhorn/kde-neon)

[### Kubuntu](https://snapcraft.io/install/trainhorn/kubuntu)

[### Manjaro](https://snapcraft.io/install/trainhorn/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/trainhorn/pop)

[### openSUSE](https://snapcraft.io/install/trainhorn/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/trainhorn/rhel)

[### Ubuntu](https://snapcraft.io/install/trainhorn/ubuntu)

[### Raspberry Pi](https://snapcraft.io/install/trainhorn/raspbian)
