> ## Documentation Index
> Fetch the complete documentation index at: https://calcs.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Quick Start Guide: Pythagoras Theorem Calculator

> Build a Pythagorean theorem calculator in Calcs Builder in under 5 minutes

Build your first Calcs Builder template in about **5 minutes**. You'll create a simple (but complete) calculator based on the **Pythagorean theorem**—a great way to learn the core workflow: **inputs → equations → outputs**.

<Tip>
  **Prefer video?** Watch the tutorial, then follow the written steps for the most important details on **RefID**, **Symbol**, and **units**.
</Tip>

***

## What you'll build

A calculator that takes the two short sides of a right triangle (**a** and **b**) and returns the hypotenuse (**c**) using:

`c = sqrt(a^2 + b^2)`

By the end, you'll have a published calculator you can **preview** and **share** with your team.

***

## Video walkthrough

<iframe src="https://fast.wistia.com/embed/medias/0m1ezipaez" title="Build a Pythagoras Theorem in Calcs Builder" className="w-full h-96 rounded-xl" />

<details>
  <summary>Video transcript</summary>

  Start by creating your first custom calculator. Click **Create a new calculator** to begin. Name your calculator **Pythagorean theorem** and set a **calculator code**. In Calcs Builder, the code is the unique identifier used across the platform and in shareable links.

  Next, build your calculator in sections such as **Inputs**, **Calculations**, and **Outputs**. Add an **Equation** widget in the calculation section and define the Pythagorean relationship.

  Create an input section with two **Input** widgets for the short sides (**a** and **b**). Then create an output section and add an **Equation** widget to compute the hypotenuse (**c**) using the square root of the computed expression.

  Finally, click **Preview** and test the calculator by entering values for **a** and **b**. Your formula will compute live and display the resulting value of **c**.
</details>

***

## Before you start

* A **Calcs.com account** with access to **Calcs Builder**
* Any modern browser (Chrome, Firefox, Safari, Edge)

<Note>
  This guide uses **meters (m)** as an example unit. You can choose different units or leave units blank—just keep them consistent.
</Note>

***

## Key concept: RefID vs Symbol

Calcs Builder uses **two identifiers** for each widget:

* **RefID**: the internal name used in equations (keep it simple: letters/numbers/underscores).
* **Symbol**: what shows up in displayed math (can use richer notation for readability).

<Tip>
  **Rule of thumb:** Write equations using **RefID**, and make things look nice using **Symbol**.
</Tip>

<Warning>
  **Current workaround required:** In the current version of Calcs Builder you must set **both** RefID and Symbol for every widget.\
  For example, if you want the equation display to show `c²`, keep the RefID as `c` (so other widgets can reference it), and set the Symbol to `c` (or `c` with your preferred formatting). Don't use operator-like text (such as `c^2`) as a RefID.

  <img src="https://mintlify.s3.us-west-1.amazonaws.com/clearcalcs/calcs_builder/images/beamRefIDOverview.png" alt="Calcs Builder variable definition interface showing RefID and Symbol fields" />
</Warning>

***

## Step 1: Open Calcs Builder

