Skip to main content
U.S. flag

An official website of the United States government

VBVenn: Visual Basic Venn diagram - Software page

May 13, 2006


Granato, G.E., 2006, VBVenn—A Visual Basic Program for calculating and graphing quantitative two-circle Venn diagrams: in Granato, G.E., Dionne, S.G., Tana C.K., and King, T.L., 2002, National Highway Runoff Water-Quality Data and Methodology Synthesis, volume II—Project Documentation: Federal Highway Administration Research Report FHWA-EP-02-008, 22p. Manual


VBVenn is a Visual Basic program that calculates the size and position of two circles to construct a quantitative Venn diagram. It is a simple one-form program with a fairly intuitive user interface. The program normalizes the size of two populations and their intersection, sizes a circle for each population, calculates the area of the intersection, solves for the relative position of the circles in the Venn diagram by iteration, produces a graphical rendition of the Venn diagram on the screen, and writes an output text file. This text file may be used with graphing software to create a publication-quality Venn diagram. This Report provides a guide for using VBVenn, describes the calculations used to create the diagram, and documents the Visual Basic code used to implement the iterative method. VBVenn is in the public domain and may be utilized and distributed as freeware, as such the program has no expressed or implied warrantee.



VBVenn version 1.0.0 - Initial release 2006

System Requirements

The VBVenn is written in Visual Basic and therefore use may be limited to Microsoft Windows operating systems. The graphical display forms require a screen resolution exceeding 653x690 pixels.

Installation package

VBVenn does not need to be installed just use the executable file VBVenn2C.exe

Source Code (Version 1.0.0)

VBVenn was written in Visual Basic 6.0. -- Uncompiled source code
Manual -- The source code is listed in the manual

Example Output File

The output text file is designed to be used with graphing software to create a publication-quality Venn diagram. VennOut.txt


Limited support is provided for correcting bugs and clarification of how the code is intended to work. Currently, there are no known bugs or suggestions for improvement. For support or to provide feedback or suggestions for improvement, see contact below.


User Rights

This software and related material (data and documentation) are made available by the USGS to be used in the public interest and the advancement of science. You may, without any fee or cost, use, copy, modify, or distribute this software, and any derivative works thereof, and its supporting documentation, subject to the USGS Software User Rights Notice

Product Disclaimer

Any use of trade, product, or firm names is for decriptive purposes only and does not imply endorsement by the U.S. Government

Citation Information

Publication Year 2006
Title VBVenn: Visual Basic Venn diagram - Software page
Product Type Software Release
Record Source USGS Digital Object Identifier Catalog