October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
ThatPainter
computer vision

What Exactly Is a Gaussian Blur? How It Works and When to Use It

A Gaussian blur is a weighted image-smoothing filter. Learn how sigma, convolution, kernels, border modes, Photoshop, SciPy, and OpenCV affect the result—and how Gaussian Blur differs from Lens Blur.

By ThatPainter Team 10 min read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

ThatPainter is reader-supported. When you buy through links on our site, we may earn an affiliate commission. Learn More

What exactly is a Gaussian blur? A Gaussian blur is an image-smoothing filter that replaces each pixel with a weighted average of nearby pixels, giving the closest pixels the most influence. The Gaussian curve controls that weighting, while sigma determines how widely the blur spreads and how much fine detail disappears.

In practical terms, Gaussian blur makes an image look softer by lowering local contrast and blending small changes in color or brightness. The same idea appears in photo editing, graphic design, scientific Python, and computer-vision libraries, but settings such as kernel size and border handling can change the final result.

Key takeaways

  • A Gaussian blur is a low-pass image filter that replaces each pixel with a distance-weighted average of nearby pixels.
  • The Gaussian function gives the greatest weight to the center of the neighborhood and progressively less weight to farther pixels.
  • Sigma (σ) controls the spread of the blur: a larger sigma affects a wider neighborhood, while a smaller sigma keeps the effect more local.
  • Gaussian blur reduces fine detail and local contrast; it cannot recover detail that has already been removed.
  • Gaussian Blur creates even mathematical smoothing, while Lens Blur is intended to simulate photographic depth of field.
  • Software implementations can produce different edge pixels because kernel size, truncation, channel handling, and border modes vary.

How does a Gaussian blur work?

A Gaussian blur works by calculating a weighted average for every pixel. Nearby pixels contribute more strongly than distant pixels, and the weights follow a smooth bell-shaped Gaussian curve rather than treating every neighboring pixel equally. The result is a softer image with reduced fine detail and lower local contrast.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The continuous two-dimensional Gaussian function is commonly written as:

#1 Best Overall
Sale
HUION Inspiroy H1060P Graphics Drawing Tablet, 10 x 6.25 in, 12+16 Hot Keys
  • Working Area Configuration - HUION art tablet equips with a 10 x 6.25 inches working area, providing the user with the most comfortable size to work; the 10mm slim structure and minimalist design of appearance make the drawing tablet more attractive.
  • Tilt Function Battery-free Stylus: This computer graphics tablet come with a battery-free stylus PW100, no need to charge, allowing for constant uninterrupted drawing. ±60° tilt support enables imitation of lines input with diverse drawing gestures, with accuracy ensured.
  • Press Keys:12 programmable press keys plus 16 programmable soft keys, you can set shortcut keys on drawing tablet's driver based on your preferences, such as erase, zoom in/out, scroll up and down, and so on.
  • Compatibility: HUION graphics tablet supports Windows 7 or later/ macOS 10.12 or later/ Android 6.0 or later/ Linux (Ubuntu). A USB adapter is required to connect to a Mac computer. H1060P supports various mainstream design and drawing software, including PS, SAI, AI, CDR, etc. (Please note: The H1060P is compatible with Ubuntu, but it requires the use of the Xorg display server. Wayland is not supported.)
  • NOTE: You can easily connect your phone to the art tablet via the OTG connector; while iPhone and iPad are NOT at the moment. The cursor will not show up in the SAMSUNG Galaxy S series at present. If you are not sure whether the product is compatible with your Phone or any help, please contact us.
G(x,y) = (1 / (2πσ2)) exp(-(x2 + y2)/(2σ2))

In that equation, x and y represent a pixel’s horizontal and vertical distance from the kernel center. Sigma, written as σ, is the standard deviation and determines how widely the weighting curve spreads. SciPy’s Gaussian-filter documentation defines sigma as the standard deviation of the filter, while OpenCV’s GaussianBlur documentation exposes separate horizontal and vertical sigma values.

A computer cannot apply an infinitely large mathematical function to an image. Software samples the Gaussian into a finite grid called a kernel, then moves that kernel across the image. At each position, the kernel values determine how much each neighboring pixel contributes to the output pixel. This moving weighted calculation is called convolution.

A useful visual analogy is a translucent sheet placed over an image, except Gaussian blur does not use a literal sheet. The software calculates each output pixel independently, using a smooth distance-based weighting pattern.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What does “Gaussian” mean in Gaussian blur?

