Punnett Square Calculator

Type both parents' genotypes, such as Tt × Tt or RrYy × RrYy, and get the Punnett square with the genotypic and phenotypic ratios and the probability of each offspring, worked out step by step. It handles one to four genes, incomplete dominance, codominance, ABO blood types and X-linked traits.

Monohybrid to 4-gene crossesBlood type and X-linkedBlank worksheet + answer key
Type of cross

One letter per gene: uppercase is dominant, lowercase is recessive. Aa, RrYy, AaBbCc (up to 4 genes). Spaces are ignored.

Genotypes only · free, worked out on this page · download PNG (300 DPI) or SVG, or print a blank worksheet with an answer key

Examples:
Trait names (optional)
Dominance for T/t
Worksheet
Box colors

PNG prints at 300 DPI; SVG keeps every letter editable. The print button puts a blank square on page 1 and the answer key on page 2 (choose Save as PDF to get a file).

Genotypes · ratio 1:2:1
GenotypeBoxesProbability
TT1/41/4 · 25%
Tt2/41/2 · 50%
tt1/41/4 · 25%
Phenotypes · ratio 3:1
PhenotypeBoxesProbability
Tall3/43/4 · 75%
Short1/41/4 · 25%
Show the steps
  1. 1. GametesTt makes 2 gametes: T, t. Tt makes 2 gametes: T, t.
  2. 2. Draw the gridDraw 2 rows × 2 columns = 4 boxes. Write the gametes of parent 1 across the top and the other parent's down the side.
  3. 3. Fill each boxEach box gets the allele at the start of its row plus the allele at the top of its column. First box: T + T = TT. Write the dominant allele first.
  4. 4. Count the genotypes3 different genotypes: TT 1/4, Tt 1/2, tt 1/4. Genotypic ratio 1:2:1.
  5. 5. Turn genotypes into phenotypesTall 3/4 (75%), Short 1/4 (25%). Phenotypic ratio 3:1.
  6. Check: each box is 1 out of the total, so the probability of an outcome is the number of boxes that have it divided by the number of boxes.

The square is worked out on this page as you type. When you download or print it, the cross and settings are saved to your history so you can reopen it later.

Punnett Square Examples

Each square below is what this calculator draws for the cross in its title, unedited. Open one in the tool to change the parents, rename the traits or turn it into a blank worksheet.

2 by 2 Punnett square for Tt × Tt with boxes TT, Tt, Tt and tt, three shaded tall and one short, phenotypic ratio 3:1

Monohybrid cross: Tt × Tt

Mendel's pea plants: two heterozygous tall plants. One box in four is tt, so 1/4 of the offspring are expected to be short. Genotypes 1 TT : 2 Tt : 1 tt, phenotypes 3 tall : 1 short.

4 by 4 dihybrid Punnett square for RrYy × RrYy shaded into four phenotypes with counts 9, 3, 3 and 1 out of 16

Dihybrid cross: RrYy × RrYy

Seed shape (round R, wrinkled r) and color (yellow Y, green y). Four gametes per parent give a 4 × 4 square of 16 boxes and the 9:3:3:1 ratio: 9 round yellow, 3 round green, 3 wrinkled yellow, 1 wrinkled green.

2 by 2 Punnett square for Bb × bb with two Bb boxes labeled brown eyes and two bb boxes labeled blue eyes

Eye color (classroom model): Bb × bb

The one-gene model taught in class: brown (B) over blue (b). A heterozygous brown-eyed parent and a blue-eyed parent give 1/2 brown, 1/2 blue. Real eye color depends on at least eight genes, so real families vary more.

2 by 2 Punnett square for Rr × Rr in snapdragons with one red RR box, two pink Rr boxes and one white rr box

Incomplete dominance: Rr × Rr

Snapdragon flower color: red and white homozygotes, pink heterozygotes. With a blend, every genotype has its own phenotype, so the phenotypic ratio equals the genotypic ratio, 1 red : 2 pink : 1 white.

2 by 2 ABO blood type Punnett square for IAi × IBi giving types AB, B, A and O, one box each

Blood type: IAi × IBi

A type A parent and a type B parent who each carry i. All four blood types are possible, each with a probability of 1/4: A (IAi), B (IBi), AB (IAIB) and O (ii).

