---
title: "Calculator animated icon"
description: "Calculator animated icon (Fintech & finance). A key press computes a result; Strong enters a value first, then confirms it. The display stays posted."
canonical: https://generativeicons.com/icons/calculator/
---

# Calculator animated icon

A key press computes a result; Strong enters a value first, then confirms it. The display stays posted.

- Id: `calculator`
- Category: Fintech & finance
- Search terms: calc, calculate, calculation, math, maths, arithmetic, compute, accounting, numbers, adding machine, number crunching
- Two states: prepared to result, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/calculator.lottie (dotLottie, 9909 bytes, sha256 d0f5d8f2d664d6d25b41100041ee19c996577b18a49067d366ce9852de84d834)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add calculator
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/calculator.mjs';

export function CalculatorIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/calculator.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/calculator/ · https://generativeicons.com/api/icons/calculator