“Gaussian” refers to the Gaussian mathematical function associated with Carl Friedrich Gauss. In image editing, Gaussian blur usually means applying a finite Gaussian kernel to an image, layer, selection, or region. Adobe describes the Photoshop version as a low-pass filter that smooths uneven pixel values.

The filter is called “low-pass” because it allows broad, slowly changing areas of an image to remain while reducing rapid changes such as small texture, fine edges, and tiny variations in brightness or color. A low-pass filter does not mean that the image becomes uniformly gray; it means that high-frequency detail is attenuated.

What is sigma in Gaussian blur?

Sigma is the control that determines how far the Gaussian blur spreads from each pixel. A small sigma produces a narrow weighting curve and a relatively subtle, local softening. A larger sigma spreads the weights across a wider neighborhood and generally creates a stronger, more noticeable blur.

Sigma choice How the weighting changes Typical visible result
Small sigma Most weight remains close to the kernel center Subtle softening with more fine detail retained
Large sigma Meaningful weight extends across a wider neighborhood Stronger smoothing, less texture, and softer edges

Sigma is not always interchangeable with a program’s “radius” or “blur amount” control. Applications may choose a kernel size automatically, require a specific kernel size, or use a finite cutoff around the Gaussian. Compare the actual parameter definitions when matching results between programs.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
GAOMON PD1161 Drawing Tablet with Screen, Tilt, 8 Shortcut Keys, 11.6" FHD
  • Please kindly note that GAOMON PD1161 drawing tablet is not a standalone tablet, It must be connected to a laptop or computer to work.
  • [Create Right On Screen]: Sketch, draw and paint directly on the full HD 11.6" IPS screen of GAOMON PD1161 drawing tablet. And the pre-installed matte film on display makes it feel like sketching on paper while reducing uncomfortable glare and reflection at the same time.
  • [Vivid Color Perfomance]: A combination of 72% NTSC (100% SRGB) color gamut and 16.7 million display colors enables to present your drawings in a more lifelike way with smoother color gradation on this drawing tablet for pc.
  • [Battery-free Stylus AP50 ]: Say goodbye to the hassle of charging, GAOMON PD1161 graphics tablet includes a battery-free pen AP50 with 8192 levels of pressure sensitivity and tilt function, which is easy to control, giving you the familiar feel of standard pencil.
  • [Customize Your Workflow]: The 8 press keys on the side of the PD1161 drawing monitor and 2 pen buttons can be programmble in the driver, which is great to get easy shortcus and improve workflow. Warm Reminder: it is not a standalone drawing tablet, so it should work with a computer running windows or mac OS.

Why does Gaussian blur make an image look soft?

Gaussian blur makes an image look soft because neighboring pixels are mixed together instead of remaining sharply separated. A sharp boundary contains a rapid change in color or brightness. Averaging pixels across that boundary spreads the transition over several pixels, which lowers contrast at the edge and removes fine visual structure.

The process reduces detail rather than reconstructing it. Adobe’s guidance warns that blur does not restore lost detail and that excessive blur can make an image look unnatural or remove useful context. Photographer Kenton Waltz, quoted by Adobe, summarizes the perceptual effect as: “It softens everything out.”

That limitation matters when using blur for privacy or retouching. A blurred area may become difficult to read, but Gaussian blur should not be treated as a guaranteed method for securely concealing sensitive information. If the original image or an unblurred layer remains available, the underlying detail still exists.

What is Gaussian blur used for?

Gaussian blur is useful when an image needs general, even softening rather than a simulated camera effect or directional movement.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Background softening: blur distracting background detail so a subject attracts more attention.
  • Text and graphic design: soften an image behind text to improve visual separation.
  • Noise reduction: suppress small variations before a later operation, although Gaussian blur also softens edges.
  • Artistic effects: create a dreamy, hazy, or deliberately softened appearance.
  • Computer vision: reduce small pixel variations before edge analysis or another image-processing step.
  • Preprocessing: make an image less sensitive to tiny changes that are irrelevant to a later algorithm.

Gaussian blur is not automatically the best noise-removal method. Its weighted average can reduce some noise while also weakening genuine edges. The correct filter depends on the noise pattern, the later algorithm, and whether preserving boundaries matters more than achieving uniform smoothness.

How is Gaussian blur different from other blur types?

Gaussian blur performs even, distance-weighted smoothing. Other blur filters change the neighborhood calculation, preserve different features, or simulate a specific physical effect.

