Where kilohertz shows up for modern clocks

The Linux kernel exposes processor speeds in kilohertz. Files under the cpufreq interface, such as scaling_cur_freq and cpuinfo_max_freq, hold integers like 3500000, which means 3.5 GHz. Scripts that read those files often need to display or compare the numbers with figures from a data sheet in gigahertz. This page does that step by converting GHz to kHz, so you can look up what value to expect in the file or what limit to write into a frequency governor setting. It is a routine need for people tuning laptops, servers and single-board computers.

A shift of six decimal places

Giga is 10 to the power 9 and kilo is 10 to the power 3, so the ratio is 1,000,000. The page computes kHz = GHz × 1,000,000. The default 10 GHz returns 10,000,000 kHz. A 3.2 GHz processor reads 3,200,000, and 4.7 GHz reads 4,700,000. Fractions behave the same way: 0.8 GHz, a typical idle frequency on a laptop, is 800,000 kHz. The SI Brochure defines the prefixes, and since the calculation is a decimal shift, the result is exact for any input of up to twelve significant digits.

Reading values on a Linux machine

Suppose a server lists cpuinfo_max_freq as 3900000 and scaling_max_freq as 3000000. Converted, these are 3.9 GHz and 3.0 GHz, which tells you the governor limits the processor to about 77 percent of its maximum. To set a cap at 2.8 GHz you would write 2800000. The reverse conversion helps with that: enter 2,800,000 kHz as the source and gigahertz as the target to confirm it returns 2.8. Doing the check on the page before writing to a system file avoids a typo that is off by a factor of 10 or 1,000.

Radio and audio uses of kilohertz

In radio, kilohertz is the natural unit for the medium-wave band, where AM stations sit between about 530 and 1,700 kHz in many countries. Longwave and navigation beacons also use kHz. Gigahertz belongs to microwave systems, so a direct conversion between the two spans nearly the whole radio spectrum. A 2.4 GHz carrier equals 2,400,000 kHz, which is about 1,400 to 4,500 times higher than the AM frequencies. In audio, kilohertz describes sample rates, such as 44.1 kHz and 48 kHz, which share the unit but not the physical meaning of a carrier frequency.

Choosing the right prefix for a document

Kilohertz figures in the millions are awkward to read. A value of 3,500,000 kHz is correct but harder to scan than 3.5 GHz. Use kHz when the system requires it, such as a configuration file, and use GHz in prose. A good habit is to present both: write 3.5 GHz (3,500,000 kHz) the first time, then use one form afterward. That makes the source of any later number clear, and a reader who sees 3500000 in a log can match it to the gigahertz value in your text without converting.

Mixing up kHz and KHz and other slips

The SI symbol for kilohertz is kHz with a lowercase k. Capital KHz appears in some software but is not the standard form. Common errors in this conversion include shifting by three places, which gives MHz, or by nine places, which gives Hz. A quick check is that the kHz number should have six more digits than the GHz number, for whole values. 10 GHz has two digits and 10,000,000 kHz has eight. If your result has the wrong count, the source unit or the target unit was set incorrectly in the form. Another slip is to treat the kernel value as megahertz, which makes a 3.5 GHz part look like a 3,500,000 MHz machine in a script that forgot to divide. Printing both forms side by side in a log line, for example 3500000 kHz (3.5 GHz), catches that error the first time the script runs and costs nothing.

Frequency scaling and precision

Processor frequencies change many times each second as governors respond to load, so a reading in the cpufreq file is a snapshot. The page converts exactly whatever number you enter. If you want the average over a period, sample repeatedly and average the kHz values before converting. Frequencies often vary in steps, for example 100 MHz multiples, which means readings such as 3,498,000 kHz are normal even for a part rated at 3.5 GHz. Rounding such readings to 3.5 GHz for a report is acceptable, but keep the raw values for any analysis. When you log readings over time, store the kHz integers as they come and convert in the reporting step, which lets you recompute averages and maxima without accumulating rounding differences. A one-hour log sampled every second holds 3,600 readings, and the mean of those integers divided by 1,000,000 is the average frequency in gigahertz.

Reverse examples with realistic numbers

Choose kilohertz as the source and gigahertz as the target. A reading of 2,800,000 kHz returns 2.8 GHz, 800,000 kHz returns 0.8 GHz, and 1,800,000 kHz returns 1.8 GHz. A scheduler that lists frequency steps of 1,200,000, 2,000,000 and 2,800,000 kHz offers 1.2, 2.0 and 2.8 GHz. Reading the list in gigahertz makes it easy to see that the steps are evenly spaced at 0.8 GHz. If a list shows irregular spacing, the platform may use finer steps or restrict some states, and the vendor documentation will say which. On a single-board computer the list might read 600,000, 1,000,000 and 1,500,000 kHz, which is 0.6, 1.0 and 1.5 GHz, and a governor setting of 1,000,000 keeps the board at a middle step. The page checks only the arithmetic and does not know which steps your hardware supports.

Writing a frequency cap into a system file

To limit a laptop to 2.4 GHz while it runs on battery, convert 2.4 to 2,400,000 kHz and write that integer to the maximum frequency setting for each core. Checking the value on this page first prevents the common typo of writing 240000, which is 0.24 GHz and would slow the machine to a crawl, or 24000000, which is 24 GHz and is rejected or clipped to the hardware maximum. The kernel documentation describes the files and their units, and the available steps depend on the driver. A value outside the supported range is usually adjusted by the system, so read the file back afterward to confirm what took effect.