<Steps>
  <Step title="Sign in">
    Go to [app.calcs.com](https://app.calcs.com) and log in.
  </Step>

  <Step title="Open Calculator Builder">
    In the main navigation, select **Calculator Builder**.
  </Step>

  <Step title="Create a new calculator">
    Click **Create a new calculator**.
  </Step>
</Steps>

***

## Step 2: Name your calculator and create a section

<Steps>
  <Step title="Fill in basic details">
    At the top of the editor:

    * **Template Name**: `Pythagoras Calculator`
    * **Description**: *Calculate the hypotenuse of a right triangle using the Pythagorean theorem*
  </Step>

  <Step title="Set a calculator code">
    Choose a short, unique **calculator code** such as `pythagoras`. This is used in URLs and sharing.
  </Step>

  <Step title="Add a section for triangle dimensions">
    Create a section (for example **Triangle Dimensions**) to keep your inputs and equations organized.
  </Step>
</Steps>

***

## Step 3: Add inputs for sides a and b

Add two Input widgets—these are the values users will enter.

<Steps>
  <Step title="Add Input: Side a">
    Click **Add Widget** → **Input**, then configure:

    * **Label**: `Side a`
    * **RefID**: `a`
    * **Symbol**: `a`
    * **Units**: `m` (or leave blank)
    * **Default value**: `3`
  </Step>

  <Step title="Add Input: Side b">
    Add another **Input** widget with:

    * **Label**: `Side b`
    * **RefID**: `b`
    * **Symbol**: `b`
    * **Units**: `m` (or leave blank)
    * **Default value**: `4`
  </Step>
</Steps>

<Note>
  If you use units, keep both inputs in the same unit system (e.g., both in `m`). Mixed units can lead to confusing results.
</Note>

***

## Step 4: Add the hypotenuse equation

Now add an Equation widget that computes **c**.

<Steps>
  <Step title="Add the Equation widget">
    Click **Add Widget** → **Equation** (in the same section or a new one).
  </Step>

  <Step title="Configure the output variable">
    Set:

    * **Label**: `Hypotenuse c`
    * **RefID**: `c`
    * **Symbol**: `c`
    * **Units**: `m` (or leave blank)
  </Step>

  <Step title="Enter the formula">
    In the formula editor, enter:

    ```
    sqrt(a^2 + b^2)
    ```
  </Step>
</Steps>

<Tip>
  If you see errors, confirm that your equation references **RefID** values exactly (`a` and `b`) and that the RefIDs contain no special characters.
</Tip>

***

## Step 5: Preview and test

<Steps>
  <Step title="Open Preview">
    Click **Preview** (top right) to see what users will see.
  </Step>

  <Step title="Run a quick test">
    Enter **a = 3** and **b = 4**. You should get **c = 5** (the classic 3–4–5 triangle).
  </Step>

  <Step title="Validate with a second test">
    Try **a = 5** and **b = 12**. You should get **c = 13**.
  </Step>
</Steps>

<Tip>
  **Sanity check:** If you're using units and see unexpected results, ensure inputs are lengths (e.g., `m`) and the output is also a length (not `m²`).
</Tip>

***

## Step 6: Save and publish

<Steps>
  <Step title="Confirm your draft is saved">
    Changes save automatically as you edit. Drafts are only visible to you until published.
  </Step>

  <Step title="Publish">
    Click **Save/Publish** to share with your team or use it in real projects. Add a short note so others understand what changed.
  </Step>
</Steps>

<Note>
  Once published, you can share the calculator link (based on the calculator code) so teammates can use the tool without editing the template.
</Note>

***

## You're done 🎉

You built a complete Calcs Builder template using the standard workflow:

| Phase        | What you did                                    |
| ------------ | ----------------------------------------------- |
| **Inputs**   | Collected user data (sides **a** and **b**)     |
| **Equation** | Computed the hypotenuse using `sqrt(a^2 + b^2)` |
| **Output**   | Displayed the result (**c**) in the calculator  |

***

## What to try next

<CardGroup cols={2}>
  <Card title="Widget Overview" href="/calcs_builder/widgets/overview" icon="puzzle-piece">
    Learn what each widget type does and when to use it.
  </Card>

  <Card title="Your First Calculation: Area Calculator" href="/calcs_builder/your_first_calculation" icon="calculator">
    Follow a second guided build (length × width).
  </Card>

  <Card title="Common Workflows" href="/calcs_builder/common_workflows" icon="arrows-rotate">
    See practical patterns used in real templates.
  </Card>

  <Card title="Template Features" href="/calcs_builder/template_features" icon="book">
    Explore advanced options like reports and template settings.
  </Card>
</CardGroup>

Ideas to extend this template:

* Add **validation** (e.g., require positive values)
* Add a **diagram** showing where *a*, *b*, and *c* are measured
* Use **lookup tables** for standard values (materials, coefficients, etc.)
* Configure **reports** for export/print-ready outputs

***

## Need help?

* [Troubleshooting](/calcs_builder/common_errors)
* [Best Practices](/calcs_builder/best_practices)
* **Support** — [support@calcs.com](mailto:support@calcs.com)