Filter Main operation or visual idea Best fit
Gaussian blur Weighted averaging with a Gaussian kernel General softening, preprocessing, and even noise reduction
Box or average blur More uniform neighborhood averaging Simple smoothing when Gaussian weighting is not needed
Median blur Replaces a value using neighborhood order statistics rather than a Gaussian average Some impulse-noise or salt-and-pepper-noise problems
Motion blur Directional streaking Movement or long-exposure effects
Lens blur Photographic depth-of-field simulation Focus effects and bokeh-like results
Radial or spin blur Blur around a point or along rotational movement Zoom, spin, or focal-motion effects

Adobe lists Gaussian Blur alongside traditional blur filters such as Motion Blur and separately documents Lens Blur and interactive Blur Gallery effects such as Field Blur, Iris Blur, and Tilt-Shift. OpenCV likewise provides GaussianBlur, medianBlur, bilateralFilter, and boxFilter as distinct filtering operations. The filters should therefore not be treated as interchangeable versions of one generic “blur” command.

Rank #3
Sale
GAOMON M10K Drawing Tablet, 10x6 with Touch Ring, 10 Keys & 8192 Pressure
  • [Natural Pen Performance]: GAOMON M10K digital drawing tablet includes a battery-free stylus AP31 with 8192 levels of pressure sensitivity, which is light and easy to control with accuracy.
  • [Large Working Area]: GAOMON M10K drawing tablet for pc features 10 x 6.25 inch large drawing space with papery texture surface, providing you pen-on-paper drawing experience.
  • [Customize Your Workflow]: The 10 press keys on the M10K digital art tablet allow you to customize to your favourite shortcuts for working quickly and easily, while 2 pen side buttons at your finger help you switch between pen and eraser instantly.
  • [Creative Touch Ring]: Except for the shorcut keys, M10K digital drawing pad is designed with a touch ring. It can be programmed for canvas zooming, brush adjusting and page scrolling, etc. It is also available for left-handed user.
  • [ Versatile Compatibility]: This easy-to-use pen tablet works with PC ( Windows 7 or later) and Mac (macOS10.12 or later), as well as certain Android mobile phone and tablet (Android 11, 12, 13, and 14). It's also compatible with most creative software compatibility including photoshop, krita , medibang, as well as many other applications and platforms for online education or remote work like OneNote, Microsoft Whiteboard, Zoom, etc.

What is the difference between Gaussian Blur and Lens Blur?

Gaussian Blur creates consistent mathematical smoothing across the chosen area, while Lens Blur is designed to imitate photographic depth of field. Choose Gaussian Blur when the goal is an even softening effect; choose Lens Blur when the goal is a camera-like focus transition.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Decision point Gaussian Blur Lens Blur
Primary purpose Uniform mathematical smoothing Depth-of-field simulation
Main control Blur amount or sigma-like spread Focal distance, iris shape, radius, and related photographic controls
Depth awareness Does not inherently understand photographic depth Can use a depth-map source and focal-distance controls
Visual character Even softening Camera-like focus and out-of-focus effects
Best use Background softening, general editing, and preprocessing Simulated shallow depth of field and bokeh-like work

Adobe’s Lens Blur documentation describes controls including depth-map source, focal distance, iris shape, radius, specular highlights, and noise. Those controls explain why Lens Blur can produce a more photographic result than a uniform Gaussian operation.

How do you use Gaussian Blur non-destructively in Photoshop?

In Photoshop, a flexible Gaussian Blur workflow keeps the original image available and limits the effect with a mask or opacity adjustment. Adobe recommends working with a Smart Object or duplicate layer when later adjustment matters.

  1. Place the image or layer you want to soften in the document.
  2. Convert the layer to a Smart Object, or duplicate the layer before applying the effect.
  3. Apply Gaussian Blur to the editable copy and adjust the blur amount until the detail is reduced without losing the intended subject context.
  4. Use a layer mask to restrict the blur to the background or another selected area.
  5. Lower the layer or filter opacity if the full-strength effect is too strong.
  6. Keep the original layer hidden but available so the edit can be changed or removed later.

This approach is especially useful for background softening, text treatments, and retouching because the blur does not have to affect every part of the image equally. Adobe’s Gaussian Blur explanation covers uses such as reducing detail, drawing attention to a subject, and creating depth or artistic focus. Adobe’s overview of Photoshop blur effects distinguishes traditional blur filters from the interactive Blur Gallery tools.

