Frequency to note calculator
440 Hz is A4 with 0 cents, while 445 Hz is still A4 but a few cents sharp. Enter a measured tone and see the closest named pitch, its MIDI number and how far off it is. Free in your browser.
- Free
- Runs in your browser
- No sign-up
- Your data stays on your device
Run — free
Worked example
- Frequency in hertz
- 440
- Reference
- 440
- Octave
- 4
- Full name
- A4
- Cents
- 0
This frequency to note calculator turns a tone measured in hertz into the nearest equal-temperament musical note, its scientific octave, and the cents offset from that pitch under a chosen concert reference for A4. Musicians, audio engineers, instrument builders, and teachers often know a measured frequency from a tuner, spectrum analyzer, or physics lab but need the closest named pitch and how far it sits from perfect intonation. The mapping is fully deterministic twelve-tone equal temperament: continuous MIDI equals sixty-nine plus twelve times the base-two log of frequency over A4, the nearest note is the rounded MIDI integer, and cents equal one hundred times the fractional remainder. Concert A at four hundred forty hertz lands on A4 with zero cents; middle C near two hundred sixty-one point six hertz lands on C4; a slightly sharp four hundred forty-five hertz reports A4 a few cents above the reference. The engine uses only finite arithmetic with no network calls, no sampling, and no date-dependent shortcuts.
What the note, octave and cents tell you
Frequency-to-note conversion answers a practical question: given a measured tone in hertz, which named pitch on the piano is closest, and by how many cents is the measurement sharp or flat relative to that pitch under equal temperament. Equal temperament divides each octave into twelve equal logarithmic steps so every semitone multiplies frequency by the twelfth root of two. With A4 fixed at a concert reference (commonly four hundred forty hertz, sometimes four hundred thirty-two or four hundred forty-two), every other pitch is completely determined.
Positive cents mean the measured tone is sharp of the named pitch; negative cents mean flat. Non-positive reference pitches are also rejected so the logarithmic ratio stays defined.
Where frequency-to-note fits in practice, teaching, and software
Performers and instrument makers use frequency-to-note when a strobe tuner, phone FFT, or workshop meter reports a raw hertz value and they need the closest written pitch plus how many cents to adjust a string, reed, or pipe. Audio engineers and sound designers map measured peaks from spectrum analyzers to note names for patch documentation, sample library metadata, and dialogue with musicians who think in pitch rather than hertz.
Physics and music-technology teachers introduce the twelve-tone logarithmic scale by letting students type a frequency and immediately see the note, octave, cents, and reconstructed nearest frequency under a chosen A4. App and tool builders call the same contract from scripts to seed deterministic test vectors for tuning UIs, to normalize user-entered frequencies before showing a note badge, or to satisfy programming-challenge statements that demand MIDI and cents rather than a hand-waved guess.
Ear-training and hobby projects often need a fast, offline source of named pitches so learners can verify that a synthesized tone or whistle matches the intended note within a few cents. Pair it with frequency converters or wavelength helpers when you are building a small lab of free, deterministic audio and physics calculators, and document that cents here are always relative to equal temperament at the chosen A4, not to just intonation or historical temperaments.
What you can do with it
Tuner and workshop checks
Convert a measured hertz reading from a meter or FFT into the nearest note name, octave, and cents so you can tune or document a pitch quickly.
Teaching equal temperament
Show students how log2 frequency ratios map to MIDI, note names, and cents under a chosen concert A4 reference.
FAQ
What does the frequency to note calculator cost?
It is free in your browser on this page.
What happens if frequency is zero or negative?
Non-positive frequency is not a valid pitch in hertz for this mapping.
Can I use a concert pitch other than 440 Hz?
The nearest note and cents are computed relative to that reference.
Are note names written with flats or sharps?
Sharps only in this release: C, C#, D, D#, E, F, F#, G, G#, A, A#, B. Enharmonic flats are not returned as alternate spellings.
What do the cents in the result mean?
Cents show how far your tone sits from the nearest equal-temperament note. A semitone is 100 cents, so a positive value means slightly sharp and a negative one means slightly flat.
Related tools
For developers — API access
Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.
API endpoint
Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.
Call it from your stack
curl -X POST https://api.kit.forhosting.com/hobby/frequency-to-note \
-H "Authorization: Bearer $KIT_KEY" \
-H "Content-Type: application/json" \
-d '{"frequency":440}'const res = await fetch("https://api.kit.forhosting.com/hobby/frequency-to-note", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.KIT_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({
"frequency": 440
})
});
const { task_id } = await res.json();import os, requests
res = requests.post(
"https://api.kit.forhosting.com/hobby/frequency-to-note",
headers={"Authorization": f"Bearer {os.environ['KIT_KEY']}"},
json={
"frequency": 440
},
)
task_id = res.json()["task_id"]<?php
$res = file_get_contents("https://api.kit.forhosting.com/hobby/frequency-to-note", false, stream_context_create([
"http" => [
"method" => "POST",
"header" => "Authorization: Bearer " . getenv("KIT_KEY") . "\r\nContent-Type: application/json",
"content" => '{"frequency":440}',
],
]));
$task = json_decode($res, true);body := bytes.NewBufferString(`{"frequency":440}`)
req, _ := http.NewRequest("POST", "https://api.kit.forhosting.com/hobby/frequency-to-note", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)Example request
{
"frequency": 440
}Example response
{
"task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
"type": "hobby.frequency_to_note",
"status": "queued",
"_links": {
"result": "/tasks/tsk_…/result"
}
}The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.
Pricing
Published price — no tokens, no invented credits. A failed task is never charged.
Limits
max_abs_value | 1000000000000000 |
Errors
| HTTP | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing or invalid API key. |
402 | insufficient_balance | Your balance doesn't cover the task price. |
404 | unknown_type | That task type doesn't exist. |
429 | rate_limited | Too many requests. Use the webhook instead of polling. |
Technical notes
Use it free in the browser for tuning checks, ear-training demos, and homework, or call the API at $0.002 per successful request when you need reproducible note labels and cents in CI, DAW helpers, or teaching software.
What frequency-to-note means and what the response contains
This calculator returns the input frequency and reference, the nearest note name using sharps (C, C sharp, D, and so on through B), the scientific octave number, a full_name string such as A4 or C sharp five, the cents deviation from that nearest pitch, the integer MIDI note number, the continuous midi_exact value before rounding, the exact equal-temperament frequency of the nearest note in hertz, the method tag equal_temperament, the precision used, and a short formula reminder. There is no approximate sampling path and no instrument-sample database: the engine either evaluates the closed form inside the supported magnitude range or rejects the input with invalid_input. Rejected cases include missing frequency, non-finite values, magnitudes above the documented ceiling, and any non-positive frequency, which cannot represent a physical pitch in hertz for this mapping.
How frequency and reference are read and how results stay reproducible
Optional leading plus signs and scientific notation on numeric strings are allowed when they parse as finite decimals; embedded spaces, hex prefixes, and non-numeric tokens are rejected with a clear message so a bad cell does not become a wrong note label. The same positivity rule applies to a provided reference so the ratio frequency over A4 stays positive and finite. The preferred field is frequency for the measured tone in hertz, but aliases f, freq, hz, and frequency_hz are accepted so spreadsheets, query strings, and typed forms can reuse the same contract. Optional reference sets the A4 concert pitch in hertz and defaults to four hundred forty when omitted; aliases a4, ref, reference_pitch, and concert_pitch are accepted for the same value. Frequency must be strictly positive: zero or negative hertz values are rejected with invalid_input because they are not valid audible or mathematical pitches for logarithmic MIDI conversion. An optional precision field, with aliases decimals and dp, chooses how many decimal places to expose for floating fields such as frequency, reference, cents, midi_exact, and nearest_frequency, defaulting to ten and capped at fifteen so JSON goldens stay stable. Computation uses continuous MIDI equals sixty-nine plus twelve times log base two of frequency over reference, rounds to the nearest integer MIDI note, multiplies the fractional part by one hundred for cents, maps the MIDI class modulo twelve onto sharp note names, derives the scientific octave as floor of MIDI over twelve minus one, and reconstructs nearest_frequency as reference times two to the power of MIDI minus sixty-nine over twelve. Pair the free browser run on this page with the priced API when you need the identical mathematical result inside an automated pipeline without re-implementing the MIDI and cents formulas yourself.
Where frequency-to-note fits in practice, teaching, and software
Product and education tools use the calculation when a learner types hertz and the UI must show full_name, cents, and MIDI with a clear equal-temperament method tag. On this page the work runs entirely in your browser; through the API each successful lookup costs $0.002, failed validation is not charged, and nothing is stored after the response returns. That split — free interactive exploration and a priced, identical API — matches the rest of the KIT tier-A catalog and lets you move from a classroom demo to an automated pipeline without changing the mathematical result.
Integration use cases
Deterministic test fixtures
Generate reproducible note, cents, midi, and nearest_frequency values for unit tests, property checks, and CI assertions in audio tools.
Technical questions
How is the nearest note computed?
Under equal temperament with A4 at the reference pitch (default 440 Hz), midi_exact = 69 + 12·log2(f/A4). The nearest MIDI note is round(midi_exact), cents = 100·(midi_exact − midi), and the note name and octave come from that MIDI integer.