How to Square a Number Quickly on a Mac

How to Square a Number Quickly on a Mac

Fumbling through apps just to square a simple sum? When you need to square, cube or take a number to another exponential degree, a Mac is all you need. Find out here how to square a number on a Mac ⤓ using macOS.

How to Square a Number Quickly on a Mac

Using Spotlight (Fastest and Most Simple)

Time needed: 1 minute

To compute the square of a number quickly using Spotlight on a Mac:

  1. Bring up Spotlight Search.

    Here’s how: Press Command Space by default.

  2. Type the number you want to square.

  3. Now follow up with ^2.

    Here’s how: Press Shift 6 to enter ^, then press 2.
    Dead key circumflex: With some keyboard layouts, ^ is a dead key for adding the circumflex accent to letters like e, for instance; you need not follow up with Space to turn it into a character of its own before typing 2.
    Squared alternative In lieu of ^2, you can also enter ² (squared) directly.
    Other exponents: See below for cubing numbers, taking square roots, and more — all with raising numbers.
    Copy: To copy the result (no matter what is highlight in Spotlight search), press Command C or click the copying button in the result.
    Calculating the square for a number quickly using Spotlight on a Mac

Square Numbers in Safari (Even Offline)

To have Safari compute the square of a number (or raise it to another degree) without opening a website:

  1. Focus the address bar.
    Safari keyboard shortcut: Press Command L to switch to the address bar quickly.
  2. Type the mathematical expression using ^ (as with Spotlight; see above).
    Example: Type 3 ^ 2 to raise 3 to the second power.
  3. Find the result under Calculation in address bar auto-completions.
    Squaring a number in Safari

Using Calculator (Skeuomorphic)

To get the square for a number quickly in macOS Calculator:

  1. Open Calculator.
    Here’s how: You can employ Spotlight, for instance, to open Calculator (instead of letting it compute the square sum directly).
  2. Switch to Scientific mode.
    Here’s how: Select View | Scientific from the menu.
    Calculator keyboard shortcut: You can also press Command 2 to engage the scientific calculator.
  3. Type the number you want to square.
  4. Now click .
    With the keyboard: You can also type ^ here followed by 2 (or a different exponent, of course).
    Circumflex: Note that the keyboard entry only works with the stand-alone caret character ^, not the character-modifying circumflex accent.
    Using macOS Tahoe Calculator to square a number
  5. Press Enter or click =.

Using Math Notes (Traditional)

To calculate the square of a number right in a Apple Notes note:

  1. Enable math calculations in Apple Notes.
    Here’s how: Select Format | Math Results | Suggest Results (or Format | Math Results | Insert Results) from the menu.
  2. Type <number>^2 or <number>² followed by an equal sign (=).
  3. Press Enter to accept the math result suggestion (with Suggest Results active).
    Squaring a number or expression in Apple Notes with math results

Using Siri on a Mac to Square a Number (Conversational)

To have Siri respond with the square for a number:

  1. Bring up Siri.
  2. Ask, for instance, “What is <number> squared?”

Square a Number in Terminal (Command Line Versatility)

To calculate the square for any number from the Terminal command line:

  1. Open Terminal on the Mac.
  2. Type bc -e "<number> ^ 2".
    Important: The exponent must be an integer in bc.
    Shorter: A shorter form is bc -e <number>^ 2; note that, without quotation marks, you have to escape whitespace (as in bc -e <number>\ ^\ 2.
    Echoing: If you do not want to rely on the -e option, you can also pipe the command to bc: echo "<number> ^ 2" | bc.
    Example: Use bc -e 3^2 to square the number 3 quickly.
  3. Press Enter.
    Raising a number in Mac Terminal with bc

How to Square a Number Quickly on a Mac: FAQ

Can I cube number or use a different exponent?

Yes.

Both Spotlight and Calculator let you take numbers to an exponent other than 2 easily, of course.

Instead of using 2 for the exponent following ^, you can use the following, for instance:

  • 3: cube a number
  • (1/2) (or (½)): compute the square root ()
  • e, pi etc.: use mathematical constants as exponents
  • -1: compute 1 divided by the number

(Tested with macOS Tahoe 26.0, Sequoia 15.0–15.3 and Sonoma 14.3; first published April 2024, last updated September 2025)

Home » Mac Tips and Resources » How to Square a Number Quickly on a Mac