Skip to main content
Glama

HomeCalc — Canadian Mortgage & Tax Calculators

Canadian Capital Gains Tax Calculator

capital_gains_tax
Read-only

Estimate Canadian capital gains tax on real estate, stocks, crypto, a business or a rental: 50% inclusion, principal-residence exemption, LCGE for QSBC shares, capital losses and rental CCA recapture. The gain is taxed on top of other income with the income_tax engine (credits, Ontario surtax + Health Premium, Quebec abatement; no AMT).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "salePrice": 900000,
      "annualIncome": 85000,
      "sellingCosts": 40000,
      "purchasePrice": 600000
    },
    "name": "capital_gains_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
isQSBCNoBusiness only: qualified small business corporation shares (LCGE)
taxYearNoTax year of the disposition
provinceNoProvince/territory of residenceOntario
assetTypeNoWhat was sold; decides which exemptions applyreal-estate
landValueNoRental only: land portion of the sale price (splits land vs building gain)
salePriceYesGross sale proceeds in CAD
yearsOwnedNoYears owned (for principal-residence proration)
buyingCostsNoLand transfer tax, legal and other buying costs
annualIncomeNoOther annual income in CAD; the gain is taxed on top of it
sellingCostsNoCommission, legal and other selling costs
taxpayerTypeNoWho sold the assetindividual
capitalLossesNoCapital losses (prior or current) to offset the gain
lcgeRemainingNoRemaining lifetime capital gains exemption room in CAD
purchasePriceYesOriginal purchase price in CAD
yearsDesignatedNoYears designated as your principal residence
ccaClaimedToDateNoRental only: total CCA claimed to date
capitalImprovementsNoCapital improvements added to the adjusted cost base
isPrincipalResidenceNoReal estate only: claim the principal residence exemption
originalBuildingCostNoRental only: original building cost for CCA recapture

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "annualIncome": 85000,
      +    "purchasePrice": 600000,
      +    "salePrice": 900000,
      +    "sellingCosts": 40000
      +  }
      +]
    • changedInput schema / properties / annualIncome / description
      Previous value: -"Your other annual income in CAD — the gain stacks on top of this"New value: +"Other annual income in CAD; the gain is taxed on top of it"
    • addedInput schema / properties / assetType / description
      Added value: +"What was sold; decides which exemptions apply"
    • changedInput schema / properties / buyingCosts / description
      Previous value: -"Land transfer tax, legal fees, and other costs of acquiring"New value: +"Land transfer tax, legal and other buying costs"
    • changedInput schema / properties / capitalLosses / description
      Previous value: -"Prior/current capital losses available to offset the gain"New value: +"Capital losses (prior or current) to offset the gain"
    • changedInput schema / properties / sellingCosts / description
      Previous value: -"Realtor commission, legal fees, and other costs of selling"New value: +"Commission, legal and other selling costs"
    • addedInput schema / properties / taxpayerType / description
      Added value: +"Who sold the asset"
    • changedInput schema / properties / yearsOwned / description
      Previous value: -"Years the property was owned (principal-residence proration)"New value: +"Years owned (for principal-residence proration)"
  2. First observed

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds meaningful behavioral context beyond annotations: the 50% inclusion rate, principal-residence and LCGE relief, CCA recapture treatment, stacking on other income, and explicit exclusion of AMT. It stops short of describing the return value or calculation output, which is a notable gap for a tool with no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core purpose and then the tax specifics. Every clause earns its place by naming an asset type, exemption, or engine behavior. There is no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 19-parameter calculator with no output schema, the description does a good job explaining the tax model, asset coverage, and a key limitation (no AMT). It is slightly incomplete because it does not describe the return format or what the estimate output contains, and it does not flag the two required inputs. Given full schema coverage, these are minor omissions rather than fatal gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all 19 parameters are already well documented. The description maps several parameters to concepts (LCGE for isQSBC, principal-residence exemption, rental CCA recapture), but it does not add syntax, format, or dependency details beyond what the schema provides. Baseline 3 is appropriate when the schema carries the parameter burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Estimate Canadian capital gains tax' across five named asset types. It then enumerates the exact tax mechanics covered (50% inclusion, principal-residence exemption, LCGE, capital losses, CCA recapture), which lets an agent distinguish this from a generic income tax tool. The reference to the income_tax engine further clarifies it is a specialized layer rather than a replacement.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the asset-type list and tax concepts, but there is no explicit when-to-use or when-not-to-use guidance. The description does not route the agent to alternatives like income_tax for ordinary income or capital_cost_allowance for CCA details, and it does not state prerequisites such as required inputs (salePrice, purchasePrice) or jurisdiction constraints beyond the province enum in the schema.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources