# Calculator — SearXNG Documentation (2025.6.29+60be0f453)

# Calculator

Calculate mathematical expressions using `ast.parse` (mode=”eval”).

class searx.plugins.calculator.SXNGPlugin(plg_cfg: PluginCfg )

  Plugin converts strings to different hash digests. The results are displayed in area for the “answers”.

  id: str = 'calculator'

    The ID (suffix) in the HTML form.

  post_search(request: SXNG_Request, search: SearchWithPlugins ) → EngineResults

    Runs AFTER the search request. Can return a list of `Result` objects to be added to the final result list.