> For the complete documentation index, see [llms.txt](https://astra-image.gitbook.io/astra-image-6.0/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://astra-image.gitbook.io/astra-image-6.0/processing-tools/pixel-math.md).

# Pixel Math

1 + 1 = image?

The Pixel Math tool lets you do simple mathematical operations on each pixel. For more advanced operations, it may be better to use a Python script.

<div align="left"><figure><img src="https://642819126-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLBlqtJBdFJ4rkIvhdwcZ%2Fuploads%2FmzW1Ll1HDYwYupqLrThf%2Fpixel_math.png?alt=media&amp;token=5aec174b-3b1e-4dcd-a9a3-004a00b40c7e" alt="The Pixel Math tool."><figcaption><p>The Pixel Math tool.</p></figcaption></figure></div>

**Function**\
The mathematical operation that you want to apply to each pixel.

**Value**\
Most functions require a value to run. You can enter the value here. For example, if you selected Divide and entered a Value of 2.0, then each pixel in the image will be divided by 2.0.