2 by 2 X-linked Punnett square for XHXh × XHY with an unaffected daughter, a carrier daughter, an unaffected son and a son with hemophilia

X-linked: carrier mother × unaffected father

Hemophilia A, XHXh × XHY. Each daughter has a 1/2 chance of being a carrier and none are affected; each son has a 1/2 chance of having hemophilia. Across all children, each of the four outcomes is 1/4.

2 by 2 Punnett square for Ss × Ss with three unaffected boxes (SS, Ss, Ss) and one sickle cell disease box (ss), phenotypic ratio 3:1

Sickle cell: two carriers, Ss × Ss

Each child has a 1/4 chance of sickle cell disease (ss) and a 3/4 chance of being unaffected. Two of those three unaffected boxes are Ss, carriers with sickle cell trait like the parents, so the chance a child is a carrier is 1/2; the genotype table lists them.

8 by 8 trihybrid Punnett square for AaBbCc × AaBbCc with 64 boxes shaded into eight phenotype classes

Trihybrid cross: AaBbCc × AaBbCc

Three genes give 8 gametes per parent and an 8 × 8 square of 64 boxes, with 27 genotypes and the phenotypic ratio 27:9:9:9:3:3:3:1. Too large to fill by hand quickly, which is what the calculator is for.

What is a Punnett square?

A Punnett square is a grid that predicts the offspring of a genetic cross. The gametes (egg or sperm alleles) of one parent go across the top, the other parent's go down the side, and each box combines one allele from each to give a possible offspring genotype. Because every box is equally likely, counting boxes gives the probability of each genotype and phenotype.

The grid is named after the British geneticist Reginald C. Punnett, who developed it around 1905, about 40 years after Gregor Mendel published his pea plant experiments in 1866. A square shows expected probabilities, not a promise: a couple with a 1/4 chance has that same 1/4 chance for every child, whatever their earlier children inherited.

TermMeaningExample
AlleleOne version of a geneT (tall), t (short)
GenotypeThe pair of alleles an individual hasTT, Tt, tt
PhenotypeThe trait you can observeTall, short
HomozygousTwo identical allelesTT or tt
HeterozygousTwo different allelesTt
GameteSex cell carrying one allele of each geneT or t

How to make a Punnett square, step by step

To calculate a Punnett square, list each parent's gametes, write one parent's across the top and the other's down the side, and fill each box with one allele from its row and one from its column. Every box is equally likely, so counting boxes gives the genotypic ratio, the phenotypic ratio and the probability of each offspring.

Here is the whole method on the classic example: two pea plants that are both heterozygous for height, Tt × Tt (T = tall, dominant; t = short, recessive). The same five steps work for any cross; with more genes there are just more gametes.

  1. Write each parent's genotype and find its gametes

    Each gamete gets one of the two alleles, so a Tt parent makes two kinds of gametes: T and t. For two genes, list every combination of one allele from each gene (the FOIL method): RrYy makes RY, Ry, rY and ry.

  2. Draw the grid and label the edges

    Draw one column per gamete of the first parent and one row per gamete of the second: two gametes each gives a 2 × 2 grid of 4 boxes. Write T and t across the top and T and t down the side.

    Blank 2 by 2 Punnett square for Tt × Tt with gametes T and t written across the top and down the side and empty boxes
    Step 2: the grid for Tt × Tt with the gametes on the edges. Choose Blank boxes in the tool to print one.
  3. Fill in every box

    Each box gets the allele from its row plus the allele from its column, dominant allele first: T + T = TT, T + t = Tt, t + T = Tt, t + t = tt.

    Completed 2 by 2 Punnett square for Tt × Tt with boxes TT, Tt, Tt and tt, phenotypes tall and short, genotypic ratio 1:2:1 and phenotypic ratio 3:1
    Steps 3 to 5: the filled square, drawn by this calculator, with both ratios under it.
  4. Count the genotypes

    Count how many boxes hold each genotype: 1 TT, 2 Tt, 1 tt. The genotypic ratio is 1:2:1, so the probability of a Tt offspring is 2/4 = 1/2 (50%).

  5. Convert genotypes into phenotypes

    TT and Tt are both tall because T is dominant, so 3 of the 4 boxes are tall and 1 is short. The phenotypic ratio is 3:1: a 3/4 (75%) chance of a tall plant and a 1/4 (25%) chance of a short one.

