How To Create Calculator Using Power Apps

In this blog, we will discuss how to build a simple calculator using power apps.

Please follow the below steps,

Step 1

Open Power Apps window.

Step 2

Add the below controls. I have added to one label for displaying the header title, two textboxes for number input, four buttons for adding operators, and one label to show results. Change the button text with the operator's name. Customize the font, text, color, height width.

Step 3

Now we have to add a formula on every button’s onselect property.

  • For + button -> UpdateContext({Result: txtNumber1 + txtNumber2 });
  • For - button -> UpdateContext({Result: txtNumber1 - txtNumber2 });
  • For * button -> UpdateContext({Result: txtNumber1 * txtNumber2 });
  • For / button -> UpdateContext({Result: txtNumber1 / txtNumber2 });

Step 4

Click on the label, set its text property with the result. Customize its display properties also.

Step 5

Save the application and click on Run Button.

Step 6

Enter the numbers and select any operator button to check the result.