Calculator Collection | About the Calculator Series | Inside the Code | Home

RC Low-Pass Filter

Given R and C, calculate the cutoff (-3dB) frequency of a low-pass filter.

Schematic

rc filter

Enter Components

R Ohms
C Farads
fc = 1/(2*pi*R*C)
fc (Hz)

Download / Basics

To run or modify on your PC, download a simple version of this file with image (*.zip).
For a quick tour of some JavaScript / HTML basics, check out Inside the Code.

JavaScript / HTML

//////////////////////////////////////////////
// calc fc
//////////////////////////////////////////////
function getfc_RC_Fil() {
	// get values directly from form
	var R=document.myForm.R.value
	var C=document.myForm.C.value
	var fc
    // calc
    fc=1/(R*C*2*Math.PI);
    // place in text box
    document.myForm.fc.value = (fc).toPrecision(4);
}
///////////////////////////////////////////////