How to Use the Punnett Square Calculator

Three steps in your browser

The square updates as you type, so you can change a parent and watch the ratios change. Use it as a Punnett square generator for class handouts or as a calculator to check homework.

1

Enter Both Parents

Pick Standard, Blood type (ABO) or X-linked, then type the two genotypes: Tt and tt, RrYy and rryy, IAi and IBi, XHXh and XhY. Up to four genes. Have a word problem instead? Paste it into Read a word problem and AI fills in the genotypes.

2

Name the Traits

Optionally type what each allele shows (Tall, Short; Round, Wrinkled), and set a gene to incomplete dominance or codominance with a name for the heterozygote, such as Pink or Roan. The square, the legend and the ratio tables use your names.

3

Read, Download or Print

Read the genotype and phenotype tables with fractions and percentages, open Show the steps to compare with your own working, download a 300 DPI PNG or an editable SVG, or print a blank worksheet with the answer key on page 2.

Dihybrid cross (4 × 4) Punnett square: how to solve it and why 9:3:3:1

To solve a 4 × 4 Punnett square, list the four gametes of each parent with the FOIL method (RrYy → RY, Ry, rY, ry), write one parent's gametes across the top and the other's down the side, fill all 16 boxes, then group the boxes by phenotype. The 9:3:3:1 rule is the result for RrYy × RrYy (seed shape and seed color in peas), and it is Mendel's law of independent assortment in action. The 16 boxes hold 9 different genotypes in the ratio 1:2:1:2:4:2:1:2:1.

The phenotypes come out 9:3:3:1: 9 dominant for both traits, 3 dominant for the first only, 3 dominant for the second only, 1 recessive for both. That ratio holds only when both parents are heterozygous for both genes, both genes show complete dominance, and the genes assort independently (they sit on different chromosomes, or far apart on the same one). Change any of those and the ratio changes; a test cross such as RrYy × rryy gives 1:1:1:1.

You can check a dihybrid answer without the square: multiply the single-gene probabilities. Round is 3/4 and yellow is 3/4, so round and yellow is 3/4 × 3/4 = 9/16.

Open RrYy × RrYy in the calculator

Punnett square with 3 genes (trihybrid, 8 × 8)

A trihybrid cross such as AaBbCc × AaBbCc follows three genes. Each parent makes 8 gametes (ABC, ABc, AbC, Abc, aBC, aBc, abC, abc), so the square is 8 × 8 = 64 boxes, with 27 genotypes and the phenotypic ratio 27:9:9:9:3:3:3:1.

There is no 3 × 3 Punnett square for a standard cross: each extra gene doubles the gametes listed per parent, so the sides of the grid are 2, 4, 8 or 16. To check one outcome without the square, multiply: dominant for all three traits is 3/4 × 3/4 × 3/4 = 27/64.

Open AaBbCc × AaBbCc in the calculator

Incomplete dominance and codominance in a Punnett square

The square is drawn the same way; only the step from genotype to phenotype changes, because the heterozygote looks different from both homozygotes.

Incomplete dominanceCodominance
HeterozygoteA blend of the twoShows both traits fully
Classic exampleSnapdragons: red × white gives pinkRoan cattle: red and white hairs; AB blood type
Heterozygote × heterozygote1 red : 2 pink : 1 white1 red : 2 roan : 1 white

In both cases the phenotypic ratio equals the genotypic ratio, 1:2:1, instead of 3:1. In the calculator, set the gene's dominance to Incomplete or Codominant and type the heterozygote's name (Pink, Roan) so the square and the tables say it.

Blood type Punnett square (ABO)

ABO blood type has three alleles: Iᴬ and Iᴮ are codominant with each other, and both are dominant over i. Each person has two of them, which makes six genotypes and four blood types.

Blood typePossible genotypes
AIᴬIᴬ or Iᴬi
BIᴮIᴮ or Iᴮi
ABIᴬIᴮ
Oii

Type the genotypes as IAi, IBIB, ii and so on (AO, BO, AB and OO also work). Type O can be entered as O, but A and B cannot, because a type A person could be IᴬIᴬ or Iᴬi. A problem usually tells you which: a type A parent with a type O child or a type O parent must be Iᴬi.