How do you apply Gaussian blur in Python with SciPy?

Use scipy.ndimage.gaussian_filter(input, sigma, ...) to apply a multidimensional Gaussian filter in SciPy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
from scipy import ndimage

blurred = ndimage.gaussian_filter(image, sigma=2)

SciPy accepts a scalar sigma or separate sigma values by axis. The function also supports derivative orders, multiple border-extension modes, a truncation setting, and an optional explicit kernel radius. SciPy implements the multidimensional filter as a sequence of one-dimensional convolution filters, which is a useful implementation detail when performance and reproducibility matter.

SciPy’s documented border modes include reflect, constant, nearest, mirror, and wrap, among others. The selected mode changes how the filter behaves where the kernel reaches beyond the image boundary.

Rank #4
Sale
Drawing Tablet XPPen StarG640 Digital Graphic Tablet 6x4 Inch Art Tablet with Battery-Free Stylus Pen Tablet for Mac, Windows and Chromebook (Drawing/E-Learning/Remote-Working)
  • Battery-Free Pen: StarG640 drawing tablet is the perfect replacement for a traditional mouse! The XPPen advanced Battery-free PN01 stylus does not require charging, allowing for constant uninterrupted Draw and Play, making lines flow quicker and smoother, enhancing overall performance
  • Ideal for Online Education: XPPen G640 graphics tablet is designed for digital drawing, painting, sketching, E-signatures, online teaching, remote work, photo editing, it's compatible with Microsoft Office apps like Word, PowerPoint, OneNote, Zoom, Xsplit etc. Works perfect than a mouse, visually present your handwritten notes, signatures precisely
  • Compact and Portable: The G640 art tablet is only 2 mm thick, it's as slim as all primary level graphic tablets, allowing you to carry it with you on the go
  • Chromebook Supported: XPPen G640 digital drawing tablet is ready to work seamlessly with Chromebook devices now, so you can create information-rich content and collaborate with teachers and classmates on Google Jamboard’s whiteboard; Take notes quickly and conveniently with Google Keep, and effortlessly sketch diagrams with the Google Canvas
  • Multipurpose Use: Designed for playing OSU! Game, digital drawing, painting, sketch, sign documents digitally, this writing tablet also compatible with Microsoft Office programs like Word, PowerPoint, OneNote and more. Create mind-maps, draw diagrams or take notes as replacement for mouse

How do you apply Gaussian blur in OpenCV?

Use cv.GaussianBlur in OpenCV and provide the source image, an explicit odd-sized kernel, and sigma values.

import cv2

blurred = cv2.GaussianBlur(
    image,
    (5, 5),
    sigmaX=2,
    sigmaY=2
)

OpenCV’s function signature is cv.GaussianBlur(src, ksize, sigmaX[, dst[, sigmaY[, borderType[, hint]]]]). When supplied explicitly, the kernel width and height must be positive odd numbers. SigmaX and sigmaY control the horizontal and vertical standard deviations, and OpenCV processes image channels independently. OpenCV also exposes a border type; its documentation notes that BORDER_WRAP is not supported for GaussianBlur.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Why can two programs produce different Gaussian blurs?

Two programs can produce different Gaussian-blur results because “sigma” alone does not fully specify the computation. Kernel dimensions, how the infinite Gaussian is truncated, border handling, channel treatment, data type, and whether the filter is applied once or repeatedly can all affect the output.

Finite kernel size and truncation

The theoretical Gaussian extends indefinitely, so software must stop at a finite distance. SciPy’s default behavior uses a radius based on a truncation value of four standard deviations unless an explicit radius is supplied. Another application may select a different radius or derive kernel dimensions from its blur control.

Border handling

Near an image edge, part of the kernel lies outside the available pixels. The implementation must decide whether to reflect the image, repeat the nearest pixel, use a constant value, mirror the boundary, or wrap around. SciPy and OpenCV expose different border options, and OpenCV does not support BORDER_WRAP for GaussianBlur. Consequently, edge pixels may differ even when the nominal sigma values match.

Horizontal and vertical spread

Some APIs use one sigma value for both directions, while OpenCV exposes sigmaX and sigmaY separately. Different horizontal and vertical values can create an anisotropic blur rather than a circularly symmetric one.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When should you avoid Gaussian blur?

