Skip to main content
April 1, 2026Dan Rodney/4 min read

Creating Masks with Calculations

Master Advanced Photoshop Selection Techniques

Core Techniques You'll Master

Calculations Command

Learn to use channel calculations for precise color-based selections. This powerful feature isolates specific tonal ranges automatically.

Selective Desaturation

Apply color corrections only to oversaturated areas while preserving natural skin tones and balanced colors throughout your image.

Channel Masking

Create sophisticated masks using channel differences to target vibrant colors while excluding neutral whites, grays, and blacks.

Topics Covered in This Photoshop Tutorial:

Fixing Over-saturation, the Calculations Command, Applying Hue/Saturation Only to Over-saturated Areas

Exercise Preview

boxer done

File Preparation

Ensure you have the boxer.jpg file from the Photoshop Adv Class folder. Close any other open files before beginning this exercise for optimal performance.

Exercise Overview

The vibrant, oversaturated colors in this image may look stunning on your monitor, but they present a classic print production challenge—what you see isn't what you'll get. These intense hues will never translate accurately to print, creating a jarring disconnect between your digital vision and the final output. The solution requires strategic desaturation, but here's the crucial point: we need surgical precision, not a sledgehammer approach.

A global desaturation would drain the life from your image, creating a washed-out result that defeats the purpose entirely. The real challenge lies in targeting only the most problematic oversaturated areas while preserving the image's overall impact and tonal balance.

Traditional selection methods fall short here. Color range selections across multiple areas become tedious and yield inconsistent results—a workflow nightmare for busy professionals. Channel duplication seems logical but creates another problem: it selects whites and grays along with your target colors, making your mask virtually useless. The elegant solution lies in Photoshop's often-overlooked Calculations command, which leverages the mathematical relationships between color channels to create precisely the selection mask we need.

Let's dive into this advanced technique that will transform how you handle color correction for print production.

  1. Start with a clean workspace by closing any open files.

  2. Navigate to the Photoshop Adv Class folder and open boxer.jpg.

  3. If Photoshop displays a missing profile dialog, select Use the embedded profile and click OK to maintain color integrity.

  4. Access Image > Calculations. Keep this dialog open—we'll configure the settings systematically before executing the command.

  5. Configure Source 1 by verifying the menu displays boxer.jpg, then apply these settings:

    Layer: Background
    Channel: Red
    Invert: Leave unchecked
  6. Configure Source 2, ensuring it's also set to boxer.jpg:

    Layer: Background
    Channel: Blue
    Invert: Leave unchecked
  7. Complete the configuration with these critical settings:

    Blending: Difference
    Opacity: 100%
    Mask: Leave unchecked
    Result: New Channel

    Alternative Selection Methods

    Pros
    Calculations command provides precise color-based selections
    Automatically excludes neutral tones from selection
    Creates reusable alpha channels for future adjustments
    Maintains natural skin tones during color correction
    Cons
    Color ranges selection is time-consuming and imperfect
    Overall desaturation washes out entire image
    Duplicating color channels selects unwanted whites and grays
    Manual selection methods yield inconsistent results

    Calculations Setup Process

    1

    Configure Source 1

    Set to boxer.jpg file, Background layer, Red channel with Invert unchecked

    2

    Configure Source 2

    Set to boxer.jpg file, Background layer, Blue channel with Invert unchecked

    3

    Set Blend Mode

    Use Difference blending at 100% opacity with Result set to New Channel

Why Did We Choose That?

The Difference blend mode is the secret sauce in this technique. When Photoshop compares the Red and Blue channels using Difference, it mathematically isolates areas where these channels vary significantly. Here's the brilliant part: vibrant, saturated colors show dramatic differences between channels, while neutral whites, grays, and blacks remain virtually identical across all channels. This creates a natural mask that targets exactly what we want to desaturate while protecting neutral tones—something that would be nearly impossible to achieve manually with traditional selection tools.

  • Execute the command by clicking OK.

  • Return to the composite RGB view using Cmd–2 (Mac) or Ctrl–2 (Windows).

  • Create a duplicate for comparison by choosing Image > Duplicate, then click OK.

  • Arrange both images for easy comparison using Window > Arrange > 2-up Vertical.

  • In the duplicate image, add a Hue/Saturation adjustment layer and reduce Saturation to −40. Notice how this global adjustment creates an undesirable "washed out" appearance—exactly what we're trying to avoid.

  • Switch to the original image and open the Channels panel. Cmd–click (Mac) or Ctrl–click (Windows) on the newly created Alpha 1 channel to load it as an active selection.

  • Hide the alpha channel if it's currently visible to better evaluate your work.

  • Invert the selection using Cmd–Shift–I (Mac) or Ctrl–Shift–I (Windows). This targets the oversaturated areas rather than the neutral zones.

  • Add a new Hue/Saturation adjustment layer with the selection active.

  • Apply the same −40 saturation adjustment and observe the dramatic difference.

  • Compare the results: the targeted desaturation preserves the image's punch while taming only the problematic oversaturated areas. Pay particular attention to the skin tones, where you'll see natural color retained in areas that would have been destroyed by global desaturation.

  • Vibrant colors differ radically between channels while whites, grays, and blacks are virtually the same from channel to channel.
    This principle explains why the Difference blend mode effectively isolates oversaturated areas for selective color correction.

    Channel Behavior Comparison

    FeatureVibrant ColorsNeutral Tones
    Red Channel ValuesVaries significantlySimilar across channels
    Blue Channel ValuesDiffers from redMatches other channels
    Difference ResultHigh contrast maskLow contrast mask
    Recommended: Difference blending creates precise masks by exploiting these channel variations

    Final Implementation Steps

    1

    Create Image Duplicate

    Duplicate the original image and arrange both images in 2-up vertical view for comparison

    2

    Load Alpha Selection

    Cmd-click or Ctrl-click the Alpha 1 channel to load it as an active selection

    3

    Inverse and Apply

    Invert the selection and create Hue/Saturation adjustment layer with -40 saturation

    Expected Results

    The final image should show desaturation only in oversaturated areas, with skin tones and other natural colors remaining balanced and realistic.

    Key Takeaways

    1The Calculations command creates precise masks by analyzing differences between color channels
    2Difference blending mode isolates vibrant colors while excluding neutral whites, grays, and blacks
    3Red and Blue channels provide optimal contrast for identifying oversaturated color areas
    4Selective desaturation preserves skin tones and natural colors better than overall adjustments
    5Alpha channels created through calculations can be reused for multiple adjustments
    6Inverting the selection targets the correct areas for color correction application
    7Side-by-side image comparison helps evaluate the effectiveness of selective adjustments
    8This technique solves print reproduction issues while maintaining visual impact

    RELATED ARTICLES