Can two parents with blood types A and B have a type O child? Yes, if both carry i: Iᴬi × Iᴮi gives A, B, AB and O, each with a 1/4 chance. Two type O parents (ii × ii) can only have type O children. These squares cover the ABO alleles only; the Rh factor (positive or negative) is a separate gene.

Open Iᴬi × Iᴮi in the calculator

X-linked (sex-linked) Punnett squares

For a gene on the X chromosome, write the allele as a superscript on the X: a female is XᴴXʰ (two X chromosomes), a male is XᴴY (one X and a Y that carries no copy of the gene). The mother's gametes are Xᴴ and Xʰ; the father's are Xᴴ and Y.

Read the square separately for daughters and sons. A son gets his only X from his mother and the Y from his father, so a father never passes an X-linked trait to his son. A son with one recessive allele shows the trait, while a daughter needs two to show it; with one she is a carrier.

Carrier mother × unaffected father (XᴴXʰ × XᴴY), for hemophilia A or red-green color blindness:

  • each son: 1/2 chance of being affected (XʰY), 1/2 unaffected (XᴴY)
  • each daughter: 1/2 chance of being a carrier (XᴴXʰ), 1/2 not a carrier (XᴴXᴴ), none affected
  • each child overall: 1/4 for each of the four outcomes

The calculator works this out from the genotypes and lists daughters and sons separately under Show the steps, which is how exam questions usually ask it ("what is the chance their son is color blind?").

Open XᴴXʰ × XᴴY in the calculator

Punnett squares for genetic diseases

Single-gene conditions are the most common real-life Punnett square questions. The square gives the chance for each pregnancy; it is not a diagnosis, and a genetic counselor works from test results and family history.

ConditionInheritanceTypical crossChance for each child
Sickle cell disease (HBB)Autosomal recessiveTwo carriers, Ss × Ss1/4 disease, 1/2 sickle cell trait, 1/4 neither
Cystic fibrosis (CFTR)Autosomal recessiveTwo carriers, Ff × Ff1/4 affected, 1/2 carriers, 1/4 neither
Huntington's disease (HTT)Autosomal dominantOne affected parent, Hh × hh1/2 affected
Hemophilia A (F8)X-linked recessiveCarrier mother, XᴴXʰ × XᴴYSons 1/2 affected; daughters 1/2 carriers
Red-green color blindnessX-linked recessiveAffected father, XᴮXᴮ × XᵇYAll daughters carriers; no sons affected

For a dominant condition like Huntington's, the dominant allele is the disease allele, so type the affected parent as Hh and name H "Huntington's disease" and h "Unaffected".

Open the cystic fibrosis cross · Open the Huntington's cross

Eye color Punnett squares: the classroom model and its limits

Worksheets often treat eye color as one gene with brown (B) dominant to blue (b). That model is fine for practicing the method, and the calculator draws it like any other cross: Bb × Bb gives 3 brown : 1 blue, Bb × bb gives 1:1.

Real eye color is controlled by at least eight genes, with a region of chromosome 15 that holds the OCA2 and HERC2 genes playing a major role, so it comes in a range of shades and does not follow the one-gene ratios. Two blue-eyed parents can, rarely, have a brown-eyed child, which the one-gene square says cannot happen. Hair color, height and skin color are also polygenic, so a single Punnett square cannot predict them. Use the square for single-gene traits, and treat eye color answers as practice only.

From ratios to probabilities

Every box in a Punnett square is equally likely, so:

  • probability of an outcome = boxes with that outcome ÷ total boxes (3 tall boxes out of 4 = 3/4 = 75%)
  • ratio = the box counts reduced to whole numbers (3 tall : 1 short = 3:1)
  • genotypic ratio counts each allele combination (1 TT : 2 Tt : 1 tt); phenotypic ratio counts each trait (3 tall : 1 short)

Two probability rules cover most questions. The product rule: for independent events, multiply (the chance that two children are both short is 1/4 × 1/4 = 1/16). The sum rule: for outcomes that cannot happen together, add (the chance of TT or Tt is 1/4 + 1/2 = 3/4).

A test cross finds out whether an individual showing the dominant trait is homozygous or heterozygous: cross it with a homozygous recessive. All dominant offspring point to TT; about half recessive points to Tt (a 1:1 ratio). Small families rarely match the ratio exactly: four children from Tt × Tt can easily be all tall. To test whether a large set of real counts fits an expected ratio such as 3:1 or 9:3:3:1, AP Biology uses the chi-square test, with the Punnett square supplying the expected numbers.