Avoid or limit Gaussian blur when preserving sharp boundaries, tiny features, text legibility, or scientific measurements is more important than smoothing. Gaussian blur deliberately mixes neighboring values, so a high setting can erase context and make an image look artificial.

Best Value
Sale
XPPen Mini Keydial ACK05 Wireless Shortcut Keyboard Bluetooth Programmable Express Remote Control with Dial & Customized Express Keys for Drawing Tablet PC MacBook Windows Images Video Editing
  • Wireless Connection: ACK05 wireless shortcut keyboard supports bluetooth 5.0 connection directly, which is Good Design Award 2023 Winners, providing you a more flexible and clean workspace. You can also connect it via a Bluetooth dongle or USB cable. Total three ways connection bring you stable and fast transmission, also can meet your different work scenarios
  • Please Note: If you do not download the driver, it can only be used as a regular shortcut keyboard. However, if you wish to customize the keys or program it, you must download the driver and configure it accordingly. If your device is an iPad or runs on iOS, after receiving the product, you need to download the "Shortcut Remote" app on your device in order to properly set up and use this product properly
  • Compact Size with Large 1000 mAh Battery: The Wireless Shortcut Remote features a thin profile and weighs only 75 g, easy for one hand to hold. With built-in 1000 mAh battery ensures the continuous working for about 300 hours. Ready to speed up your creation whenever you grab it
  • Customize up to forty Shortcuts: The Wireless Shortcut Remote has ten keys. You are allowed to customize four sets through the driver -- up to forty shortcuts. To switch between the sets, you only need to press a single key. Its capability to work with different applications makes itself a powerful productivity tool not only for creation, but also for study, work, and gaming
  • Anti-Ghosting Performance: The Mini Keydial features a new technology of Anti-ghosting for all ten keys, you can control with multi-keys at the same time, which will give you more customizable possibilities
  • Use a smaller sigma when only slight softening is needed.
  • Mask the effect when the subject or important edges must remain sharp.
  • Compare the result at the final output size; a blur that looks subtle while editing may become excessive after resizing.
  • Do not assume blur restores missing detail or makes sensitive information permanently unrecoverable.
  • For salt-and-pepper noise, consider whether median filtering better matches the problem.
  • For depth-of-field simulation, use Lens Blur or another depth-aware option instead of expecting Gaussian Blur to create realistic focus behavior.

Where can you learn the mathematics behind Gaussian filtering?

A casual reader does not need a textbook to understand or use Gaussian blur. Readers who want deeper coverage of spatial kernels, convolution, spatial filtering, and low-pass Gaussian kernels may find Digital Image Processing, 4th edition, by Rafael C. Gonzalez and Richard E. Woods, a suitable optional reference. Pearson presents the book as a foundational image-processing text; it is better suited to students, programmers, and computer-vision readers than to someone seeking only a quick definition.

What exactly is a Gaussian blur?

What exactly is a Gaussian blur? It is a smoothing filter that convolves an image with a bell-shaped Gaussian kernel, giving nearby pixels more influence than distant pixels. Sigma controls the spread, so increasing sigma generally removes more fine detail and produces a wider, softer result. Gaussian Blur is even smoothing, not photographic depth-of-field simulation.

Frequently Asked Questions

What exactly is a Gaussian blur?

A Gaussian blur is an image-smoothing filter that replaces each pixel with a weighted average of nearby pixels. The Gaussian weighting gives the center and closest pixels the most influence, reducing fine detail and local contrast.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What is sigma in Gaussian blur?

Sigma (σ) controls the spread of a Gaussian blur. A larger sigma generally affects a wider neighborhood and creates stronger softening, while a smaller sigma keeps the effect more local.

What is the difference between Gaussian Blur and Lens Blur?

Gaussian Blur produces even mathematical smoothing, whereas Lens Blur is designed to simulate photographic depth of field. Lens Blur can use controls such as focal distance, iris shape, and radius.

How do you apply Gaussian blur in Python?

In SciPy, apply Gaussian blur with `scipy.ndimage.gaussian_filter(input, sigma, …)`. In OpenCV, use `cv.GaussianBlur`, with positive odd kernel dimensions when an explicit kernel is supplied.

The Bottom Line

Gaussian blur is a distance-weighted neighborhood average: the Gaussian kernel mixes nearby pixels more strongly than distant ones, and sigma controls how wide that influence spreads. Use it for even softening or preprocessing; use Lens Blur when you specifically want a camera-like depth-of-field effect.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

More from the Paint Desk

Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.