Punnett square practice problems with answers

Work each one by hand first, then open it in the calculator to check the square, the ratios and the steps. The Print worksheet + key button turns any cross into a blank square with the answer key on page 2.

  1. Two heterozygous purple-flowered pea plants (Pp × Pp). What fraction of the offspring have white flowers? Answer: 1/4 (pp). Check
  2. A black guinea pig whose mother was white (Bb) × a white guinea pig (bb). What are the genotypic and phenotypic ratios? Answer: 1 Bb : 1 bb; 1 black : 1 white. Check
  3. Pink snapdragons (Rr, incomplete dominance) × white (rr). What percentage are pink? Answer: 50%. Check
  4. A type AB parent × a type O parent (IᴬIᴮ × ii). Which blood types are possible? Answer: A and B, 1/2 each; never AB or O. Check
  5. A color-blind man × a woman who is not a carrier (XᵇY × XᴮXᴮ). What is the chance their daughter is a carrier? Answer: every daughter is a carrier (probability 1); no son is color blind. Check
  6. RrYy × rryy (dihybrid test cross). What is the phenotypic ratio? Answer: 1:1:1:1. Check

What a Punnett square cannot show

The calculator follows Mendel's rules exactly, so it inherits their limits:

  • Linked genes. Genes close together on the same chromosome tend to be inherited together, so a dihybrid cross does not give 9:3:3:1. Predicting it needs recombination frequencies, not a square.
  • Epistasis. When one gene masks another (for example coat color in Labrador retrievers), ratios such as 9:3:4 appear; the square still lists the genotypes, but you have to group the phenotypes yourself.
  • Polygenic traits. Height, skin color and eye color depend on many genes plus the environment.
  • Pedigrees and populations. Working out genotypes from a family tree, or allele frequencies in a population (Hardy-Weinberg), are different tools.

For anything a single Punnett square can answer, which covers the monohybrid, dihybrid, test cross and non-Mendelian topics in high school biology and AP Biology Unit 5 (Heredity), the calculator does the counting and shows its work.

What This Punnett Square Calculator Does

Every box worked out by code

The square, the ratios and the steps are computed on this page from the genotypes you type, with no AI involved. AI is only used, if you choose, to read a word problem into genotypes.

Dihybrid Punnett square RrYy × RrYy drawn by the calculator with 16 boxes in four phenotype colorsCrosses

One to Four Genes

Monohybrid to 16 × 16

Monohybrid, dihybrid, trihybrid and four-gene crosses, with gametes listed in FOIL order. Parents can differ (RrYy × rryy), and the genes can be typed in any order.

ABO blood type Punnett square for IAi × IBi showing types A, B, AB and OMultiple alleles

ABO Blood Type

IA, IB and i

Blood type mode knows that IA and IB are codominant and both dominant over i, and reports types A, B, AB and O with their probabilities.

X-linked Punnett square for a carrier mother and unaffected father with daughter and son outcomesSex-linked

X-Linked Traits

Daughters and sons apart

Write the mother as XHXh and the father as XhY. The square labels each box as a daughter or son, marks carriers, and the steps give the chances for daughters and sons separately.

Incomplete dominance Punnett square for Rr × Rr with red, pink and white snapdragon phenotypesNon-Mendelian

Incomplete Dominance and Codominance

Your own trait names

Set each gene to complete, incomplete or codominant and name the heterozygote. Pink snapdragons and roan cattle get their own phenotype and the 1:2:1 ratio.

Blank dihybrid Punnett square worksheet with gametes filled in, empty boxes and lines for the genotypic and phenotypic ratiosFor teachers

Blank Worksheet and Answer Key

Print or save as PDF

Leave the boxes blank, or the boxes and the gametes, for practice. Print worksheet + key puts the blank square and the filled answer on separate pages, with lines for the two ratios.

8 by 8 trihybrid Punnett square exported from the calculator with eight phenotype classesExport

PNG, Editable SVG and Copyable Tables

For slides and lab reports

Download a 300 DPI PNG for Google Docs or slides, or an SVG with real text you can edit in PowerPoint or Illustrator. Copy the genotype and phenotype tables straight into a spreadsheet.

Punnett Square Calculator: Common Questions

FAQ

Reading a word problem with AI is the paid part: it uses 2 credits per run, because each run calls a language model. Plans and one-time credit packs are on the pricing page, and new accounts get sign-up credits plus daily check-in credits. Everything else is free and never uses credits: typing genotypes, every cross type, the ratios and steps, PNG and SVG downloads without a watermark, and printing worksheets. Typing the two genotypes yourself always replaces the AI step.

Type both parents with two genes each, such as RrYy and RrYy. The calculator lists the four gametes of each parent (RY, Ry, rY, ry), fills the 4 × 4 square and gives the genotypic ratio 1:2:1:2:4:2:1:2:1 and the phenotypic ratio 9:3:3:1. Name the traits (Round / Wrinkled, Yellow / Green) to see them in the legend.

The genotypic ratio counts allele combinations: Tt × Tt gives 1 TT : 2 Tt : 1 tt. The phenotypic ratio counts the traits you can see: TT and Tt look the same when T is dominant, so it is 3 tall : 1 short. With incomplete dominance or codominance the two ratios are the same.

Yes, if both carry the recessive i allele. Iᴬi × Iᴮi gives types A, B, AB and O, each with a 1/4 chance. If either parent is homozygous (IᴬIᴬ or IᴮIᴮ), type O is not possible. Choose Blood type (ABO) in the calculator to see the square.

Write the alleles on the X chromosome: a carrier mother is XHXh and an unaffected father XHY. Her gametes are XH and Xh, his are XH and Y. Daughters get an X from each parent and sons get the father's Y, so for a carrier mother each son has a 1/2 chance of being affected and each daughter a 1/2 chance of being a carrier. Choose X-linked in the calculator.

Yes. Type any cross, from a 2 × 2 monohybrid to a 4 × 4 dihybrid or larger, set Worksheet to Blank boxes (gametes filled in) or Blank boxes and gametes, then press Print worksheet + key: page 1 is the blank square with lines for the two ratios, page 2 is the filled answer key. In the print window, choose Save as PDF to keep a file.

Yes. Download a 300 DPI PNG for Google Slides, Docs or Word, or an SVG whose letters stay editable in PowerPoint, Illustrator or Inkscape, and copy the genotype and phenotype tables into Google Sheets or Excel. Students can also use it to check a square they drew by hand: type the same parents and compare box by box, or open Show the steps.

Up to four genes in standard mode, which is a 16 × 16 square of 256 boxes. Blood type and X-linked crosses use one gene. Each gene needs exactly two letters per parent, and both parents need the same genes.

It reads the problem into the two parents' genotypes and trait names, for example "a black guinea pig whose mother was white" becomes Bb. From there the calculator works out the square and the ratios with code, so the arithmetic is exact. Check the genotypes it fills in against the question, since that reading step is where most mistakes happen. Linked genes, epistasis and pedigrees are outside what one square can answer.

Blood type, yes: ABO is one gene, so the Blood type (ABO) mode gives the chance of A, B, AB or O for each child (the Rh factor is a separate gene). Single-gene conditions such as sickle cell disease and cystic fibrosis also work. Eye color and hair color, no: they depend on many genes, with a region of chromosome 15 (the OCA2 and HERC2 genes) playing a major role in eye color, so a one-gene square is classroom practice, not a prediction.

Yes. The mother is XX and the father is XY, so her eggs all carry an X and his sperm carry an X or a Y. The square has two XX boxes and two XY boxes: a 1/2 chance of a girl and 1/2 of a boy for each pregnancy. The same split sits under every X-linked cross, which is why X-linked mode lists daughters and sons separately.

A Punnett square gives the probability for each child, and every child is a new, independent draw. A couple with a 1/4 chance of a recessive trait can have four children without it, or two with it. Ratios like 3:1 show up reliably only in large numbers of offspring, such as Mendel's thousands of pea plants.

The British geneticist Reginald C. Punnett, who developed the grid around 1905; the first published diagrams appeared in 1906. It turns into a diagram the rules of inheritance Gregor Mendel had published in 1866 and that were rediscovered in 1900.

Make Your Punnett Square Now

Type two genotypes and get the square, both ratios and the steps, then download it or print a blank worksheet with the key. Free, and worked out in your browser.

Featured on Findly.tools